@php use Filament\Forms\Components\TableSelect\Livewire\TableSelectLivewireComponent; $fieldWrapperView = $getFieldWrapperView(); $extraAttributes = $getExtraAttributes(); $id = $getId(); $isDisabled = $isDisabled(); $isMultiple = $isMultiple(); @endphp
merge([ 'id' => $id, ], escape: false) ->merge($extraAttributes, escape: false) ->class([ 'fi-fo-modal-table-select', 'fi-fo-modal-table-select-disabled' => $isDisabled, 'fi-fo-modal-table-select-multiple' => $isMultiple, ]) }} > @if ($isMultiple) @if (filled($optionLabels = $getOptionLabels()))
@foreach ($optionLabels as $optionLabel) {{ $optionLabel }} @endforeach
@elseif (filled($placeholder = $getPlaceholder()))
{{ $placeholder }}
@endif @if (! $isDisabled)
{{ $getAction('select') }}
@endif @else @if (filled($optionLabel = $getOptionLabel())) {{ $optionLabel }} @elseif (filled($placeholder = $getPlaceholder()))
{{ $placeholder }}
@endif @if (! $isDisabled) {{ $getAction('select') }} @endif @endif