@extends('layouts.agent.app') @section('content')
@csrf
From Date To Date Select the Status
Generate Report

@if(count($result) > 0) {{----}} @php $i = ($result->currentPage() - 1) * $result->perPage() + 1; @endphp @foreach($result as $key => $order) {{----}} @endforeach
# Assign Order Id{!! CustomPaginator::sort('agent_id', 'Agent Name') !!}Products {!! CustomPaginator::sort('delivery_date', 'Delivery Date') !!} {!! CustomPaginator::sort('status', 'Delivery Status') !!} {!! CustomPaginator::sort('created_at', 'Agent Placed Date') !!} Action
{{ $i + $key }} {{ $order->agent_order_id }}
@php $agentDtl = App\Http\Helper1::getAgentDtl($order->agent_id); @endphp {{ ucwords($agentDtl->name) }} @php $agentProductDtl = App\Http\Helper1::getAgentPlaceProductDtl($order->id); @endphp @foreach($agentProductDtl as $product) {{ucwords($product->item)}}({{$product->qty}}) @if(!$loop->last), @endif @endforeach {{ date("d/m/Y" , strtotime($order->delivery_date)) }}
@if($order->status == 'P') Pending @elseif($order->status == 'PC') Accepted @elseif($order->status == 'H') Hold @elseif($order->status == 'CL') Cancel @elseif($order->status == 'D') Delivered @elseif($order->status == 'S') Shipped @endif
{{ date("d/m/Y H:m" , strtotime($order->created_at)) }}
@if ($result->hasPages()) @endif
@else
No Data Found...
@endif
@endsection