@php $value_key = $options['value_key'] ?? 'value'; $title_key = $options['title_key'] ?? 'title'; if(!isset($options['checked'])){ $options['checked'] = $value; } if(isset($options['default']) && ($options['checked'] === null || $options['checked'] === '')){ $options['checked'] = old($name, $options['default']); } $required = isset($options['required']) && $options['required']; @endphp @if($repeater) @foreach($options['list'] as $key => $option)
@endforeach @else @if(isset($options['show_na']) && $options['show_na'])
@endif @foreach($options['list'] as $key => $option)
@endforeach @section('js-before') @parent @endsection @endif