@php $not_included_elements = isset($not_included_elements) ? $not_included_elements : [] @endphp
@php $i = 0 @endphp @foreach($data as $attr => $value) @if (in_array($attr, ['last_name', 'first_name', 'PNR', 'source', 'codeshare'])) @continue @elseif(count($not_included_elements) && in_array($attr, $not_included_elements)) @continue @endif
@php $attribute = $attr @endphp @if (contains($attr, '__')) @php $attribute = strtoupper(str_replace('__', '/', $attr)) @endphp @else @php $attribute = ucwords(str_replace('_', ' ', $attr)) @endphp @endif
{{ $attribute }}
{{ $value }}
@endforeach