<?php

declare(strict_types=1);

namespace App\Controllers;

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

final class ProfileController extends Controller
{
    public function index(): string
    {
        return $this->view('profile/index', [
            'title' => 'Профил',
            'user' => DemoData::user(),
            'reports' => (new ReportRepository())->latest(8),
        ]);
    }
}
