<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\CarouselImage;
use App\Models\GalleryCategory;
use App\Models\Bestseller;

class DashboardController extends Controller
{
    public function index()
    {
        $carouselImages = CarouselImage::where('is_active', true)
            ->latest()
            ->get();

        $galleryCategories = GalleryCategory::with('images')->get();
        $bestsellers = Bestseller::all();

        return view('dashboard', compact('carouselImages', 'galleryCategories', 'bestsellers'));
    }
}