@php
$detail = $config['form']['navbar']['detail']['input'];
$k_last = array_key_last($detail);
@endphp
@foreach ($detail as $k_d => $d)
@if (empty($d['status']))
@continue
@endif
@if (str_contains($k_d, 'row_'))
@foreach ($d as $k_i => $i)
@if (empty($i['status']))
@continue
@endif
@php
$chk_req = !empty($i['validate']);
$label = __("field.{$k_i}");
$readonly = !empty($i['readonly']);
@endphp
@if (in_array($i['type'], ['input', 'number']))
@elseif ($i['type'] == 'selection')
@php
$chk_option = !empty($data->{$k_i}) ? $data->{$k_i} : 1;
@endphp
@if (!empty($i['options']))
@foreach ($i['options'] as $k_o => $o)
@endforeach
@endif
@endif
@endforeach
@else
@php
$chk_req = !empty($d['validate']);
$label = __("field.{$k_d}");
$readonly = !empty($d['readonly']);
@endphp
@if (in_array($d['type'], ['input', 'texteditor']))
@endif
@endif
@endforeach