@php //dd($totalProductOrderData[0]['product_order_item']); if(!empty(auth()->guard("admin")->user())){ $productOrderList = route('admin-furnish-product-order-list'); } else{ $productOrderList = route('salesmen-furnish-product-order-list'); } @endphp {{-- Start --}}
@php $m =1; $check = 1; $checkLast = true; @endphp @foreach ($totalProductOrderData as $rwProdData ) @php if(!empty(auth()->guard("admin")->user())){ $form_url = route('admin-update-furnish-product-order', $rwProdData->id); }else{ $form_url = route('salesmen-update-furnish-product-order', $rwProdData->id); } @endphp
id}} class="tab-pane fade {{$productCount == $m++ ?' active show':''}}" id="animated-underline-home_{{$rwProdData->id}}" role="tabpanel" aria-labelledby="animated-underline-home-tab_{{$rwProdData->id}}"> @php if($productCount == $check++){ $checkLast = false ;} @endphp
@csrf
date??'' }}>
same_as) checked @endif @if(!$checkLast) name="same_as" id="sameAs" @else readonly @endif >  Same as Address

@php $i = 1; @endphp
{{-- @dd($rwProdData['mainItems'][0]['product_order_item']) --}} {{-- @dd($rwProdData['mainItemsData'][0]['product_order_item'][0]) --}} @foreach ($rwProdData->mainItems as $rwProductOrderMainItem)
{{--
--}}
0) readonly @endif name="price_{{$rwProductOrderMainItem->id}}" id="price_po_{{$i}}" value="@if(isset($rwProductOrderMainItem->price)){{$rwProductOrderMainItem->price}}@endif">
0) readonly @endif name="quantity_{{$rwProductOrderMainItem->id}}" id="quantity_po_{{$i}}" type="number" value="{{$rwProductOrderMainItem->quantity??''}}">
{{-- @include('admin.views.furnish_product_order.order_item_table', [ 'data' => $rwProdData['mainItemsData'][0]['product_order_item'] ]) --}}
@include('admin.views.furnish_product_order.order_item_table',['data'=>$rwProductOrderMainItem['items']??[]])
{{-- Product Order Iteam Display --}} @php $i++; @endphp @endforeach

@if(isset($rwProdData) && $rwProdData->gst == 1)
@else
@endif @if(isset($rwProdData) && $rwProdData->gst == 2)
@else
@endif
@endforeach
{{-- end --}}