<?php

namespace App\Controllers;

use App\Core\Controller;
use App\Models\AgendaModel;
use App\Models\FooterModel;
use App\Models\IdentitasModel;
use App\Models\MenuModel;
use App\Models\WidgetModel;

class AgendaController extends Controller
{
    public function index(): void
    {
        $this->view('agenda/index', [
            'daftarAgenda'  => (new AgendaModel())->getAllPublic(),
            'identitas'     => (new IdentitasModel())->getIdentitas(),
            'menus'         => (new MenuModel())->getMenuUtama(),
            'footerKolom'   => (new FooterModel())->getKolom(),
            'widgetSidebar' => (new WidgetModel())->getByPosisi('sidebar'),
        ]);
    }
}
