@php $itemsSubtotal = (float) ($summary['subtotal_without_tax'] ?? $data->sum('total_sales')); $totalQty = (int) ($summary['total_quantity'] ?? $data->sum('total_quantity')); $serviceCharges = (float) ($summary['service_charges'] ?? round($itemsSubtotal * 0.07)); $gstTax = (float) ($summary['gst_tax'] ?? 0); $praTax = (float) ($summary['pra_tax'] ?? 0); $grandTotal = (float) ($summary['grand_total'] ?? ($itemsSubtotal + $serviceCharges + $gstTax + $praTax)); $todayServiceCharges = (float) ($summary['today_service_charges'] ?? $serviceCharges); $todayPraTax = (float) ($summary['today_pra_tax'] ?? $praTax); @endphp
@include('print.partials.print-report-branding')

Item Sales Report

Generated on: {{ now()->format('d M Y, h:i A') }}
Subtotal (Excl. Tax & Service)
Rs {{ number_format($itemsSubtotal, 2) }}
Without Service & PRA Tax
Service (7%)
Rs {{ number_format($serviceCharges, 2) }}
Today's Service (7%): Rs {{ number_format($todayServiceCharges, 2) }}
PRA Tax (8%)
Rs {{ number_format($praTax, 2) }}
Today's PRA (8%): Rs {{ number_format($todayPraTax, 2) }}
Grand Total (Incl. Tax)
Rs {{ number_format($grandTotal, 2) }}
Including Service (7%) & PRA (8%)
@foreach ($data as $index => $item) @endforeach
# Order ID Category Product Qty Sold Subtotal (Excl. Tax)
{{ $index + 1 }} #{{ $item->order_id ?? '-' }} {{ $item->category->name ?? 'Uncategorized' }} {{ $item->product->name ?? '-' }} {{ number_format($item->total_quantity) }} Rs {{ number_format($item->total_sales, 2) }}
Subtotal (Without GST & PRA Tax): {{ number_format($totalQty) }} Rs {{ number_format($itemsSubtotal, 2) }}
Service Charges (7%): Rs {{ number_format($serviceCharges, 2) }}
GST Tax: Rs {{ number_format($gstTax, 2) }}
PRA Tax (8%): Rs {{ number_format($praTax, 2) }}
Grand Total (Incl. Tax): Rs {{ number_format($grandTotal, 2) }}