@props([ 'actions' => [], 'actionsAlignment' => null, 'breadcrumbs' => [], 'heading' => null, 'subheading' => null, ]) @php use Filament\Support\Facades\FilamentView; use Filament\View\PanelsRenderHook; use function Filament\Support\is_slot_empty; @endphp
class([ 'fi-header', 'fi-header-has-breadcrumbs' => $breadcrumbs, 'fi-header-has-subheading' => filled($subheading), ]) }} > @capture($headingContent) @if ($breadcrumbs) @endif {{ FilamentView::renderHook(PanelsRenderHook::PAGE_HEADER_HEADING_BEFORE, scopes: $this->getRenderHookScopes()) }} @if (filled($heading))

{{ $heading }}

@endif {{ FilamentView::renderHook(PanelsRenderHook::PAGE_HEADER_HEADING_AFTER, scopes: $this->getRenderHookScopes()) }} @if (filled($subheading))

{{ $subheading }}

@endif @endcapture @php $headingContent = $headingContent(); @endphp @if (! is_slot_empty($headingContent))
{{ $headingContent }}
@else {{ $headingContent }} @endif @php $beforeActions = FilamentView::renderHook(PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes()); $afterActions = FilamentView::renderHook(PanelsRenderHook::PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes()); @endphp @capture($actionsContent) {{ $beforeActions }} @if ($actions) @endif {{ $afterActions }} @endcapture @php $actionsContent = $actionsContent(); @endphp @if (! is_slot_empty($actionsContent))
{{ $actionsContent }}
@else {{ $actionsContent }} @endif