@if(session()->has('success'))
{{ session('success') }}
@endif @if(session()->has('error'))
{{ session('error') }}
@endif

{{ $purchase->reference }}

Achat carburant fournisseur
Date achat {{ \Carbon\Carbon::parse($purchase->date)->format('d/m/Y') }}

Fournisseur {{ $purchase->supplier?->company }}
Quantité totale {{ number_format($purchase->items->sum('quantity') - $purchase->items->sum('manquant'), 0, '.', ' ') }} L Manquant : {{ number_format($purchase->items->sum('manquant'), 0, '.', ' ') }} L
Montant total {{ number_format($totalAmount, 0, '.', ' ') }} FCFA
Reste à payer {{ number_format($resteAmount, 0, '.', ' ') }} FCFA
Total payé

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

Pourcentage paiement

{{ $paymentPercent }} %

Progression paiement {{ $paymentPercent }} %
Produits achetés
@foreach($purchase->items as $item) @endforeach
Camion Désignation Qté Prix Montant Manquant
{{ $item->camion }} {{ $item->designation }} {{ number_format($item->quantity, 0, '.', ' ') }} L {{ number_format($item->price, 0, '.', ' ') }} FCFA {{ number_format($item->amount, 0, '.', ' ') }} FCFA {{ number_format($item->manquant, 0, '.', ' ') }} L
Historique des paiements
Paiements effectués pour cet achat
@if($payments->count() > 0) @foreach($payments as $key=>$payment) @endforeach @else @endif
# Référence Date Montant Mode Bordereau Utilisateur Action
{{ $key+1 }} {{ $payment->reference }} {{ \Carbon\Carbon::parse($payment->date)->format('d/m/Y') }} {{ number_format($payment->amount,0,'.',' ') }} FCFA {{ $payment->mode_paiement }} {{ $payment->numero_bordereau ?? '-' }} {{ $payment->user?->name ?? '-' }}
Aucun paiement trouvé