@extends('backend.partials.master') @section('title') Sale Return @endsection @section('maincontent') Sale Return @csrf @if(!empty($salereturn)) @method('PUT') @endif Invoice Return Number * @error('invoice_no') {{ $message }} @enderror Customer * Select Customer @foreach($customers as $customer) customer_id ?? '') == $customer->id ? 'selected' : '' }}> {{ $customer->fname }} @endforeach @error('customer_id') {{ $message }} @enderror Sale Invoice No.* Select Sale Invoice No. @if(!empty($salereturn->saleinvoice_no)) {{ $salereturn->saleinvoice_no }} @endif @error('saleinvoice_no') {{ $message }} @enderror {{-- Firm * Select Firm @foreach($firms as $firm) firm ?? '') == $firm->id ? 'selected' : '' }}> {{ $firm->name }} @endforeach @error('firm') {{ $message }} @enderror --}} Date * @error('idate') {{ $message }} @enderror Invoice Date * @error('invoice_date') {{ $message }} @enderror Lot No Product * HSN Quantity * {{-- Serial No(s) MAC Id(s) --}} GST (%) Rate Rejected Qty* Total * @php $i = 0; @endphp @if(!empty($salesdetails)) @foreach($salesdetails as $detail) @php $i++; @endphp @error('lot_no_'.$i) {{ $message }} @enderror Select Product @foreach($products as $product) product_id == $product->id ? 'selected' : '' }}> {{ $product->name }} @endforeach @php $product = $products->find($detail->product_id); $hasSerial = strtolower($product->serial) === 'yes' ? '1' : '0'; @endphp @php $product = $products->firstWhere('id', $detail->product_id); @endphp @error('reject_qty_'.$i) {{ $message }} @enderror @endforeach @endif {{ !empty($salereturn) ? 'Update' : 'Create' }} Cancel @endsection @push('scripts') @endpush