@extends('layouts.app') @section('content')
{{ __('Dashboard') }}
{{ __('This is a admin dashboard') }}.
@if (app()->environment('local')) @endif
@php $text = 'Total ' . ($businessModel == 'single' ? 'Categories' : 'Shops'); @endphp @if ($flashSale)
{{ __('Flash Sale Coming Soon') }}
{{ $flashSale->name }}
Days
00
Hours
00
Minutes
00
Seconds
00
@hasPermission('shop.flashSale.show') Add Product @endhasPermission
@endif

{{ $businessModel == 'single' ? $totalCategories : $totalShop }}

{{ __($text) }}

{{ $totalProduct }}

{{ __('Total Products') }}

{{ $totalOrder }}

{{ __('Total Orders') }}

{{ $totalCustomer }}

{{ __('Total Customers') }}

@hasPermission('admin.order.index')
{{ __('Order Analytics') }}
@php $icons = [ 'pending' => 'bi-clock', 'confirm' => 'bi-bag-check-fill', 'processing' => 'bi-arrow-repeat', 'pickup' => 'bi-bicycle', 'delivered' => 'bi-patch-check-fill', 'onTheWay' => 'bi-bicycle', 'cancelled' => 'bi-x-circle', ]; @endphp
@foreach ($orderStatuses as $status)
{{ __($status->value) }}
{{ ${Str::camel($status->value)} }}
@endforeach
@endhasPermission
{{ __('Admin Wallet') }}

{{ showCurrency(auth()->user()->wallet->balance) }}

{{ __('Total Earning') }}
{{ showCurrency($alreadyWithdraw) }}
{{ __('Already Withdraw') }}
icon
{{ showCurrency($pendingWithdraw) }}
{{ __('Pending Withdraw') }}
icon
{{ showCurrency($totalCommission) }}
{{ __('Total Commission') }}
icon
{{ showCurrency($deniedWithddraw) }}
{{ __('Rejected Withdraw') }}
icon
{{ __('Orders Summary') }}

{{ __('latest 6th orders') }}

@if ($businessModel == 'multi') @endif @foreach ($latestOrders as $order) @if ($businessModel == 'multi') @endif @php $status = Str::ucfirst(str_replace(' ', '', $order->order_status->value)); @endphp @endforeach
{{ __('Order ID') }} {{ __('Qty') }}{{ __('Shop') }}{{ __('Date') }} {{ __('Status') }} {{ __('Action') }}
#{{ $order->prefix . $order->order_code }} {{ $order->products->count() }} {{ $order->shop?->name }} {{ $order->created_at->format('d M, Y') }}
{{ $order->order_status->value }}
{{ __('User Overview') }}
{{ __('Top Customer') }}
@foreach ($topCustomers as $customer)

{{ Str::limit($customer->user?->name, 30, '...') }}

{{ __('Orders') }}: {{ $customer->orders_count }}

@endforeach
@if ($businessModel == 'multi')
@endif
@endsection @push('scripts') @if ($flashSale) @endif @endpush @push('css') @endpush