Facture #{{ $invoice->reference }}

@if(($invoice->amount->remainder ?? 0) > 0) Ajouter Paiement @endif Imprimer
@if($invoice->status == 'paid') Payée @elseif($invoice->status == 'waiting') En attente @elseif($invoice->status == 'canceled') Annulée @else {{ $invoice->status }} @endif
Client

{{ $invoice->client->name }}
{{ $invoice->client->phone }}

Date

{{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') }}

Note

{{ $invoice->note ?? '-' }}

Produits transportés
@foreach($invoice->items as $key => $item) @endforeach
# Désignation Quantité Prix Montant
{{ $key + 1 }} {{ $item->designation }} {{ $item->quantity }} {{ number_format($item->price, 0, ',', ' ') }} FCFA {{ number_format($item->amount, 0, ',', ' ') }} FCFA
Paiements
@if($invoice->payments && $invoice->payments->count()) @foreach($invoice->payments as $key => $payment) @endforeach
# Date Montant Méthode de paiement Actions
{{ $key + 1 }} {{ \Carbon\Carbon::parse($payment->date)->format('d/m/Y') }} {{ number_format($payment->payment, 0, ',', ' ') }} FCFA {{ ucfirst($payment->mode_payment) }}
@else

Aucun paiement enregistré

@endif
Résumé de la facture
Total articles :
{{ number_format($invoice->amount->amount_items ?? 0, 0, ',', ' ') }} FCFA
Remise :
{{ number_format($invoice->amount->discount ?? 0, 0, ',', ' ') }} FCFA
Paiements effectués :
{{ number_format($invoice->amount->amount_payments ?? 0, 0, ',', ' ') }} FCFA
Reste à payer :
{{ number_format($invoice->amount->remainder ?? 0, 0, ',', ' ') }} FCFA