@php $socialConfig = $config['form']['navbar']['social']; @endphp
@if (!empty($socialConfig['multiple']) && !empty($socialConfig['input'])) {{-- Per-platform repeater with name + url --}} @foreach ($socialConfig['input'] as $k_s => $s) @if (empty($s['status'])) @continue @endif @php $label = __("field.{$k_s}"); $values = $data->social[$k_s] ?? []; if (is_string($values)) $values = json_decode($values, true) ?? []; if (empty($values)) $values = [['name' => '', 'url' => '']]; @endphp
@foreach ($values as $idx => $item)
@endforeach
@endforeach @else {{-- Legacy fixed-platform pattern --}} @php $social = $socialConfig['input'] ?? []; @endphp
@foreach ($social as $key => $item) @if (!empty($item['status']))
@php $param = $data->social[$key] ?? null; @endphp
@endif @endforeach
@endif