@extends('layouts.layout-horizontal') @section('title', 'Edit Purchase Return') @section('css') @endsection @section('content')
@csrf @method('PUT')
Edit Purchase Return @if($purchaseReturn->bill_no)#{{ $purchaseReturn->bill_no }}@endif
@if ($mode == 'cash') Cash Mode @else Bill Mode @endif
@error('party_id')
{{ $message }}
@enderror @include('partials._party-details')
@error('invoice_date')
{{ $message }}
@enderror
@error('reason')
{{ $message }}
@enderror

{{-- Items table --}}
Line Items
New Product
@if($mode !== 'cash')@endif @if($mode !== 'cash')@endif
# ProductHSNUnit Qty RateTax%Total
{{-- Sticky bottom totals bar --}}
{{-- P&F row --}}
P&F Tax:
Amount
Tax
Roundoff
Grand Total
@endsection @push('scripts') @php $seedItemsData = $purchaseReturn->items->map(function ($it) { return [ 'product_id' => $it->product_id, 'name' => $it->product->name ?? 'Unknown', 'hsn' => $it->hsn, 'unit' => $it->unit, 'qty' => (float) $it->qty, 'rate' => (float) $it->rate, 'tax_percent' => (float) $it->tax_percent, ]; })->values(); @endphp @endpush