Trims Challan Data Input-2 {{-- Trims Challan Data Input-Process Entry --}} {{-- @dd($trimsChallanDataInput , $suppliers , $uoms, $buyer_name, $style, $season) --}}
BUYER NAME {{ $trimsChallanDataInputs[0]['buyer_name'] }} ORDER / STYLE {{ $trimsChallanDataInputs[0]['order_style'] }}
Order Qty {{ $trimsChallanDataInputs[0]['order_qty'] }} {{ $trimsChallanDataInputs[0]['parent_uom'] }} Season {{ $trimsChallanDataInputs[0]['season'] }}
@csrf {{-- --}} @foreach ($trims_receive as $trimsChallanDataInput) {{-- @dd($trimsChallanDataInput) --}} @endforeach
Chalan No Item Name Color / Size Rack Bin UOM Booking Qty Receive Qty Balance Qty RemarksActions
{{-- @php $color_size = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->distinct() ->pluck('color_size') ->first(); @endphp --}} {{-- @php $rack_no_items = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['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', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['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 --}} @php $uom_name = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['color_size']) ->where('rack_no', $trimsChallanDataInput['rack_no']) ->where('self_bin_no', $trimsChallanDataInput['self_bin_no']) ->distinct() ->pluck('uom_name') ->first(); $uom_id = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['color_size']) ->where('rack_no', $trimsChallanDataInput['rack_no']) ->where('self_bin_no', $trimsChallanDataInput['self_bin_no']) ->distinct() ->pluck('uom_id') ->first(); @endphp @php $booking_qty = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['color_size']) ->where('rack_no', $trimsChallanDataInput['rack_no']) ->where('self_bin_no', $trimsChallanDataInput['self_bin_no']) ->first()->booking_qty; @endphp @php $receive_qty = App\Models\TrimsReceive::where('itemList_id', $trimsChallanDataInput['itemList_id']) ->where('buyer_id', $trimsChallanDataInput['buyer_id']) ->where('order_style', $trimsChallanDataInput['order_style']) ->where('color_size', $trimsChallanDataInput['color_size']) ->where('rack_no', $trimsChallanDataInput['rack_no']) ->where('self_bin_no', $trimsChallanDataInput['self_bin_no']) ->sum('receive_qty'); @endphp Copy
{{-- --}}

@php $batch_id = $trimsChallanDataInputs[0]['batch_id']; // dd($batch_id) @endphp
Cancel Save