{{ __('Quick Actions') }}
{{ __('Store Performance') }}
{{ __('Conversion Rate') }} {{ $totalOrders ? number_format(($totalOrders / max(1, $totalProducts)) * 100, 1) . '%' : '0%' }} {{ __('Avg. Order Value') }} {{ $totalOrders ? format_price($data['revenue']['amount'] / max(1, $totalOrders)) : format_price(0) }} {{ __('Fulfillment Rate') }} {{ $totalOrders ? '100%' : '0%' }} {{ __('Store Visibility') }} {{ __('Active') }}
@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') }}
{{ __('Order') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Status') }} {{ __('Total') }} @forelse ($data['orders'] as $order) {{ get_order_code($order->id) }}
{{ $order->created_at->translatedFormat('M d, Y') }}
{{ $order->created_at->translatedFormat('M d, Y') }}
{{ $order->user->name ?: $order->address->name }} @if (is_plugin_active('payment')) {!! BaseHelper::clean($order->payment->status->toHtml()) !!} @endif
{!! BaseHelper::clean($order->status->toHtml()) !!} {{ format_price($order->amount) }}
@empty {{ __('No orders!') }} @endforelse
{{ __('View Full Orders') }}
{{ __('Customer Reviews') }} @if (is_plugin_active('ecommerce')) @php $reviews = \Botble\Ecommerce\Models\Review::query() ->whereHas('product', function($query) use ($user) { $query->where('store_id', $user->store->id); }) ->with(['product', 'user']) ->latest() ->limit(5) ->get(); @endphp @if ($reviews->count()) @foreach($reviews as $review)
{{ $review->user->name }}
{{ $review->user->name }}
@for ($i = 0; $i < 5; $i++) @if ($i < $review->star) @else @endif @endfor

{{ Str::limit($review->comment, 60) }}

{{ $review->created_at->diffForHumans() }} {{ Str::limit($review->product->name, 15) }}
@endforeach @else

{{ __('No reviews yet') }}

@endif @else

{{ __('Reviews feature requires Ecommerce plugin') }}

@endif
@if (is_plugin_active('ecommerce') && $reviews->count()) {{ __('View All Products') }} @endif
@endif @if ($totalProducts)
{{ __('Top Selling Products') }}
{{ __('Name') }} {{ __('Price') }} {{ __('Status') }} {{ __('Created at') }} @forelse ($data['products'] as $product) {!! 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') }}
{{ __('Inventory Status') }}
@php $lowStockProducts = collect($data['products'])->filter(function($product) { return $product->with_storehouse_management && $product->quantity > 0 && $product->quantity <= 5; })->count(); $outOfStockProducts = collect($data['products'])->filter(function($product) { return $product->with_storehouse_management && $product->quantity <= 0; })->count(); $inStockProducts = $totalProducts - $lowStockProducts - $outOfStockProducts; @endphp
{{ $inStockProducts }}
{{ __('In Stock') }}
{{ $lowStockProducts }}
{{ __('Low Stock') }}
{{ $outOfStockProducts }}
{{ __('Out of Stock') }}
{{ __('Add New Product') }}
@endif