{{ __('Revenue') }}
{{ format_price($data['revenue']['amount']) }}
{{ __('Orders') }}
{{ $data['orders']->count() }}
{{ __('Products') }}
{{ $data['products']->count() }}
@if (!$totalProducts)
@elseif (!$totalOrders)
@else

{{ __('Earnings') }}

{{ __('Earnings in :label', ['label' => $data['predefinedRange']]) }}
{{ format_price($data['revenue']['sub_amount']) }} {{ __('Balance') }}

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

{{ format_price($data['revenue']['withdrawal']) }} {{ __('Withdrawals') }}

{{ format_price($data['revenue']['fee']) }} {{ __('Fees') }}

@endif
@if ($totalOrders)

{{ __('Recent Orders') }}

@forelse ($data['orders'] as $order) @empty @endforelse
{{ __('ID') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Payment') }} {{ __('Status') }} {{ __('Total') }}
{{ get_order_code($order->id) }} {{ $order->created_at->format('M d, Y') }} {{ $order->user->name ?: $order->address->name }} {!! $order->payment->status->toHtml() !!} {!! $order->status->toHtml() !!} {{ format_price($order->amount) }}
{{ __('No orders!') }}
@endif @if ($totalProducts)

{{ __('Top Selling Products') }}

@forelse ($data['products'] as $product) @empty @endforelse
{{ __('ID') }} {{ __('Name') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Created at') }}
{{ $product->id }} {{ $product->original_product->name }} {!! $product->price_in_table !!} {!! $product->status->toHtml() !!} {{ $product->created_at->format('M d, Y') }}
{{ __('No products!') }}
@endif