{{ __('Orders') }}

{{ $data['orders']->count() }}

{{ __('Revenue') }}

{{ format_price($data['revenue']['amount']) }}

{{ __('Products') }}

{{ $totalProducts }}

@if (!$totalProducts)
@elseif (!$totalOrders)
@else
{{ __('Sales Reports') }} {{ __('Revenues in :label', ['label' => $data['predefinedRange']]) }}
format('Y-m-d') }}' date_to='{{ $data['endDate']->format('Y-m-d') }}' >
{{ __('Earnings') }} {{ __('Earnings in :label', ['label' => $data['predefinedRange']]) }}
{{ __('Earnings') }} {{ format_price($data['revenue']['sub_amount']) }} {{ __('Revenue') }} {{ format_price($data['revenue']['sub_amount'] - $data['revenue']['fee']) }} {{ __('Withdrawals') }} {{ format_price($data['revenue']['withdrawal']) }} {{ __('Fees') }} {{ format_price($data['revenue']['fee']) }}
@endif
@if ($totalOrders)
{{ __('Recent Orders') }}
{{ __('ID') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Payment') }} {{ __('Status') }} {{ __('Total') }} @forelse ($data['orders'] as $order) {{ get_order_code($order->id) }} {{ $order->created_at->translatedFormat('M d, Y') }} {{ $order->user->name ?: $order->address->name }} {!! BaseHelper::clean($order->payment->status->toHtml()) !!} {!! BaseHelper::clean($order->status->toHtml()) !!} {{ format_price($order->amount) }} @empty {{ __('No orders!') }} @endforelse
{{ __('View Full Orders') }}
@endif @if ($totalProducts)
{{ __('Top Selling Products') }}
{{ __('ID') }} {{ __('Name') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Created at') }} @forelse ($data['products'] as $product) {{ $product->id }} {{ $product->name }} {!! BaseHelper::clean($product->price_in_table) !!} {!! BaseHelper::clean($product->status->toHtml()) !!} {{ $product->created_at->translatedFormat('M d, Y') }} @empty {{ __('No products!') }} @endforelse
{{ __('View Full Products') }}
@endif