{{ $settings['company_name'] ?? 'Inventory Management System' }}
PURCHASE VS SALES REPORT
Date Range: {{ date('d-m-Y', strtotime($from_date)) }} to {{ date('d-m-Y', strtotime($to_date)) }} @if($shipment_number) | Shipment: {{ $shipment_number }} @else | Shipment: All @endif
@php $sl = 1; @endphp @foreach($reportData as $row) @endforeach
Sl Product Name Shipment No Purchase Qty Sale Qty Wastage Qty Purchase Return Sales Return Stock in Hand Purchase Amount Sale Amount Profit/Loss
{{ $sl++ }} {{ $row['product_name'] }} {{ $row['shipment_number'] }} {{ number_format($row['purchase_qty'], 2) }} {{ number_format($row['sale_qty'], 2) }} {{ number_format($row['wastage_qty'], 2) }} {{ number_format($row['purchase_return_qty'], 2) }} {{ number_format($row['sale_return_qty'], 2) }} {{ number_format($row['stock_in_hand'], 2) }} {{ number_format($row['purchase_amount'], 2) }} {{ number_format($row['sale_amount'], 2) }} {{ number_format($row['profit'], 2) }}
Total: {{ number_format($totalPurchaseQty, 2) }} {{ number_format($totalSaleQty, 2) }} {{ number_format($totalWastageQty, 2) }} {{ number_format($totalPurchaseReturnQty, 2) }} {{ number_format($totalSaleReturnQty, 2) }} {{ number_format($totalStockInHand, 2) }} {{ number_format($totalPurchaseAmount, 2) }} {{ number_format($totalSaleAmount, 2) }} {{ number_format($grossProfit, 2) }}
Generated on: {{ date('d-m-Y H:i:s') }}