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

{{ __('Total Orders') }}

{{ number_format($order_count) }}

{{ __('Total Earnings') }}

{{ amount_format($order_sum) }}

{{ __('Total Tax') }}

{{ amount_format($order_tax) }}

{{ __('Total Expired Orders') }}

{{ number_format($order_expired) }}
@foreach($posts ?? [] as $key => $row) @endforeach
{{ __('Order') }} {{ __('Date') }} {{ __('Order total') }} {{ __('Payment Method') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Action') }}
{{ $row->order_no }} {{ $row->created_at->format('d-F-Y') }} {{ amount_format($row->amount) }} {{ $row->category->name ?? '' }} @if($row->payment_status==1) {{ __('Paid') }} @elseif($row->payment_status==2) {{ __('Pending') }} @else {{ __('Fail') }} @endif @if($row->status == 1) Approved @elseif($row->status == 2) {{ __('Pending') }}@elseif($row->status == 3) {{ __('Expired') }}@else {{ __('Cancelled') }} @endif
@endsection @push('js') @endpush