@push('header') @endpush

Moon Traders
Goods Issue Report
Period: {{ \Carbon\Carbon::parse($startDate)->format('d-M-Y') }} to {{ \Carbon\Carbon::parse($endDate)->format('d-M-Y') }} @if($filterSummary)
{{ $filterSummary }} @endif

Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@foreach($matrixData['dates'] as $date) @endforeach @forelse($matrixData['products'] as $product) @foreach($matrixData['dates'] as $date) @php $count = $product['daily_data'][$date]['count'] ?? 0; @endphp @endforeach @empty @endforelse {{-- Daily Totals (Optional? Leaving blank for layout clarity or calculate if needed) --}} @foreach($matrixData['dates'] as $date) @endforeach
S.No SKU Code SKU Category G.I Total{{ \Carbon\Carbon::parse($date)->format('j') }}Total COGS Sale Avg Expenses Net Profit
{{ $loop->iteration }} {{ $product['product_code'] }} {{ $product['product_name'] }} {{ $product['category_name'] }} {{ number_format($product['totals']['total_issued_value'], 2) }} @if($count > 0) {{ $count }} @else 0 @endif {{ $product['totals']['total_issued_qty'] + 0 }} {{ number_format($product['totals']['total_cogs'], 2) }} {{ number_format($product['totals']['total_sale'], 2) }} {{ number_format($product['totals']['total_expenses'], 2) }} {{ number_format($product['totals']['total_profit'], 2) }}
No data found for the selected criteria.
Grand Totals: {{ number_format($matrixData['grand_totals']['issued_value'], 2) }} {{ $matrixData['grand_totals']['issued_qty'] + 0 }} {{ number_format($matrixData['grand_totals']['cogs'], 2) }} {{ number_format($matrixData['grand_totals']['sale_amount'], 2) }} {{ number_format($matrixData['grand_totals']['expenses'], 2) }} {{ number_format($matrixData['grand_totals']['profit'], 2) }}