<?php

declare(strict_types=1);

namespace App\Controllers;

use App\Core\Controller;
use App\Repositories\ReportRepository;

final class MapController extends Controller
{
    public function index(): string
    {
        return $this->view('map/index', [
            'title' => 'Интерактивна карта',
            'reports' => (new ReportRepository())->latest(20),
        ]);
    }
}
