@extends('layouts.admin')
@section('title', __('Dashboard'))
@section('page_title', 'لوحة التحكم - ' . auth()->user()->name)
@section('content')
@include('dashboard._kpi', ['label' => 'طلباتي اليوم', 'value' => $kpis['orders_today'], 'color' => 'primary', 'icon' => 'cart', 'sub' => 'طلب'])
@include('dashboard._kpi', ['label' => 'طلباتي الشهر', 'value' => $kpis['orders_month'], 'color' => 'info', 'icon' => 'cart-check', 'sub' => 'طلب'])
@include('dashboard._kpi', ['label' => 'مبيعاتي الشهر', 'value' => number_format($kpis['sales_month'], 0), 'color' => 'success', 'icon' => 'cash-stack', 'sub' => 'ج.م'])
@include('dashboard._kpi', ['label' => 'طلبات معلقة', 'value' => $kpis['pending_orders'], 'color' => 'warning', 'icon' => 'clock', 'sub' => 'في الانتظار'])
@include('dashboard._kpi', ['label' => 'زيارات اليوم', 'value' => $kpis['visits_today'], 'color' => 'light text-dark', 'col' => 4, 'icon' => 'geo-alt', 'sub' => 'زيارة'])
@include('dashboard._kpi', ['label' => 'زيارات الشهر', 'value' => $kpis['visits_month'], 'color' => 'light text-dark', 'col' => 4, 'icon' => 'calendar', 'sub' => 'زيارة'])
@include('dashboard._kpi', ['label' => 'عملاء منطقتي', 'value' => $kpis['customers_count'],'color' => 'light text-dark', 'col' => 4, 'icon' => 'people', 'sub' => 'عميل نشط'])
@forelse($topProducts as $p)
| {{ $p->name }} |
{{ $p->qty }} |
{{ number_format($p->total, 2) }} |
@empty
| لا توجد بيانات |
@endforelse
| رقم الطلب | العميل | التاريخ | {{ __('Net Total') }} | {{ __('Status') }} |
@forelse($recentOrders as $o)
| {{ $o->order_number }} |
{{ $o->customer?->name }} |
{{ $o->order_date->format('d/m/Y') }} |
{{ number_format((float) $o->net_total, 2) }} |
{!! $o->status_badge !!} |
@empty
| ليس لديك طلبات بعد |
@endforelse
@endsection
@push('scripts')
@endpush