<?php

namespace App\Controllers;

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

class FasilitasController extends Controller
{
    public function index(): void
    {
        $this->view('fasilitas/index', [
            'daftarFasilitas' => (new FasilitasModel())->all(),
            'identitas'       => (new IdentitasModel())->getIdentitas(),
            'menus'           => (new MenuModel())->getMenuUtama(),
            'footerKolom'     => (new FooterModel())->getKolom(),
            'widgetSidebar'   => (new WidgetModel())->getByPosisi('sidebar'),
        ]);
    }
}
