@if($result == 1)
DELIVERY REPORT
| Sr No |
Assign Order Id |
Products |
Delivery Date |
Status |
Price |
Action |
@php
$i = 0;
$totalPrice = 0;
@endphp
@forelse($agent_assigned as $agent_assigneds)
@php $i++; @endphp
| {{$i}} |
{{$agent_assigneds->agent_order_id}} |
@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 }} (QTY : {{$product_mapeds->qty}})
@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
|
{{$agent_assigneds->totalPrice}}
|
@php
$totalPrice+=$agent_assigneds->totalPrice
@endphp
|
@empty
No Data Found |
@endforelse
Date of Issue {{$startDate}} to {{$EndDate}}
Bill To:
{{$user->name}}
Street Address Line 01
Street Address Line 02
| Sr No |
ITEM/SERVICE |
AMOUNT |
@php
$i = 0;
$totalPricePdf = 0;
@endphp
@forelse($agent_assigned as $agent_assigneds)
@php $i++; @endphp
| {{$i}} |
{{$agent_assigneds->agent_order_id}} |
{{$agent_assigneds->totalPrice}}
|
@php
$totalPricePdf+=$agent_assigneds->totalPrice
@endphp
@empty
No Data Found |
@endforelse
TERMS
Text Here
TOTAL : {{$totalPricePdf}}
CONDITIONS/INSTRUCTIONS
Text Here
@endif