@if ($invoices->count() > 0)
| # |
Date
|
Référence
|
Client
|
Montant
|
Statut
|
Actions
|
@foreach($invoices as $key=>$invoice)
|
{{ $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
|
|
@endforeach
@else
@endif