@props([ 'actions', 'align' => 'left', ]) @if ($actions instanceof \Illuminate\Contracts\View\View) {{ $actions }} @elseif (is_array($actions)) @php $actions = array_filter( $actions, fn (\Filament\Pages\Actions\Action $action): bool => ! $action->isHidden(), ); @endphp @if (count($actions))
class([ 'flex flex-wrap items-center gap-4 filament-page-actions', match ($align) { 'center' => 'justify-center', 'right' => 'justify-end', default => 'justify-start', }, ]) }} > @foreach ($actions as $action) {{ $action }} @endforeach
@endif @endif