@extends('layouts.admin')
@section('title', __('Dashboard'))
@section('page_title', __('Dashboard') . ' - ' . $kpis['zone_name'])
@section('content')
أنت تشاهد بيانات منطقة {{ $kpis['zone_name'] }} فقط
@include('dashboard._kpi', ['label' => 'مبيعات اليوم', 'value' => number_format($kpis['sales_today'], 0), 'color' => 'primary', 'icon' => 'graph-up', 'sub' => 'ج.م'])
@include('dashboard._kpi', ['label' => 'مبيعات الشهر', 'value' => number_format($kpis['sales_month'], 0), 'color' => 'success', 'icon' => 'calendar-month', 'sub' => 'ج.م'])
@include('dashboard._kpi', ['label' => 'طلبات معلقة', 'value' => $kpis['orders_pending'], 'color' => 'warning', 'icon' => 'clock', 'sub' => 'طلب'])
@include('dashboard._kpi', ['label' => 'الذمم المتأخرة', 'value' => number_format($kpis['overdue_total'], 0), 'color' => 'danger', 'icon' => 'exclamation-triangle', 'sub' => 'ج.م'])
@include('dashboard._kpi', ['label' => 'عملاء المنطقة', 'value' => $kpis['customers_count'], 'color' => 'light text-dark', 'col' => 4, 'icon' => 'people', 'sub' => 'عميل'])
@include('dashboard._kpi', ['label' => 'مناديب المنطقة', 'value' => $kpis['salesmen_count'], 'color' => 'light text-dark', 'col' => 4, 'icon' => 'person-badge', 'sub' => 'مندوب'])
@include('dashboard._kpi', ['label' => 'إجمالي طلبات اليوم','value' => $kpis['orders_pending'], 'color' => 'light text-dark', 'col' => 4, 'icon' => 'cart', 'sub' => 'تحت المتابعة'])
@forelse($topCustomers as $c)
| {{ $c->name }} | {{ number_format($c->total, 2) }} |
@empty
| لا توجد بيانات |
@endforelse
| المندوب | عدد الطلبات | الإجمالي |
@forelse($salesmenPerf as $s)
| {{ $s->name }} | {{ $s->count }} | {{ number_format($s->total, 2) }} |
@empty
| لا يوجد نشاط |
@endforelse
@endsection
@push('scripts')
@endpush