30 lines
812 B
PHP
30 lines
812 B
PHP
<?php
|
|
|
|
namespace App\View\Page;
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
class Header extends Component
|
|
{
|
|
|
|
public function __construct(public string $title)
|
|
{
|
|
}
|
|
|
|
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">
|
|
<div class="flex items-center space-x-4">
|
|
{{ $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;
|
|
}
|
|
}
|