<?php

namespace App\Controllers;

use App\Core\Controller;

class HomeController extends Controller
{
    public function index(): void
    {
        $user = $this->getCurrentUser();
        
        $this->view('home/index', [
            'user' => $user,
            'isLoggedIn' => $this->isAuthenticated(),
            'isAdmin' => $this->isAdmin()
        ]);
    }
}
