@php $selected_value = (isset($value) && !is_null($value) ? $value :(isset($default) && !is_null($default) ? $default : '')); $name = ''; if( !empty($repeater_id) ){ if( !empty($parent_rep) ){ $name = "$parent_rep".'['.$repeater_id.']['.$index.']['.$id.']'; }else{ $name = "$repeater_id".'['.$index.']['.$id.']'; } }else{ $name = $id; } @endphp @if( !empty($repeater_type) && $repeater_type == 'single' ) @if( !empty($options) && is_array($options) ) @foreach($options as $key=> $single) @php $label_id = time().'_'.rand(1,99999); @endphp