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

Facture {{ $invoice->reference }}

Imprimer
Client :
{{ $invoice->client->name }}
Date :
{{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') }}
Statut :
@if($invoice->status == 1) Payée @elseif($invoice->status == 2) Partielle @else Non payée @endif

Détails facture
@foreach($invoice->details as $detail) @endforeach
Produit Immatriculation Qté Prix Total
{{ $detail->product }} {{ $detail->immatriculation }} {{ $detail->quantity }} {{ number_format($detail->price, 0, ',', ' ') }} FCFA {{ number_format($detail->amount, 0, ',', ' ') }} FCFA

Historique des paiements
@forelse($invoice->payments as $key => $payment) @empty @endforelse
# Date Référence Mode Montant Actions
{{ $key + 1 }} {{ \Carbon\Carbon::parse($payment->payment_date)->format('d/m/Y') }} {{ $payment->reference }} {{ $payment->payment_mode }} {{ number_format($payment->amount, 0, ',', ' ') }} FCFA
Aucun paiement
Total : {{ number_format($invoice->amount->amount, 0, ',', ' ') }} FCFA
Payé : {{ number_format($invoice->amount->paid, 0, ',', ' ') }} FCFA
Reste : {{ number_format($invoice->amount->remaining, 0, ',', ' ') }} FCFA
@if($showPaymentModal) @endif