<?php

namespace App\Http\Controllers;

use App\Models\Managers\ContactManager;

class ContactsController extends Controller
{
    public function __construct(
        private ContactManager $contactManager
    ) {
        $this->addCssFile('contacts.css');
    }

    public function index()
    {
        $contacts = $this->contactManager->getContacts();

        return $this->render('contacts')
            ->with(compact('contacts'));
    }
}
