@extends('layouts.deliverymanagerapp') @section('content') {{-- Reports --}}

Reports

@csrf @method('post')
{{-- --}} @if($Results) @php $i=1; @endphp @foreach($Results as $Result) @php $Orderdate = date("F j, Y, g:i a",strtotime($Result->created_at));@endphp @if($Result->orderdelivery) @if($Result->orderdelivery->isCompleted == 1) @php $Deliverydate = date("F j, Y, g:i a",strtotime($Result->orderdelivery->completingperiod));@endphp @else @endif @else @endif @endforeach @endif
SLNO. Order No. Order Date Delivery dateStore Store Contact Customer Customer ContactStatus Details
{{$i++}} #{{$Result->id}}{{$Orderdate}}{{$Deliverydate}}time to completeNot delivered{{$Result->status->status}}

Store: {{$Result->store->title}}
Contact: {{$Result->store->user->whatsapp}}

Customer: {{$Result->user->name}}
Contact: {{$Result->user->mobile->mobile}}

@if($Result->orderdetails) @php $i=1; $total = 0; @endphp @foreach($Result->orderdetails as $item) @php $amount =$item->product->sales_amount; $qty = $item->quantity; $total += $amount*$qty; @endphp @endforeach
No. product price qty total
{{$i++}} {{$item->product->title}} {{$item->product->sales_amount}} {{$item->quantity}}{{$amount*$qty}}
Grand Total {{$total}}
@endif
@endsection