@php $customHeaders = [ 'id' => 'ID', 'nom' => 'Last Name', 'prenom' => 'First Name', 'statut'=>'Status', 'creer'=>'Created At', 'depart_name'=>'Source', 'destination_name'=>'Destination', 'date_debut'=>'Start Date', 'date_fin'=>'End Date', ]; @endphp
| {{ $customHeaders[$field] ?? ucfirst(str_replace('_', ' ', $field)) }} | @endforeach
|---|
| {{ $item->$field }} | @endforeach