@extends('backend.partials.master') @section('title') Return Material @endsection @section('maincontent')

Return Material

@csrf @if(!empty($returnmaterial)) @method('PUT') @endif
@error('invoice_no') {{ $message }} @enderror
@error('customer_id') {{ $message }} @enderror
@error('consumption_no') {{ $message }} @enderror
@error('firm') {{ $message }} @enderror
@error('idate') {{ $message }} @enderror
@error('consumption_date') {{ $message }} @enderror
@php $i = 0; @endphp @if(!empty($returnmaterialdetails)) @foreach($returnmaterialdetails as $detail) @php $i++; @endphp @php $serials = explode(',', $detail->serial_no); $macs = explode(',', $detail->mac_id); $product = $products->firstWhere('id', $detail->product_id); @endphp @endforeach @endif
Product * HSN * Quantity * Serial No(s) MAC Id(s) Rejected Qty*
@php $product = $products->find($detail->product_id); $hasSerial = strtolower($product->serial) === 'yes' ? '1' : '0'; @endphp @if($product && $product->serial == 'yes') @foreach($serials as $serial) @endforeach @endif @if($product && $product->serial == 'yes') @foreach($macs as $mac) @endforeach @endif

Cancel
@endsection @section('scripts') @endsection