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

PROFILE REPORT ({{$start_date}} to {{$end_date}})

@if(empty($tableItem)) No Data Found @else @php $i=0; $placementTotal=0; @endphp @foreach ($tableItem as $item) @php $i++; @endphp @endforeach {{--@foreach ($profitReportData as $item) @foreach ($item['totalOrderPrice'] as $index => $orderPrice) @php $i++; @endphp @endforeach @endforeach--}}
Sr no Order Id Delivery Date City Amount Placement Price Profit Agent Status
{{$i}} {{ $item['uniqueId'] }} {{ $item['delivery_date'] }} {{ $item['delivery_city_name'] }} {{ $item['totalOrderPrice'] }} {{ $item['placementTotal'] }} @php $placementTotal +=$item['placementTotal']; @endphp {{ round($item['profit'],1) }}% @foreach($item['agent_name'] as $city) {{ $city }}
@endforeach
{{$item['status']}}
{{$i}} {{ $item['unique_order_id'] }} {{ $item['delivery_date'] }} {{ $item['delivery_city_name'] }} {{ $orderPrice[0] }} {{ $item['placementTotal'] }} @php $placementTotal +=$item['placementTotal']; @endphp {{ round($item['profit'],1) }}% @foreach($item['agent_name'] as $index) @foreach($index as $city) {{ $city }}
@endforeach @endforeach
{{$item['status']}}
Total Amount to be paid by Client : {{$placementTotal}}
@endif Back
@endsection