Monthly Sales Report
{{ \Carbon\Carbon::now()->format('F d, Y') }}
@foreach($monthlySales as $invoice) @endforeach
No. Invoice No Customer Store Total Paid Balance
{{ $loop->iteration }} #INV-{{ $invoice->id }} {{ $invoice->customer->name ?? 'N/A' }} {{ $invoice->store->name ?? 'N/A' }} {{ number_format($invoice->total_amount, 2) }} {{ number_format($invoice->advance_paid, 2) }} {{ number_format($invoice->balance, 2) }}
Total {{ number_format($monthlyTotals['total_amount'], 2) }}
Paid {{ number_format($monthlyTotals['paid_amount'], 2) }}
Balance {{ number_format($monthlyTotals['balance'], 2) }}