<?php

namespace App\Controllers;

use App\Core\Controller;

class PageController extends Controller
{
    public function services(): void
    {
        $this->view('pages/services', [
            'user' => $this->getCurrentUser(),
            'isLoggedIn' => $this->isAuthenticated()
        ]);
    }

    public function delivery(): void
    {
        $this->view('pages/delivery', [
            'user' => $this->getCurrentUser(),
            'isLoggedIn' => $this->isAuthenticated()
        ]);
    }

    public function warranty(): void
    {
        $this->view('pages/warranty', [
            'user' => $this->getCurrentUser(),
            'isLoggedIn' => $this->isAuthenticated()
        ]);
    }
}
