@if($invoicereport) @foreach ($invoices as $invoice) {{-- --}} @if($invoice->creditNotes->isNotEmpty()) @endif @if($invoice->status === 'not paid') @endif @endforeach
Invoice Number Amount Balance Payment number Status Customer ID Type Actions
{{ $invoice->invoiceNo }} {{ number_format(abs($invoice->amount), 2) }} {{ number_format($invoice->amount - $invoice->paid, 2) }} {{ $invoice->meter_number }} {{ $invoice->status }} {{ $invoice->customer_id }} {{ $invoice->invoice_type }}{{ $invoice->billable_type }}
@foreach($invoice->creditNotes as $creditNote) @endforeach
Credit Note Number Amount Date Notes Action
{{ $creditNote->credit_note_number }} {{ number_format($creditNote->amount, 2) }} {{ $creditNote->created_at->format('m/d/Y') }} {{ $creditNote->notes ?? 'N/A' }}
@php $index_route = url('/invoices'); @endphp @include('partials.pagination', ['items' => $invoices, 'index_route' => $index_route]) @else

No invoices or credit notes found.

@endif