@php $labelCol = $labelCol ?? 'col-4'; $dataCol = $dataCol ?? 'col-8'; $phoneFields = ['phone_number']; $emailFields = ['email', 'email_address']; $locationFields = ['select_location', 'preferred_location']; $staticRows = [ ['label' => $staticLabels['submitted_date'], 'value' => $submission->created_at->format($listDataAtrArr['mdfy_dt_frmt'])], ['label' => $staticLabels['user_ip'], 'value' => $submission->user_ip ?? ''], ['label' => $staticLabels['browser'], 'value' => $submission->browser ?? ''], ['label' => $staticLabels['platform'], 'value' => $submission->platform ?? ''], ]; @endphp
@foreach (collect($formFields)->chunk(2) as $fieldPair) @foreach ($fieldPair as $field => $label) @php($value = $fieldValues[$field] ?? '')
@if ((string) $value === '') @elseif (in_array($field, $phoneFields, true)) {{ $value }} @elseif (in_array($field, $emailFields, true)) {{ $value }} @elseif (strip_tags((string) $value) !== (string) $value) {!! $value !!} @else {{ $value }} @endif
@endforeach @endforeach

@foreach ($staticRows as $row)
{{ $row['value'] }}
@endforeach