<?php

namespace App\Controllers\Admin;

use App\Models\AgendaModel;
use App\Models\BeritaModel;
use App\Models\MenuModel;

class DashboardController extends AdminController
{
    public function index(): void
    {
        $this->adminView('dashboard/index', [
            'totalBerita' => (new BeritaModel())->count(),
            'totalAgenda' => (new AgendaModel())->count(),
            'totalMenu'   => (new MenuModel())->count(),
        ]);
    }
}
