<?php
declare(strict_types=1);

namespace App\Controllers;

require_once BASE_PATH . '/app/helpers/permissions.php';

use App\Core\Controller;

final class AdminToolsController extends Controller
{
    private function page(string $title): void
    {
        require_admin_area();
        $this->view('admin/tools/index', [
            'title' => $title,
        ]);
    }

    public function schedule(): void { $this->page('Schedule'); }
    public function homepage(): void { $this->page('Homepage'); }
    public function homepageBlocks(): void { $this->page('Homepage Blocks'); }
    public function emailQueue(): void { $this->page('Email Queue'); }
    public function rbac(): void { $this->page('RBAC'); }
    public function audit(): void { $this->page('Audit Log'); }
    public function dictionary(): void { $this->page('Dictionary'); }
    public function customFields(): void { $this->page('Custom Fields'); }
    public function jobs(): void { $this->page('Jobs'); }
}
