@extends('layouts.admin.app') @section('content')
@csrf
From Date To Date Select the Status
@if($agent_assigned->isEmpty()) No Data Found @else {{----}} @php $i = 0; @endphp @foreach($agent_assigned as $agent_assigneds) @php $i++; @endphp {{----}} @endforeach @endif
Sr No Assign Order Id Order id Agent Name Product Name Delivery Date statusAgent Statusview
{{$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') @elseif($agent_assigneds->status=='PC') @elseif($agent_assigneds->status=='CL') @elseif($agent_assigneds->status=='H') @elseif($agent_assigneds->status=='D') @elseif($agent_assigneds->status=='S') @endif @if($agent_assigneds->status == "PC" ||$agent_assigneds->status == "CL" ||$agent_assigneds->status == "D" ||$agent_assigneds->status == "S") @else @endif VIEW
Back
@endsection