| Date | Invoice | Product | QTY | Sales | Payment | Due | COGS | Profit | % |
|---|---|---|---|---|---|---|---|---|---|
| {{ $line['date']->format('d/m/y') }} | {{ $line['invoice_no'] }} | {{ substr($line['product_name'], 0, 20) }} | {{ $line['qty'] }} | {{ number_format($line['total_sales'], 0) }} | @if($line['payment_method'] === 'Paid') ✓ Paid @elseif($line['payment_method'] === 'Partial') ◐ Partial @else - Pending @endif | {{ number_format($line['due'], 0) }} | {{ number_format($line['cogs'], 0) }} | {{ number_format($line['gross_profit'], 0) }} | {{ number_format($line['percentage'], 1) }}% |
| No sales data found for the selected period. | |||||||||
| Payment Method | Amount |
|---|---|
| {{ $method }} | {{ number_format($data['total'], 0) }} |
| Total | {{ number_format($summary['total_paid'], 0) }} |
| Segment | QTY | Amount |
|---|---|---|
| {{ $segment['segment_name'] }} | {{ $segment['qty'] }} | {{ number_format($segment['amount'], 0) }} |
| Total | - | {{ number_format($summary['total_sales'], 0) }} |
| No segment data | ||