@extends('layouts.app') @section('title', 'Initiate Customer Return - Pavitram Agroz') @section('content')

Initiate Customer Product Return

Locate original sales invoice, identify individual physical units, and record return reasons.

← Back to Returns List
Step 1: Locate Original Sales Invoice
@if($selectedInvoice)
Step 2: Select Units for Return from Invoice: {{ $selectedInvoice->invoice_number }}
Billed on {{ $selectedInvoice->invoice_date->format('d M Y, H:i') }} | Store: {{ $selectedInvoice->store->name }}
@php $eligibleItems = $selectedInvoice->items->where('is_returned', false); @endphp @if($eligibleItems->isEmpty())
All units on this invoice have already been returned or the invoice is voided.
@else
@csrf
@foreach($eligibleItems as $i => $item) @endforeach
Select Product & Serial # Return Reason Physical Condition Refund Amount
{{ $item->serial_number }} ₹{{ number_format($item->line_total, 2) }}
@endif
@elseif($invoiceNumber || $serialNumber)
No sales invoice found matching "{{ $invoiceNumber ?: $serialNumber }}". Please check the invoice number or scanned serial code.
@endif @endsection @push('scripts') @endpush