@php if(!empty(auth()->guard("admin")->user())){ $productOrderList = route('admin-product-order-list'); } else{ $productOrderList = route('salesmen-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-product-order', $rwProdData->id); }else{ $form_url = route('salesmen-update-product-order', $rwProdData->id); } @endphp
@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 @foreach ($rwProdData->mainItems as $rwProductOrderMainItem)
{{-- --}}
@include('admin.views.product_order.order_item_table',['data'=>$rwProductOrderMainItem->product_order_item??[]])
{{-- 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 --}}