@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 (empty($i['status'])) @continue @endif
@php $read_only = !empty($i['readonly']); $label = __("field.{$k_i}"); if ($k_c == 'row_3') { $social = json_decode($data->contact->social ?? '{}', true); $value = $social[$k_i]['url'] ?? null; } else { $value = $data->contact->{$k_i} ?? null; } @endphp @if (in_array($i['type'], ['input', 'mail', 'tel'])) @endif
@endforeach
@else
@php $read_only = !empty($c['readonly']); $label = __("field.{$k_c}"); @endphp @if (in_array($c['type'], ['input', 'text'])) @endif
@endif @endforeach