@extends('layouts.app') @section('title', 'Return Inspection ' . $salesReturn->return_number . ' - Pavitram Agroz') @section('content')

{{ $salesReturn->return_number }}

@if($salesReturn->status === 'Completed' || $salesReturn->status === 'Approved') Completed & Refunded @elseif($salesReturn->status === 'Rejected') Rejected @else Under Quality Inspection @endif

Initiated on {{ $salesReturn->return_date->format('l, d M Y at H:i') }} | Store: {{ $salesReturn->store->name }}

@can('approve', $salesReturn) @endcan View Original Invoice ← Returns Directory
Return Initiation Details
Store Location: {{ $salesReturn->store->name }} {{ $salesReturn->store->code }}
Processed By Staff: {{ $salesReturn->processor->name }}
Refund Settlement Status
Total Refund Amount: ₹{{ number_format($salesReturn->total_refund_amount, 2) }}
Refund State: @if($salesReturn->refund_status === 'Refunded') Paid via {{ $salesReturn->refund_method }} @else Pending Manager Authorization @endif
@if($salesReturn->approver)
Approved by: {{ $salesReturn->approver->name }} on {{ $salesReturn->refunded_at ? $salesReturn->refunded_at->format('d M Y H:i') : '' }}
@endif
Quality Inspection Policy

Sealed / Intact: Unit can be restocked into store inventory.

Damaged / Leaking: Move to quarantine write-off. Never return to saleable stock.

Rejected: Product remains with customer; no refund issued.

Physical Units Quality Inspection ({{ $salesReturn->items->count() }}) Record physical condition and disposition
@if($salesReturn->status !== 'Completed') @endif @foreach($salesReturn->items as $idx => $item) @if($salesReturn->status !== 'Completed') @endif @endforeach
# Product & Serial # Reason Given Customer Condition Inspection Decision Refund AmountUpdate Decision
{{ $idx + 1 }}
{{ $item->product->name }}
{{ $item->unit->serial_number ?? 'S/N Not Found' }}
{{ $item->return_reason }} {{ $item->condition }} @if($item->resolution === 'Restock') Restock into Store @elseif($item->resolution === 'Damaged / Quarantine') Quarantine (Damaged) @elseif($item->resolution === 'Dispose') Write-off / Dispose @elseif($item->resolution === 'Rejected') Rejected @else Pending Inspection @endif ₹{{ number_format($item->refund_amount, 2) }}
@csrf
@can('approve', $salesReturn) @endcan @endsection