@props([ 'name', 'options' => [], 'selected' => null, 'label' => null, 'inline' => true, ]) @php $currentSelected = $selected ?? request($name); @endphp
@if($label) @endif
@foreach($options as $value => $optionLabel) @php $isChecked = (string)$currentSelected === (string)$value; // 고유한 ID 생성 (예: status_pending, status_approved 등) $uniqueId = $name . '_' . ($value !== '' ? $value : 'all'); @endphp
@endforeach