@extends('layouts.super-admin-layout') @section('content')
@csrf
@error('date')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@if(count($customer_orders)) @foreach($customer_orders as $key) @endforeach @endif
# Customer Info Restaurant Invoice ID Payment Method Transection Status Total Amount Order Time Appx. Delivered Time Remarks Status Food Price Other Charges VAT Discount Total Amount
{{ $loop->index +1 }} {{$key->customer->name}}
{{$key->customer->phone}}
{{$key->customer->address}}
{{ $key->shop?$key->shop->name:"" }} {{ $key->invoice_id }} {!! str_replace('_', ' ', $key->payment_method) !!} @if($key->transaction_status =="Pending")
Pending
@elseif($key->transaction_status =="Processing")
Processing
@elseif($key->transaction_status =="Picked")
Picked
@elseif($key->transaction_status =="Paid")
Paid
@elseif($key->transaction_status =="Cancelled")
Cancelled
@elseif($key->transaction_status =="Failed")
Failed
@endif
৳{{ number_format((float)$key->total_amount + $key->shipping_charge - $key->coupon_discount + $key->vat_amount, 2, '.', '')}} {{ $key->created_at->format('d-m-Y h:i A') }} @if($key->approximate_delivered_time) {{ date('d-m-Y h:i A', strtotime($key->approximate_delivered_time)) }} @endif {{ $key->remarks }} @if($key->order_status =="Pending")
Pending
@elseif($key->order_status =="Processing")
Processing
@elseif($key->order_status =="Picked")
Picked
@elseif($key->order_status =="Delivered")
Delivered
@elseif($key->order_status =="Cancelled")
Cancelled
@endif
৳{{ number_format((float)$key->total_amount, 2, '.', '')}} ৳{{ number_format((float) $key->shipping_charge, 2, '.', '')}} ৳{{ number_format((float) $key->vat_amount, 2, '.', '')}} ৳{{ number_format((float) $key->coupon_discount, 2, '.', '')}} ৳{{ number_format((float)$key->total_amount + $key->shipping_charge - $key->coupon_discount + $key->vat_amount, 2, '.', '')}}
@endsection