@extends('layouts.backend-layout') @section('content')
@csrf
@error('date')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@if(count($customer_orders)) @foreach($customer_orders as $key) @endforeach @endif
Order ID Date Delivery Area Rider Name Payment Type Food Price Other Charges VAT Discount Total Amount
{{ $key->invoice_id }} {{ $key->created_at->format('d-m-Y') }} {{ $key->ship_address }}
{{ $key->ship_town_city }}
{{ $key->ship_zip_code }}
{{ $key->delivery_man?$key->delivery_man->name:"" }} {!! str_replace('_', ' ', $key->payment_method) !!} ৳{{ 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