@if (Session::get('success'))
{{ Session::get('success') }}
@endif @if (Session::get('error'))
{{ Session::get('error') }}
@endif

Liste des factures

@if ($invoices->count() > 0)
@foreach($invoices as $key=>$invoice) @endforeach
# Date Référence Client Montant Statut Actions
{{ $key + 1 }} {{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') }} {{ $invoice->reference }} {{ $invoice->client->name ?? 'Client supprimé' }}
{{ $invoice->client->phone ?? '' }}
{{ number_format($invoice->amount->amount ?? 0,0,',',' ') }} FCFA @if($invoice->status == 1) Payée @elseif($invoice->status == 2) Partielle @else Non payée @endif
@else

Aucune facture trouvée.

@endif