@push('title') Create GRN - PO: {{ $purchaseOrder->po_code }} @endpush New Goods Receipt Note (GRN) @csrf PO Code {{ $purchaseOrder->po_code }} Supplier {{ $purchaseOrder->supplier->name ?? 'N/A' }} Warehouse {{ $purchaseOrder->warehouse->name ?? 'N/A' }} Receipt Date * Invoice Number * Find & Add Extra / Free Item (Different Variation/Product) Product / Variation Pending Receiving Free Qty Retail (Rs) Cost (Rs) Wholesale (Rs) Discount Line Total @foreach($purchaseOrder->items as $index => $item) @php $pending = $item->qty - $item->received_qty; @endphp {{ $item->product->name }} {{ $item->productVariation->variation_id ? ($item->productVariation->variationType->name ?? 'N/A') : 'Default' }} {{ floatval($pending) }} Rs % {{-- Hidden field for calculated absolute discount --}} Rs 0.00 @endforeach @if($pendingReturns->count() > 0) Pending Returns Offset Reference Date Amount @foreach($pendingReturns as $return) {{ $return->pr_code }} {{ $return->return_date }} Rs {{ number_format($return->total_amount, 2) }} @endforeach @endif Notes Subtotal: Rs 0.00 Overall Discount: Rs % {{-- Hidden field for calculated absolute order discount --}} Returns Adjustment: - Rs 0.00 Grand Total: Rs 0.00 Complete & Save GRN
{{ $return->pr_code }}