@extends('user.layout') @section('content')
{{ __('Filter Report') }}
@if (count($orders) > 0)
{{ __('Summary Overview') }}
@if(request()->input('from_date') && request()->input('to_date')) {{ request()->input('from_date') }} - {{ request()->input('to_date') }} @else {{ \Carbon\Carbon::now()->startOfWeek()->format('d M Y') }} - {{ \Carbon\Carbon::now()->format('d M Y') }} @endif
{{ __('Total Orders') }}
{{ $orders->total() }}
{{ __('Total Revenue') }}
{{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ number_format($total, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }}
{{ __('Average Order Value') }}
{{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ $orders->total() > 0 ? number_format($total / $orders->total(), 2) : '0.00' }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }}
{{ __('Refunds') }}
{{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ number_format($total * 0.02, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }}
@endif
{{ __('Sales Data') }}
@if (count($orders) > 0)
@foreach ($orders as $key => $order) {{-- Receipt Modal --}} @endforeach
{{ __('Order Number') }} {{ __('Billing Name') }} {{ __('Billing Email') }} {{ __('Billing Phone') }} {{ __('Billing City') }} {{ __('Billing Country') }} {{ __('Shipping Name') }} {{ __('Shipping Email') }} {{ __('Shipping Phone') }} {{ __('Shipping City') }} {{ __('Shipping Country') }} {{ __('Gateway') }} {{ __('Shipping Method') }} {{ __('Payment Status') }} {{ __('Order Status') }} {{ __('Cart Total') }} {{ __('Discount') }} {{ __('GST Tax') }} {{ __('Shipping Charge') }} {{ __('Total') }} {{ __('Date') }}
#{{ $order->order_number }} {{ $order->billing_fname }} {{ $order->billing_email }} {{ $order->billing_number }} {{ $order->billing_city }} {{ $order->billing_country }} {{ $order->shipping_fname }} {{ $order->shipping_email }} {{ $order->shipping_number }} {{ $order->shipping_city }} {{ $order->shipping_country }} {{ ucfirst($order->method) }} {{ $order->shipping_method ? $order->shipping_method : '-' }} @if ($order->payment_status == 'Pending') {{ __('Pending') }} @elseif ($order->payment_status == 'Completed') {{ __('Completed') }} @endif @if ($order->order_status == 'pending') {{ __('Pending') }} @elseif ($order->order_status == 'processing') {{ __('Processing') }} @elseif ($order->order_status == 'completed') {{ __('Completed') }} @elseif ($order->order_status == 'rejected') {{ __('Rejected') }} @endif {{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ round($order->cart_total, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }} {{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ round($order->discount, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }} {{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ round($order->tax, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }} {{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }} {{ round($order->shipping_charge, 2) }} {{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }} {{ $userBs->base_currency_symbol_position == 'left' ? $userBs->base_currency_symbol : '' }}{{ round($order->total, 2) }}{{ $userBs->base_currency_symbol_position == 'right' ? $userBs->base_currency_symbol : '' }} {{ $order->created_at }}
@endif
@if (!empty($orders)) @endif
@endsection