adrema/app/View/Page/Header.php

30 lines
812 B
PHP
Raw Normal View History

2024-09-24 01:26:08 +02:00
<?php
2024-10-13 21:00:47 +02:00
namespace App\View\Page;
2024-09-24 01:26:08 +02:00
use Illuminate\View\Component;
class Header extends Component
{
2024-10-24 23:05:12 +02:00
public function __construct(public string $title)
2024-09-24 01:26:08 +02:00
{
}
public function render()
{
return <<<'HTML'
<div class="h-16 px-6 flex items-center justify-between border-b border-solid border-gray-600 group-[.is-bright]:border-gray-500">
2024-10-24 23:05:12 +02:00
<div class="flex items-center space-x-4">
2024-09-24 01:26:08 +02:00
{{ $beforeTitle ?? ''}}
<span class="text-sm md:text-xl font-semibold leading-none text-white">{{ $title }}</span>
{{ $toolbar ?? '' }}
</div>
<div class="flex items-center space-x-4 ml-2">
{{ $right ?? '' }}
</div>
</div>
HTML;
}
}