Détail du Voyage

Référence : {{ $trip->reference }}
{{-- Ajouter dépense --}} Ajouter Dépense {{-- Ajouter produit --}} Produit Transporté {{-- Mettre fin --}} @if($trip->status == 'En cours') Mettre fin @else Rapport de voyage @endif
{{-- ================= STATUT ================= --}}
@if($trip->status == 'En cours') Voyage en cours @elseif($trip->status == 'Terminé') Voyage terminé @else Annulé @endif
{{-- ================= INFOS GENERALES ================= --}}
Camion

{{ $trip->camion->plaque_immatriculation_tracteur }} / {{ $trip->camion->plaque_immatriculation_tracteur ?? '-' }}
{{ $trip->camion->marque ?? '-' }} / {{ $trip->camion->modele ?? '-' }}

Chauffeur

{{ $trip->chauffeur }}

{{-- ================= TRAJET ================= --}}
Trajet Aller

{{ $trip->departure_aller }} → {{ $trip->arrival_aller }}

Trajet Retour

{{ $trip->departure_retour ?? '-' }} → {{ $trip->arrival_retour ?? '-' }}


{{-- ================= PRODUITS TRANSPORTES ================= --}}
Produits Transportés
@forelse($products as $key => $product) @empty @endforelse
# Type Produit Capacité ou Poids Prix unitaire Manquant Prix du manquant Actions
{{ $key + 1 }} {{ $product->type }} {{ $product->name }} {{ number_format($product->weight, 0, '.', ' ') }} {{ number_format($product->price, 0, '.', ' ') }} FCFA {{ $product->manquant }} {{ number_format($product->price_manquant, 0, '.', ' ') }} FCFA
Aucun produit enregistré
TOTAL RECETTE {{ number_format($sum_products,0,'.',' ') }} FCFA
{{-- ================= DEPENSES ================= --}}
Dépenses du Voyage
@php $totalDepenses = 0; @endphp @forelse($expenses as $key => $expense) @php $totalDepenses += $expense->amount; @endphp @empty @endforelse
# Date Libellé Quantité Prix unitaire Montant Actions
{{ $key + 1 }} {{ \Carbon\Carbon::parse($expense->date)->format('d/m/Y') }} {{ $expense->label }} {{ $expense->quantity }} {{ number_format($expense->price, 0, '.', ' ') }} FCFA {{ number_format($expense->amount, 0, '.', ' ') }} FCFA
Aucune dépense enregistrée
TOTAL {{ number_format($totalDepenses,0,'.',' ') }} FCFA
{{-- ================= NOTE ================= --}} @if($trip->note)
Note

{{ $trip->note }}

@endif