<?php

namespace App\Http\Controllers\SuperAdmin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Buyer;
use App\Models\Product;
use App\Models\Material;
use App\Models\Quotation;

class DashboardController extends Controller
{
    public function index()
    {
        $data = [
            'totalBuyers' => Buyer::count(),
            'totalProducts' => Product::count(),
            'totalMaterials' => Material::count(),
            'totalQuotations' => Quotation::count(),
        ];

        return view('superadmin.dashboard', $data);
    }
}