<?php

declare(strict_types=1);

namespace App\Controllers;

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

final class HomeController extends Controller
{
    public function index(): string
    {
        return $this->view('home/index', [
            'title' => 'CiviGO.eu - Познавай правата си. Действай.',
            'stats' => (new StatisticsRepository())->overview(),
        ], 'layouts/landing');
    }
}
