@if(isset($mission->trajets) && count($mission->trajets) > 0)
@foreach($mission->trajets as $trajet)
Trajet :
{{ $trajet["ville_depart"]["nom"] }}
>>>
{{ $trajet["ville_arriver"]["nom"] }}
({{ $trajet["distance"] ?? '0' }} km)
@endforeach
@else
Trajet : N/A
@endif
Distance totale
{{ $mission->distance ?? 'N/A' }} km
Période
{{ $mission->date_depart ? \Carbon\Carbon::parse($mission->date_depart)->format('d/m/Y') : 'N/A' }} -
{{ $mission->date_fin ? \Carbon\Carbon::parse($mission->date_fin)->format('d/m/Y') : 'N/A' }}
| Participant / Type de frais |
Quantité |
Prix unitaire |
Montant total |
@if(isset($fraisParParticipants) && count($fraisParParticipants) > 0)
@foreach($fraisParParticipants as $participant)
|
{{ $participant['agent']->nom ?? 'N/A' }} {{ $participant['agent']->prenom ?? 'N/A' }}
|
@foreach($participant['frais'] as $frais)
| {{ $frais['type_frais'] ?? 'N/A' }} |
{{ $frais['quantite'] ?? '0' }} |
{{ number_format($frais['prix_unitaire'] ?? 0, 0, ',', ' ') }} FCFA |
{{ number_format($frais['montant_total'] ?? 0, 0, ',', ' ') }} FCFA |
@endforeach
| SOUS-TOTAL {{ strtoupper($participant['agent']->nom ?? 'N/A') }} |
{{ number_format(collect($participant['frais'])->sum('montant_total'), 0, ',', ' ') }} FCFA |
@endforeach
@else
|
Aucun frais enregistré pour cette mission
|
@endif
@if(isset($fraisTransportVehicule) && !empty($fraisTransportVehicule))
🚗 Un Véhicule de Service a été affecté à cette mission
Distance: {{ $fraisTransportVehicule['details_calcul']['distance'] }} km
Le véhicule: {{ $fraisTransportVehicule['details_calcul']['vehicule_nom'] }} a été assigné pour cette mission
Consommation: {{ $fraisTransportVehicule['details_calcul']['consommation'] }} L
Prix essence: {{ $fraisTransportVehicule['details_calcul']['prix_essence'] }} FCFA
@endif
TOTAL GÉNÉRAL DE LA MISSION
{{ number_format($totalGeneral ?? 0, 0, ',', ' ') }} FCFA