FICHE DE RÉPARATION

Date : {{ \Carbon\Carbon::parse($reparation->debut)->format('d/m/Y') }} à {{ \Carbon\Carbon::parse($reparation->fin)->format('d/m/Y') }}

Informations générales

N° Réparation : {{ $reparation->reference }} Statut : {{ $reparation->status ?? '—' }}

Camion

Immatriculation Marque Modèle
{{ $reparation->camion->plaque_immatriculation_tracteur ?? '-' }} / {{ $reparation->camion->plaque_immatriculation_equipement ?? '-' }} {{ $reparation->camion->marque ?? '-' }} {{ $reparation->camion->modele ?? '-' }}

Pièces utilisées

@php $grandTotal = 0; @endphp @foreach($pieces as $piece) @php $total = $piece->quantity * $piece->price; $grandTotal += $total; @endphp @endforeach
Pièce Fournisseur Quantité Prix unitaire Total
{{ $piece->name }} {{ $piece->name_fournisseur ?? '-' }} / {{ $piece->address_fournisseur ?? '-' }} {{ $piece->quantity }} {{ number_format($piece->price, 0, '.', ' ') }} FCFA {{ number_format($total, 0, '.', ' ') }} FCFA
TOTAL {{ number_format($grandTotal, 0, '.', ' ') }} FCFA
@php $labor = $reparation->labor ?? 0; $totalReparation = $grandTotal + $labor; @endphp

Coût de la réparation

Coût des pièces {{ number_format($grandTotal, 0, '.', ' ') }} FCFA
Main-d’œuvre {{ number_format($labor, 0, '.', ' ') }} FCFA
TOTAL GÉNÉRAL {{ number_format($totalReparation, 0, '.', ' ') }} FCFA
Signature Responsable Signature Client