install
This commit is contained in:
48
resources/views/vendor/filament-panels/components/header/index.blade.php
vendored
Normal file
48
resources/views/vendor/filament-panels/components/header/index.blade.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
@props([
|
||||
'actions' => [],
|
||||
'breadcrumbs' => [],
|
||||
'heading',
|
||||
'subheading' => null,
|
||||
])
|
||||
|
||||
<header
|
||||
{{
|
||||
$attributes->class([
|
||||
'fi-header',
|
||||
'fi-header-has-breadcrumbs' => $breadcrumbs,
|
||||
])
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
@if ($breadcrumbs)
|
||||
<x-filament::breadcrumbs :breadcrumbs="$breadcrumbs" />
|
||||
@endif
|
||||
|
||||
<h1 class="fi-header-heading">
|
||||
{{ $heading }}
|
||||
</h1>
|
||||
|
||||
@if ($subheading)
|
||||
<p class="fi-header-subheading">
|
||||
{{ $subheading }}
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@php
|
||||
$beforeActions = \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes());
|
||||
$afterActions = \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes());
|
||||
@endphp
|
||||
|
||||
@if (filled($beforeActions) || $actions || filled($afterActions))
|
||||
<div class="fi-header-actions-ctn">
|
||||
{{ $beforeActions }}
|
||||
|
||||
@if ($actions)
|
||||
<x-filament::actions :actions="$actions" />
|
||||
@endif
|
||||
|
||||
{{ $afterActions }}
|
||||
</div>
|
||||
@endif
|
||||
</header>
|
||||
Reference in New Issue
Block a user