All Invoices Report
Generated on: {{ now()->format('M d, Y H:i') }}
Summary Statistics
Total Invoices
{{ $invoices->count() }}
Paid Invoices
{{ $invoices->where('status', 'paid')->count() }}
Pending Invoices
{{ $invoices->where('status', '!=', 'paid')->count() }}
Total Amount
${{ number_format($invoices->sum('total'), 2) }}
@foreach($invoices as $invoice)
Invoice: {{ $invoice->invoice_number }}
Customer:
{{ $invoice->customer->customer_account ?? 'N/A' }}
Status:
{{ ucfirst($invoice->status) }}
Date:
{{ \Carbon\Carbon::parse($invoice->invoice_date)->format('M d, Y') }}
Due Date:
{{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('M d, Y') : 'N/A' }}
Created By:
{{ $invoice->creator->name ?? 'N/A' }}
Item
Qty
Total
@forelse($invoice->items ?? [] as $item)
{{ $item->item }}
{{ number_format($item->quantity, 2) }}
${{ number_format($item->line_total, 2) }}
@empty
No items
@endforelse
Total Amount:
${{ number_format($invoice->total, 2) }}
@endforeach