Trims Issue Input List Trims Issue Input
@if (is_null($trimsChallanDataInputs) || empty($trimsChallanDataInputs))

Currently No Information Available!

@else @if (session('message'))
× {{ session('message') }}.
@endif
@csrf
{{-- spl Table goes here --}} {{-- --}} @php $sl=0 @endphp @foreach ($trims_receive as $spl) @php $receive = $spl['total_receive_qty']; $issue = 0; $issue_data = DB::table('trims_issues') ->where('buyer_id', $spl['buyer_id']) ->where('item_name', $spl['item_name']) ->where('color_size', $spl['color_size']) ->where('order_style', $spl['order_style']) ->where('rack_no', $spl['rack_no']) ->where('self_bin_no', $spl['self_bin_no']) ->sum('issue_qty'); $receive = $receive - $issue_data; // Append $sl to the id attributes to make them unique for each row $receiveId = 'receive_qty_' . $sl; $issueQtyId = 'issue_qty_' . $sl; $issueBalanceId = 'issue_balance_' . $sl; // dd($receive) @endphp @if ($receive > 0) @endif @endforeach
Sl# BUYER NAME ORDER / STYLE Item Name Color / Size Rack Bin Receive Balance Qty Issue Qty Issue Balance Qty RemarksActions
{{ ++$sl }} {{ $spl['buyer_name'] }} {{ $spl['order_style'] }} {{ $spl['item_name'] }} {{ $spl['color_size'] }} {{-- @php $rack_no_items = App\Models\TrimsReceive::where('itemList_id', $spl['itemList_id']) ->where('buyer_id', $spl['buyer_id']) ->where('order_style', $spl['order_style']) ->where('color_size', $spl['color_size']) ->pluck('rack_no'); // Retrieve only the rack_no values $rack_no = implode(',', $rack_no_items->toArray()); // Explode the comma-separated string into an array and remove duplicate values $rack_no_array = array_unique(explode(',', $rack_no)); // If you want to convert it back to a comma-separated string after removing duplicates: $rack_no = implode(',', $rack_no_array); // dd($rack_no); @endphp --}} {{-- @php $self_bin_no_items = App\Models\TrimsReceive::where('itemList_id', $spl['itemList_id']) ->where('buyer_id', $spl['buyer_id']) ->where('order_style', $spl['order_style']) ->where('color_size', $spl['color_size']) ->pluck('self_bin_no'); // Retrieve only the self_bin_no values $self_bin_no = implode(',', $self_bin_no_items->toArray()); // Explode the comma-separated string into an array and remove duplicate values $self_bin_no_array = array_unique(explode(',', $self_bin_no)); // If you want to convert it back to a comma-separated string after removing duplicates: $self_bin_no = implode(',', $self_bin_no_array); @endphp --}}

Cancel Save
@endif