{{-- resources/views/admin/dashboard.blade.php --}} لوحة السوبر أدمن | إنجاز
{{-- Sidebar --}} {{-- Main --}}
{{-- Header --}}

لوحة تحكم النظام

{{ now()->locale('ar')->isoFormat('dddd، D MMMM YYYY') }}

إضافة شركة جديدة
{{-- Stats --}}
@foreach([ ['label'=>'إجمالي الشركات','value'=>$stats['total_tenants'],'color'=>'blue','icon'=>'M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5'], ['label'=>'شركات نشطة','value'=>$stats['active_tenants'],'color'=>'green','icon'=>'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'], ['label'=>'في فترة تجريبية','value'=>$stats['trial_tenants'],'color'=>'yellow','icon'=>'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'], ['label'=>'إجمالي المستخدمين','value'=>$stats['total_users'],'color'=>'purple','icon'=>'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z'], ] as $s)

{{ $s['label'] }}

{{ number_format($s['value']) }}

@endforeach
{{-- Revenue + Tenants Table --}}
{{-- Revenue Chart --}}

الإيرادات الشهرية (SAR)

{{-- Tenants Table --}}

آخر الشركات المسجلة

عرض الكل
@forelse($recentTenants as $tenant) @empty @endforelse
الشركة الخطة الحالة المستخدمون تاريخ التسجيل
{{ mb_substr($tenant->name, 0, 1) }}

{{ $tenant->name }}

{{ $tenant->subdomain }}.injaz.sa

{{ $tenant->plan?->name_ar ?? '—' }} @php $colors = ['active'=>'green','trial'=>'yellow','suspended'=>'red','cancelled'=>'gray']; $labels = ['active'=>'نشط','trial'=>'تجريبي','suspended'=>'موقوف','cancelled'=>'ملغى']; @endphp {{ $labels[$tenant->subscription_status] ?? $tenant->subscription_status }} {{ $tenant->users_count ?? 0 }} {{ $tenant->created_at->format('d/m/Y') }}
@csrf
لا توجد شركات مسجلة
{{-- Plans Overview --}}

توزيع الاشتراكات حسب الخطة

@foreach($planStats as $plan)

{{ $plan->name_ar }}

{{ $plan->tenants_count }}
{{ number_format($plan->price_monthly) }} SAR / شهر {{ number_format($plan->tenants_count * $plan->price_monthly) }} SAR
@php $max = $planStats->max('tenants_count') ?: 1 @endphp
@endforeach