@include('styles.pdfs') {{-- Include letterhead --}} @includeIf('_partials.letterhead-pdf')

Session Report

{{ $names }}

@if($start_date) {{ $start_date }} @if($end_date && $start_date !== $end_date) - {{ $end_date }} @endif @endif

Total Sales: {{ number_format($total_sales) }} XAF
Total Discount: {{ number_format($discount) }} XAF
Total Payable: {{ number_format($total_payable) }} XAF
Transactions: {{ $transactions_count }}
@php($rowNumber = 1) @php($grandTotal = 0) @foreach($cat_items as $category => $items) @php($categoryTotal = 0) @foreach($items as $item) @php($categoryTotal += $item['total']) @endforeach @php($grandTotal += $categoryTotal) @endforeach
# Item Quantity Unit Price Total
{{ $category }}
{{ $rowNumber++ }} {{ $item['name'] }} {{ number_format($item['qty'], 2) }} {{ number_format($item['unit_price']) }} XAF {{ number_format($item['total']) }} XAF
Category Subtotal: {{ number_format($categoryTotal) }} XAF
GRAND TOTAL: {{ number_format($grandTotal) }} XAF

Payment Methods

@php($totalPaid = 0) @foreach($payment_methods as $method => $amount) @php($totalPaid += $amount) @endforeach
Payment Method Amount
{{ $method }} {{ number_format($amount) }} XAF
TOTAL PAID: {{ number_format($totalPaid) }} XAF