Sr No | Assign Order Id | Order id | Agent Name | Product Name | Delivery Date | status | {{--Agent Status | --}}view |
---|---|---|---|---|---|---|---|---|
{{$i}} | {{$agent_assigneds->agent_order_id}} | @php $orderId = null; @endphp @foreach($assined as $assineds) @foreach($orders as $order) @if($assineds->OID == $order->id) {{$order->unique_order_id}} @php $orderId = $order->id; break 2; @endphp @endif @endforeach @endforeach | @foreach($agents as $agent) @if($agent_assigneds->agent_id == $agent->id) {{$agent->name}} @break @endif @endforeach |
@php
$printedProducts = [];
@endphp
@foreach($product_maped as $product_mapeds)
@if($product_mapeds->agent_assinged_id == $agent_assigneds->id)
@foreach($agent_product_list as $product)
@if($product->id == $product_mapeds->product_id && !in_array($product->id, $printedProducts))
{{ $product->item }} @php $printedProducts[] = $product->id; @endphp @endif @endforeach @endif @endforeach |
@php $founddetails = false; @endphp @foreach($order_details as $order_detail) @if($order_detail->order_id == $agent_assigneds->OID) {{$order_detail->delivery_date}} @php $founddetails = true; break; @endphp @endif @endforeach |
@if($agent_assigneds->status=='P')
PENDING
@elseif($agent_assigneds->status=='PC')
PROGRESS
@elseif($agent_assigneds->status=='CL')
CANCEL
@elseif($agent_assigneds->status=='H')
HOLD
@elseif($agent_assigneds->status=='D')
DELIVERED
@elseif($agent_assigneds->status=='S')
Shipped
@endif
|
{{--
@if($agent_assigneds->status == "PC" ||$agent_assigneds->status == "CL" ||$agent_assigneds->status == "D" ||$agent_assigneds->status == "S")
Agent Assigned
@else
Agent Not Assigned Yet
@endif
| --}}
VIEW |