@if(!$invoices)
No hay facturas para este cliente.
@else
# |
Ver |
Fecha |
Folio |
Generado desde |
Total |
Estado |
@foreach($invoices as $invoice)
{{ $loop->iteration }} |
@if($invoice->order)
|
@elseif($invoice->contract)
|
@endif
{{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y') }} |
{{ $invoice->folio }} |
@if($invoice->order)
Orden #{{ $invoice->order->id ?? 'N/A' }}
@elseif($invoice->contract)
Contrato #{{ $invoice->contract->id ?? 'N/A' }}
@endif
|
$ {{ number_format($invoice->total, 2) }} |
{{ ($invoice->getStatus()) }}
|
@endforeach
@endif