@php
$contact = $config['form']['navbar']['contact']['input'];
$k_last = array_key_last($contact);
@endphp
@foreach ($contact as $k_c => $c)
@if (empty($c['status']))
@continue
@endif
@if (str_contains($k_c, 'row_'))
@foreach ($c as $k_i => $i)
@if ($k_i === 'status' || !is_array($i) || empty($i['status']))
@continue
@endif
@php
$chk_req = !empty($i['validate']);
$label = $i['label'] ?? __("field.{$k_i}");
@endphp
@if ($k_i === 'tel' && ($i['type'] ?? '') === 'tel' && !empty($i['multiple']))
@php
$tel_lines = \Modules\Contact\app\Models\Information::telLinesForForm(data_get($data, 'tel'));
$tel_max_multi = $i['multiple_max'] ?? ($i['multiiple_max'] ?? 5);
@endphp
@foreach ($tel_lines as $_ti => $_tn)
@endforeach
@elseif (in_array($i['type'], ['mail', 'tel', 'input']))
@endif
@endforeach
@else
@php
$chk_req = !empty($c['validate']);
$label = __("field.{$k_c}");
@endphp
@if (in_array($c['type'], ['text', 'input', 'mail', 'tel']))
@endif
@endif
@endforeach