@extends('layouts.app') @section('content')
← Back to GRNs

GRN Details: {{ $goodReceiveNote->grn_number }}

GRN Information

GRN Number: {{ $goodReceiveNote->grn_number }}
Supplier: {{ $goodReceiveNote->supplier->company_name }}
Contact: {{ $goodReceiveNote->supplier->phone }}
Received Date: {{ $goodReceiveNote->received_date->format('F d, Y') }}
Invoice Number: {{ $goodReceiveNote->invoice_number ?? '-' }}
Invoice Date: {{ $goodReceiveNote->invoice_date ? $goodReceiveNote->invoice_date->format('F d, Y') : '-' }}
Payment Type: {{ ucfirst($goodReceiveNote->payment_type ?? 'cash') }} @if ($goodReceiveNote->is_credit && $goodReceiveNote->supplierCredit)
Outstanding: LKR {{ number_format($goodReceiveNote->supplierCredit->outstanding_amount, 2) }}
@endif
Status: {{ $goodReceiveNote->status }}
@if ($goodReceiveNote->notes)
Notes:

{{ $goodReceiveNote->notes }}

@endif

Summary

Subtotal Before Discount: LKR {{ number_format($goodReceiveNote->subtotal_before_discount, 2) }}
@if ($goodReceiveNote->discount > 0)
Discount: LKR {{ number_format($goodReceiveNote->discount, 2) }}
@endif
Subtotal: LKR {{ number_format($goodReceiveNote->subtotal, 2) }}
Tax: LKR {{ number_format($goodReceiveNote->tax, 2) }}
Shipping: LKR {{ number_format($goodReceiveNote->shipping, 2) }}
Total: LKR {{ number_format($goodReceiveNote->total, 2) }}
Batches Created: {{ $goodReceiveNote->batches->count() }}

Batches

@foreach ($goodReceiveNote->batches as $batch)

{{ $batch->batch_number }}

Manufacture: {{ $batch->manufacture_date?->format('Y-m-d') ?? 'N/A' }} | Expiry: {{ $batch->expiry_date?->format('Y-m-d') ?? 'N/A' }}

View Batch Details →
@foreach ($batch->stocks as $stock) @endforeach
Product SKU Cost Price Selling Price Tax % Quantity Available
{{ $stock->product->product_name }} {{ $stock->product->sku }} LKR {{ number_format($stock->cost_price, 2) }} LKR {{ number_format($stock->selling_price, 2) }} {{ $stock->tax }}% {{ $stock->quantity }} {{ $stock->available_quantity }}
@endforeach
@endsection