{{ $company['name'] ?? config('app.name') }}
@if(!empty($company['address'])){{ $company['address'] }}
@endif @if(!empty($company['city']) || !empty($company['state'])){{ $company['city'] }}{{ !empty($company['city']) && !empty($company['state']) ? ', ' : '' }}{{ $company['state'] }} {{ $company['zip'] ?? '' }}
@endif @if(!empty($company['phone']))Phone: {{ $company['phone'] }}
@endif @if(!empty($company['email']))Email: {{ $company['email'] }}
@endif @if(!empty($company['gst']))GSTIN: {{ $company['gst'] }}@endif
GOODS RECEIPT NOTE
{{ $grn->grn_number }}
Date: {{ $grn->grn_date->format('d M Y') }}
{{ $grn->status }}
Vendor Details
{{ $grn->vendor->name ?? '-' }}
@if($grn->vendor) @if($grn->vendor->vendor_code)
Code: {{ $grn->vendor->vendor_code }}
@endif @if($grn->vendor->address)
{{ $grn->vendor->address }}
@endif @if($grn->vendor->city || $grn->vendor->state)
{{ $grn->vendor->city }}{{ $grn->vendor->city && $grn->vendor->state ? ', ' : '' }}{{ $grn->vendor->state }} {{ $grn->vendor->pincode }}
@endif @if($grn->vendor->phone)
Phone: {{ $grn->vendor->phone }}
@endif @if($grn->vendor->gst_number)
GSTIN: {{ $grn->vendor->gst_number }}
@endif @endif
Receipt Details
@if($grn->purchaseOrder)
Purchase Order: {{ $grn->purchaseOrder->po_number }}
@endif
Warehouse: {{ $grn->warehouse->name ?? '-' }}
@if($grn->rack)
Rack: {{ $grn->rack->name ?? $grn->rack->code }}
@endif @if($grn->invoice_number)
Invoice No: {{ $grn->invoice_number }}
@endif @if($grn->invoice_date)
Invoice Date: {{ $grn->invoice_date->format('d M Y') }}
@endif @if($grn->lr_number)
LR/Docket No: {{ $grn->lr_number }}
@endif @if($grn->vehicle_number)
Vehicle No: {{ $grn->vehicle_number }}
@endif
Received By: {{ $grn->receiver->name ?? '-' }}
@php $totalValue = 0; $totalTax = 0; @endphp @foreach($grn->items as $i => $item) @php $lineTotal = $item->accepted_qty * $item->rate; $taxRate = ($item->tax_1_rate ?? 0) + ($item->tax_2_rate ?? 0); $taxableAmt = $taxRate > 0 ? ($lineTotal / (1 + $taxRate / 100)) : $lineTotal; $taxAmt = $lineTotal - $taxableAmt; $totalValue += $lineTotal; $totalTax += $taxAmt; @endphp @if($item->rejection_reason) @endif @endforeach
# Product Unit Ordered Received Accepted Rejected Rate Tax Amount Lot/Batch
{{ $i + 1 }} {{ $item->product->name ?? 'N/A' }} @if($item->variation)
{{ $item->variation->variation_name ?: $item->variation->sku }}@endif @if($item->product && $item->product->sku)
SKU: {{ $item->product->sku }}@endif @if($item->product && $item->product->hsn_code)
HSN: {{ $item->product->hsn_code }}@endif
{{ $item->unit->short_name ?? '-' }} {{ number_format($item->ordered_qty, 2) }} {{ number_format($item->received_qty, 2) }} {{ number_format($item->accepted_qty, 2) }} {{ $item->rejected_qty > 0 ? number_format($item->rejected_qty, 2) : '-' }} ₹{{ number_format($item->rate, 2) }} @if($item->tax_1_name){{ $item->tax_1_name }} ({{ $item->tax_1_rate }}%)@elseif($taxRate > 0)GST {{ $taxRate }}%@else - @endif ₹{{ number_format($lineTotal, 2) }} @if($item->lot_no)L: {{ $item->lot_no }}
@endif @if($item->batch_no)B: {{ $item->batch_no }}
@endif @if($item->expiry_date)Exp: {{ $item->expiry_date->format('d/m/Y') }}@endif @if(!$item->lot_no && !$item->batch_no) - @endif
Rejection: {{ $item->rejection_reason }}
@if($grn->notes)
Notes
{!! nl2br(e($grn->notes)) !!}
@endif
Quantity Summary
Total Received: {{ number_format($grn->total_qty, 3) }} | Accepted: {{ number_format($grn->accepted_qty, 3) }} | Rejected: {{ number_format($grn->rejected_qty, 3) }}
Taxable Amount₹{{ number_format($totalValue - $totalTax, 2) }}
Tax Amount₹{{ number_format($totalTax, 2) }}
Total Value₹{{ number_format($totalValue, 2) }}
@if($settings['show_signature'] ?? true)
Received By
Inspected By
{{ $settings['signature_text'] ?? 'Authorized Signatory' }}
@endif @if(!empty($settings['footer_text'])) @endif