@php use Filament\Support\Enums\GridDirection; use Filament\Support\Facades\FilamentView; $fieldWrapperView = $getFieldWrapperView(); $extraInputAttributeBag = $getExtraInputAttributeBag(); $isHtmlAllowed = $isHtmlAllowed(); $gridDirection = $getGridDirection() ?? GridDirection::Column; $isBulkToggleable = $isBulkToggleable(); $isDisabled = $isDisabled(); $isSearchable = $isSearchable(); $statePath = $getStatePath(); $options = $getOptions(); $livewireKey = $getLivewireKey(); $wireModelAttribute = $applyStateBindingModifiers('wire:model'); @endphp
class(['fi-fo-checkbox-list']) }} > @if (! $isDisabled) @if ($isSearchable) @endif @if ($isBulkToggleable && count($options))
{{ $getAction('selectAll') }} {{ $getAction('deselectAll') }}
@endif @endif
grid($getColumns(), $gridDirection) ->merge([ 'x-show' => $isSearchable ? 'visibleCheckboxListOptions.length' : null, ], escape: false) ->class([ 'fi-fo-checkbox-list-options', ]) }} > @forelse ($options as $value => $label)
@empty
@endforelse
@if ($isSearchable)
{{ $getNoSearchResultsMessage() }}
@endif