@extends('layouts.admin.app') @section('content')

AGENT : {{$agents->name}}

@if($agent_assinged->isEmpty()) No Data Found @else @php $i = 0; $total=0;@endphp @foreach($agent_assinged as $agent_assingeds) @if($agent_assingeds->status == "D") @php $i++; @endphp @endif @endforeach
Sr no Order Id Product Name Total Price Assign Date Status
{{$i++}} {{$agent_assingeds->agent_order_id}} @php $printedProducts = []; @endphp @foreach($assigned_agent_product_map as $product_mapeds) @if($product_mapeds->agent_assinged_id == $agent_assingeds->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
{{$agent_assingeds->totalPrice}} @php $total +=$agent_assingeds->totalPrice; @endphp {{$agent_assingeds->created_at}} DELIVERED
TOTAL PAYMENTS : {{$total}}
@endif Back
@endsection