@push('title') View Purchase Return: {{ $purchaseReturn->pr_code }} @endpush

Purchase Returns / {{ $purchaseReturn->pr_code }}

{{-- Return Context --}}
Return Context
PR Code
{{ $purchaseReturn->pr_code }}
Return Date
{{ date('Y-M-d', strtotime($purchaseReturn->return_date)) }}
Warehouse
{{ $purchaseReturn->warehouse->name ?? 'N/A' }}
Status
@if($purchaseReturn->status == \App\Models\PurchaseReturn::SENT) Sent @else Pending @endif
{{-- Supplier Details --}}
Supplier Details
Supplier Name
{{ $purchaseReturn->supplier->name ?? 'N/A' }}
Contact Information
@if($purchaseReturn->supplier->phone) {{ $purchaseReturn->supplier->phone }} @endif @if($purchaseReturn->supplier->email)
{{ $purchaseReturn->supplier->email }} @endif
Postal Address
{{ $purchaseReturn->supplier->address ?? 'N/A' }}
{{-- Items Table --}}
Returned Items
@foreach($purchaseReturn->items as $item) @endforeach
Item & Batch Qty Price Disc. Tax Subtotal
{{ $item->product->name ?? 'N/A' }}
@php $label = $item->variationType ? $item->variationType->name : null; @endphp @if($label && $label !== 'Default') {{ $label }} @endif @if($item->batch) Batch: {{ $item->batch->batch_no }} @endif
Code: {{ $item->product->code ?? 'N/A' }}
{{ number_format($item->qty, 0) }} Rs {{ number_format($item->unit_price, 2) }} -{{ number_format($item->discount_amount, 2) }} {{ number_format($item->tax_amount, 2) }} Rs {{ number_format($item->total, 2) }}
{{-- Financial Summary --}}
Return Total
Items Subtotal: Rs {{ number_format($purchaseReturn->items->sum(fn($i) => $i->qty * $i->unit_price), 2) }}
Return Discount: - Rs {{ number_format($purchaseReturn->return_discount ?? 0, 2) }}
Return Tax: Rs {{ number_format($purchaseReturn->return_tax ?? 0, 2) }}

Grand Total Rs {{ number_format($purchaseReturn->total_amount, 2) }}
{{-- Quick Notes --}}
Return Note
{{ $purchaseReturn->note ?: 'No special notes / instructions provided.' }}
{{-- Metadata --}}
Metadata
Recorded: {{ $purchaseReturn->created_at->format('Y-M-d H:i') }}
Last Update: {{ $purchaseReturn->updated_at->format('Y-M-d H:i') }}