@if(!empty($truckResults))
@foreach($truckResults as $truck) @endforeach
@endif
@forelse($repairs as $index => $repair) @php $piecesTotal = 0; foreach($repair->pieces as $piece){ $piecesTotal += $piece->price * $piece->quantity; } @endphp @empty @endforelse
# Référence Date Camion Main d'oeuvre Total Pièces Total Réparation
{{ $index+1 }} {{ $repair->reference }} {{ \Carbon\Carbon::parse($repair->debut)->format('d/m/Y') }} {{ $repair->camion->plaque_immatriculation_tracteur ?? '-' }} / {{ $repair->camion->plaque_immatriculation_equipement ?? '-' }} {{ number_format($repair->labor,0,'.',' ') }} FCFA {{ number_format($piecesTotal,0,'.',' ') }} FCFA {{ number_format($piecesTotal + $repair->labor,0,'.',' ') }} FCFA
Aucun résultat
TOTAL GÉNÉRAL {{ number_format($totalLabor,0,'.',' ') }} FCFA {{ number_format($totalPieces,0,'.',' ') }} FCFA {{ number_format($grandTotal,0,'.',' ') }} FCFA
Total pièces utilisées

{{ $totalPiecesCount }}

Total Main d'oeuvre

{{ number_format($totalLabor,0,'.',' ') }} FCFA

Total Global

{{ number_format($grandTotal,0,'.',' ') }} FCFA