@extends('layouts.dashboard') @section('title', app()->getLocale() == 'ar' ? 'لوحة التحكم' : 'Dashboard') @section('page-content')

{{ app()->getLocale() == 'ar' ? 'لوحة التحكم' : 'Dashboard' }}

{{ $stats['total_users'] }}

{{ app()->getLocale() == 'ar' ? 'إجمالي المستخدمين' : 'Total Users' }}

{{ $stats['active_users'] }}

{{ app()->getLocale() == 'ar' ? 'مستخدمون نشطون' : 'Active Users' }}

{{ $stats['inactive_users'] }}

{{ app()->getLocale() == 'ar' ? 'مستخدمون غير نشطين' : 'Inactive Users' }}

{{ app()->getLocale() == 'ar' ? 'أحدث المستخدمين' : 'Recent Users' }}
@if($stats['recent_users']->count() > 0)
@foreach($stats['recent_users'] as $user) @endforeach
{{ app()->getLocale() == 'ar' ? 'الاسم' : 'Name' }} {{ app()->getLocale() == 'ar' ? 'البريد الإلكتروني' : 'Email' }} {{ app()->getLocale() == 'ar' ? 'الهاتف' : 'Phone' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} {{ app()->getLocale() == 'ar' ? 'تاريخ التسجيل' : 'Registered' }}
{{ $user->name }} {{ $user->email }} {{ $user->phone ?? '-' }} @if($user->is_active) {{ app()->getLocale() == 'ar' ? 'نشط' : 'Active' }} @else {{ app()->getLocale() == 'ar' ? 'غير نشط' : 'Inactive' }} @endif {{ $user->created_at->diffForHumans() }}
@else

{{ app()->getLocale() == 'ar' ? 'لا يوجد مستخدمون' : 'No users yet' }}

@endif
@endsection