@php $brand = config('company.brand'); $title = $title ?? null; // $rows: array of ['label' => ..., 'value' => ...] OR associative array $normalized = []; foreach (($rows ?? []) as $k => $v) { if (is_array($v) && array_key_exists('label', $v)) { $normalized[] = ['label' => $v['label'], 'value' => $v['value'] ?? '']; } else { $normalized[] = ['label' => is_int($k) ? '' : $k, 'value' => $v]; } } @endphp
| {{ $title }} | |
| {{ $row['label'] }} | {!! $row['value'] !!} |