@php $weight = $config['form']['navbar']['weight']['input']; $k_last = array_key_last($weight); @endphp
@foreach ($weight as $k_c => $c) @if (empty($c['status'])) @continue @endif @if (str_contains($k_c, 'row_'))
@foreach ($c 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'], ['number'])) @endif
@endforeach
@else
@php $chk_req = !empty($c['validate']); $label = __("field.{$k_c}"); $readonly = !empty($c['readonly']); @endphp @if (in_array($c['type'], ['input', 'text', 'mail', 'tel'])) @endif
@endif @endforeach