Sales Report

Period: {{ \Carbon\Carbon::parse($dateFrom)->format('M d, Y') }} to {{ \Carbon\Carbon::parse($dateTo)->format('M d, Y') }}

Generated on: {{ now()->format('M d, Y h:i A') }}

Total Sales

{{ number_format($stats['totalSales'] ?? 0, 2) }}

Total Invoices

{{ $stats['totalInvoices'] ?? 0 }}

Paid

{{ $stats['paidInvoices'] ?? 0 }}

Unpaid

{{ $stats['unpaidInvoices'] ?? 0 }}

@forelse($invoices as $index => $invoice) @empty @endforelse
# Invoice Number Customer Date Amount Status
{{ $index + 1 }} {{ $invoice->invoice_number }} {{ $invoice->customer->name ?? 'N/A' }} {{ $invoice->issue_date->format('M d, Y') }} {{ number_format($invoice->total, 2) }} {{ ucfirst($invoice->status) }}
No sales data available