<?php

declare(strict_types=1);

namespace App\Controllers;

use App\Core\Controller;
use App\Repositories\StatisticsRepository;

final class AdminController extends Controller
{
    public function index(): string
    {
        return $this->view('admin/index', [
            'title' => 'Админ панел',
            'overview' => (new StatisticsRepository())->overview(),
        ]);
    }
}
