meobda-website/app/View/Components/Layout/App.php

46 lines
970 B
PHP

<?php
namespace App\View\Components\Layout;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class App extends Component
{
public array $links = [];
/**
* Create a new component instance.
*/
public function __construct()
{
$this->links = [
[
'name' => 'Home',
'link' => route('welcome'),
],
[
'name' => 'Audition Information',
'link' => route('audition-information'),
],
[
'name' => 'Clinic Information',
'link' => '#',
],
[
'name' => 'Audition Etudes',
'link' => '#',
],
];
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.layout.app');
}
}