Added contact page

This commit is contained in:
amikhaylov
2026-05-15 17:20:04 +03:00
parent 9e6b6c4dcb
commit 443a745029
13 changed files with 291 additions and 7 deletions
@@ -0,0 +1,22 @@
<?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'));
}
}