<?php
declare(strict_types=1);
require_once __DIR__ . '/../../app/Models/Setting.php';
require_once __DIR__ . '/../../app/Config/functions.php';

class SettingsController
{
    public function index(): void
    {
        require_login();
        require_role('admin');

        $model = new Setting();
        $settings = $model->getAll();

        include __DIR__ . '/../../app/Views/settings/index.php';
    }
}
