@php use Filament\Forms\Components\TableSelect\Livewire\TableSelectLivewireComponent; $fieldWrapperView = $getFieldWrapperView(); $extraAttributes = $getExtraAttributes(); $id = $getId(); $isDisabled = $isDisabled(); $isMultiple = $isMultiple(); $hasBadges = $hasBadges(); $badgeColor = $getBadgeColor(); @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) && filled($optionLabel = $getOptionLabel())) || ($isMultiple && filled($optionLabels = $getOptionLabels()))) @if ($isMultiple && $hasBadges)
@foreach ($optionLabels as $optionLabel) @if ($hasBadges) {{ $optionLabel }} @else {{ $optionLabel }} @endif @endforeach
@else
@if ($hasBadges) {{ $optionLabel }} @elseif ($isMultiple) @foreach ($optionLabels as $optionLabel) {{ $optionLabel . ($loop->last ? '' : ', ') }} @endforeach @else {{ $optionLabel }} @endif
@endif @elseif (filled($placeholder = $getPlaceholder()))
{{ $placeholder }}
@endif @if (! $isDisabled)
{{ $getAction('select') }}
@endif