@extends('layouts.app') @push('style') @endpush @section('content')

{{ __('Total Orders') }}

{{ number_format($total) }}

{{ __('Order Cancelled') }}

{{ number_format($canceled) }}

{{ __('In Processing') }}

{{ number_format($proccess) }}

{{ __('Order Complete') }}

{{ number_format($canceled) }}

{{ __('Total Amount') }}

{{ amount_format($amounts) }}

{{ __('Canceled Amount') }}

{{ amount_format($amount_cancel) }}

{{ __('Pending Amount') }}

{{ amount_format($amount_proccess) }}

{{ __('Earnings Amount') }}

{{ amount_format($amount_completed) }}

{{ __('Orders') }}

@foreach($orders as $key => $row) @endforeach
{{ __('Invoice No') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Order total') }} {{ __('Payment') }} {{ __('Fulfillment') }} {{ __('Item(s)') }} {{ __('Invoice') }}
{{ $row->order_no }} {{ $row->created_at->format('d-F-Y') }} @if(empty($row->user_id)) {{ __('Guest Order') }} @else {{ $row->customer->name ?? '' }} @endif {{ amount_format($row->total) }} @if($row->payment_status==2) {{ __('Pending') }} @elseif($row->payment_status==1) {{ __('Complete') }} @elseif($row->payment_status==0) {{ __('Cancel') }} @elseif($row->payment_status==3) {{ __('Incomplete') }} @endif @if($row->status=='pending') {{ __('Awaiting processing') }} @elseif($row->status=='processing') {{ __('Processing') }} @elseif($row->status=='ready-for-pickup') {{ __('Ready for pickup') }} @elseif($row->status=='completed') {{ __('Completed') }} @elseif($row->status=='archived') {{ __('Archived') }} @elseif($row->status=='canceled') {{ __('Canceled') }} @else {{ $row->status }} @endif {{ $row->order_items_count }}
{{ $orders->appends($request->all())->links('vendor.pagination.bootstrap-4') }}
@endsection @push('js') @endpush