@extends('layouts.app') @section('header-title', __('Bentornato,') . ' ' . Str::limit(auth()->user()?->name, 20)) @section('header-subtitle', __('Nel negozio Demma.')) @section('content') @if (app()->environment('local')) @endif @php $text = 'Total ' . ($businessModel == 'single' ? 'Categories' : 'Shops'); @endphp @if ($flashSale)
{{ $flashSale->name }}
{{ __('Coming Soon') }}
{{__('Days') }}
00
{{__('Hours') }}
00
{{__('Minutes') }}
00
{{__('Seconds') }}
00
@hasPermission('shop.flashSale.show') Aggiungi Prodotto @endhasPermission
@endif

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

{{ __($text) }}

icon

{{ $totalProduct }}

{{ __('Total Products') }}

icon

{{ $totalOrder }}

{{ __('Total Orders') }}

icon

{{ $totalCustomer }}

{{ __('Total Customers') }}

icon
@hasPermission('admin.order.index')
{{ __('Order Analytics') }}
@php $icons = [ 'pending' => asset('assets/icons-admin/clock.svg'), 'confirm' => asset('assets/icons-admin/shopping-cart-check.svg'), 'processing' => asset('assets/icons-admin/rotate-circle.svg'), 'pickup' => asset('assets/icons-admin/delivery-cart-arrow-up.svg'), 'delivered' => asset('assets/icons-admin/box-check.svg'), 'onTheWay' => asset('assets/icons-admin/truck.svg'), 'cancelled' => asset('assets/icons-admin/shopping-cart-times.svg'), ]; @endphp
@foreach ($orderStatuses as $status)
icon {{ __($status->value) }}
icon
{{ ${Str::camel($status->value)} }}
@endforeach
@endhasPermission
{{ __('Admin Wallet') }}

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

+18.53% icon
{{ __('Total Earning') }}
{{ showCurrency($alreadyWithdraw) }}
{{ __('Already Withdraw') }}
icon
{{ showCurrency($pendingWithdraw) }}
{{ __('Pending Withdraw') }}
icon
{{ showCurrency($totalCommission) }}
{{ __('Total Commission') }}
icon
{{ showCurrency($deniedWithdraw) }}
{{ __('Rejected Withdraw') }}
icon
{{ __('Statistics') }}

{{ $totalOrder }}

{{ __('Total Orders') }}

{{ $totalCustomer + $totalShop + $totalRider }}

{{ __('User Overview') }}

{{ __('Order Summary') }} ({{ __('Latest 5 Order') }})
@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 }}
icon icon
@if ($businessModel == 'multi')
@endif
{{ __('Most Favorite Products') }}
@endsection @push('scripts') @if ($flashSale) @endif @endpush @push('css') @endpush