@extends('layouts.app') @section('content')
{{ __('Dashboard') }}
{{ __('This is a shop dashboard') }}.
@if ($flashSale)
{{ __('Flash Sale Coming Soon') }}
{{ $flashSale->name }}
Days
00
Hours
00
Minutes
00
Seconds
00
@hasPermission('shop.flashSale.show') Add Product @endhasPermission
@endif

{{ $totalProduct }}

{{ __('Total Products') }}

{{ $totalOrder }}

{{ __('Total Orders') }}

{{ $totalCategories }}

{{ __('Total Categories') }}

{{ $totalBrand }}

{{ __('Total Brands') }}

@hasPermission('shop.order.index')
{{ __('Order Analytics') }}
@php $icons = [ 'pending' => 'bi-clock', 'confirm' => 'bi-bag-check-fill', 'processing' => 'bi-arrow-repeat', 'pickup' => 'bi-bicycle', 'onTheWay' => 'bi-bicycle', 'delivered' => 'bi-patch-check-fill', 'cancelled' => 'bi-x-circle', ]; @endphp
@foreach ($orderStatuses as $status)
{{ __($status->value) }}
{{ ${Str::camel($status->value)} }}
@endforeach
@endhasPermission @php $user = auth()->user(); $isAdmin = true; if (!$user->hasRole('root') && ($user->shop || $user->myShop)) { $isAdmin = false; } @endphp
{{ __('Shop Wallet') }}

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

@if ($isAdmin)
{{ __('Available Balance') }}
@else @hasPermission('shop.withdraw.store')
{{ __('Withdrawable Balance') }}
@endhasPermission @endif
{{ showCurrency($pendingWithdraw) }}
{{ __('Pending Withdraw') }}
icon
{{ showCurrency($alreadyWithdraw) }}
{{ __('Already Withdraw') }}
icon
{{ showCurrency($deniedWithddraw) }}
{{ __('Rejected Withdraw') }}
icon
{{ showCurrency($totalWithdraw) }}
{{ __('Total Withdraw') }}
icon
{{ showCurrency($totalDeliveryCollected) }}
{{ __('Delivery Charge Collected') }}
icon
{{ showCurrency($totalPosSales) }}
{{ __('Total Pos Sales') }}
icon
@csrf
{{ __('Orders Summary') }}

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

@foreach ($latestOrders as $order) @php $status = Str::ucfirst(str_replace(' ', '', $order->order_status->value)); @endphp @endforeach
{{ __('Order ID') }} {{ __('Qty') }} {{ __('Date') }} {{ __('Price') }} {{ __('Status') }} {{ __('Action') }}
#{{ $order->prefix . $order->order_code }} {{ $order->products->count() }} {{ $order->created_at->format('d M, Y') }} {{ showCurrency($order->payable_amount) }}
{{ $order->order_status->value }}
@endsection @push('scripts') @if ($flashSale) @endif @endpush @push('css') @endpush