@extends('layouts.admin.app', ['page' => $menuAdmin['dashboard']['active'] ?? ""]) @section('title', __('labels.dashboard')) @section('header_data') @php $page_title = __('labels.dashboard'); $page_pretitle = __('labels.admin') . " " . __('labels.dashboard'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => ''] ]; @endphp @section('admin-content') @if($viewPermission ?? false)

Welcome back, {{$user->name ?? "Power"}}

{{ $conversionRateData['rate'] ?? 0 }}%
{{ __('labels.conversion_rate') }}
{{ abs($conversionRateData['percentage_change'] ?? 0) }}%
{{ $conversionRateData['delivered_orders'] ?? 0 }} {{ __('labels.delivered_out_of_total_orders') }} {{ $conversionRateData['total_orders'] ?? 0 }}
{{ $conversionRateData['rate']?? 0 }}% {{ __('labels.complete') }}
Sales Illustration
{{ $revenueDataBg['formatted_total'] ?? 0 }}
{{ count($revenueDataBg['daily'] ?? []) }} {{ __('labels.days') }}
{{ $newUserRegistrationsData['count'] }}
{{ abs($newUserRegistrationsData['percentage_change']) }}% @if($newUserRegistrationsData['is_increase']) @else @endif

{{ __('labels.order_commission_last_30_days') }}

{{ $enhancedCommissionsData['total_commission'] }}
{{ __('labels.total_commission') }}
{{ $enhancedCommissionsData['total_orders'] }}
{{ __('labels.total_orders') }}
{{ $enhancedCommissionsData['avg_commission'] }}
{{ __('labels.avg_commission') }}
@forelse($topSellers as $index => $seller)
{{ $index + 1 }}
@if(!empty($seller['avatar'])) {{ $seller['name'] }} @else {{ strtoupper(substr($seller['name'], 0, 2)) }} @endif
{{ $seller['name'] }}
{{ $seller['total_orders'] }} {{ __('labels.orders') }}
{{ $seller['total_revenue'] }}
@empty
No data found
@endforelse
@forelse($topSellingProducts as $index => $product)
{{ $index + 1 }}
@if(!empty($product['image'])) {{ $product['name'] }} @else {{ strtoupper(substr($product['name'], 0, 1)) }} @endif
{{ $product['category'] }}
{{ $product['total_quantity'] }} {{ __('labels.sold') }}
{{ $product['total_revenue'] }}
@empty
No products found
@endforelse
@forelse($topDeliveryBoys as $index => $deliveryBoy)
{{ $index + 1 }}
@if(!empty($deliveryBoy['avatar'])) {{ $deliveryBoy['name'] }} @else {{ strtoupper(substr($deliveryBoy['name'], 0, 2)) }} @endif
{{ $deliveryBoy['name'] }}
{{ $deliveryBoy['total_deliveries'] }} {{ __('labels.deliveries') }}
{{ $deliveryBoy['total_revenue'] }}
@empty
No products found
@endforelse
@foreach($categoriesWithFilters as $category)
@if($category['image']) {{ $category['title'] }} @else
{{ substr($category['title'], 0, 2) }}
@endif

{{ $category['title'] }}

{{ $category['products_count'] }} {{ __('labels.products') }}
@if(isset($category['total_sold']))
{{ $category['total_sold'] }} {{ __('labels.sold') }}
@endif
@endforeach
{{ __('labels.daily_orders_history') }}
{{ __('labels.todays_earning') }} : {{ $todaysEarning['formatted_today'] }}
@if($todaysEarning['is_increase']) @else @endif {{ abs($todaysEarning['percentage_change']) }} % {{ $todaysEarning['is_increase'] ? __('labels.more') : __('labels.less') }} {{ __('labels.than_yesterday') }}
@endif @endsection @push('styles') @endpush @push('script') @endpush