AGENT PANEL
{{$user->name}}
Sr No | Assign Order Id | Order Id | Products | Date | Status | View | |
---|---|---|---|---|---|---|---|
{{$i}} | {{$agent_assigneds->agent_order_id}} | @php $orderId = null; $processedOrders = []; @endphp @foreach($orders1 as $order) @if($agent_assigneds->OID == $order->id && $agent_assigneds->agent_id == $order->agent_id) @php $duplicate_string = $order->unique_order_id; @endphp @if(!in_array($duplicate_string, $processedOrders)) {{$order->unique_order_id}} @php $orderId = $order->id; $processedOrders[] = $duplicate_string; break; @endphp @endif @endif @endforeach |
@php
$printedProducts = [];
@endphp
@foreach($product_maped as $key)
@foreach($key 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 @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')
PROCESSED
@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 |