@php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; @endphp @extends('layouts.app') @section('title', __('app.dashboard')) @section('content')

{{ __('app.welcome_message') }} 👋

{{ auth()->user()->name ?? 'Manager' }}

{{ __('app.track_progress') }}

{{ __('app.new_member') }}
{{ now()->translatedFormat($isRtl ? 'l, d F Y' : 'l, M d, Y') }}
{{ $stats['members_growth'] ?? 12 }}%

{{ __('app.total_members') }}

{{ number_format($stats['total_members'] ?? 0) }}

{{ __('app.compared_to') }} ({{ $stats['last_week_members'] ?? 0 }} {{ __('app.last_week') }})

{{ $stats['subscriptions_growth'] ?? 8 }}%

{{ __('app.active_subscriptions') }}

{{ number_format($stats['active_subscriptions'] ?? 0) }}

{{ __('app.compared_to') }} ({{ $stats['last_month_subscriptions'] ?? 0 }} {{ __('app.last_month') }})

{{ __('app.daily_checkins') }}

{{ $stats['attendance_rate'] ?? 67 }}%

{{ $stats['attendance_today'] ?? 0 }} {{ __('app.checked_in_today') }}

@for($i = 0; $i < 3; $i++) @endfor

{{ __('app.active_trainers') }}

{{ $stats['total_trainers'] ?? 0 }}

{{ __('app.professional_coaches') }}

{{ __('app.membership_growth') }}

{{ __('app.monthly') }}

{{ __('app.today_schedule') }}

{{ __('app.view_all') }} →
@php $demoClasses = [ ['name' => $isRtl ? 'يوغا صباحية' : 'Morning Yoga', 'time' => '07:00 - 08:00', 'trainer' => $isRtl ? 'سارة أحمد' : 'Sarah Ahmed', 'color' => 'emerald', 'participants' => 12], ['name' => $isRtl ? 'كروس فت' : 'CrossFit', 'time' => '09:00 - 10:00', 'trainer' => $isRtl ? 'محمد علي' : 'Mike Johnson', 'color' => 'violet', 'participants' => 8], ['name' => $isRtl ? 'تمارين قوة' : 'Strength Training', 'time' => '11:00 - 12:00', 'trainer' => $isRtl ? 'أحمد خالد' : 'Alex Brown', 'color' => 'amber', 'participants' => 15], ]; @endphp @foreach($demoClasses as $class)
{{ $class['name'] }}
{{ $class['time'] }}
{{ $class['trainer'] }}
{{ $class['participants'] }}
@endforeach

{{ __('app.renewal_alerts') }}

{{ $expiringSubscriptions->count() ?? 5 }} ⚠️

{{ $expiringSubscriptions->count() ?? 5 }}

{{ __('app.expiring_this_week') }}

@php $demoExpiring = [ ['name' => $isRtl ? 'أحمد محمد' : 'Ahmed Mohamed', 'days' => 2], ['name' => $isRtl ? 'سارة علي' : 'Sara Ali', 'days' => 3], ['name' => $isRtl ? 'خالد عمر' : 'Khalid Omar', 'days' => 5], ]; @endphp @foreach($demoExpiring as $member)

{{ $member['name'] }}

{{ $member['days'] }} {{ __('app.days_left') }}

@endforeach

{{ __('app.gates') }}

{{ $isRtl ? 'فتح شاشة البوابة' : 'Open Gate Terminal' }}

{{ __('app.membership_plans') }}

{{ __('app.monthly') }}
45%
{{ __('app.quarterly') }}
30%
{{ __('app.yearly') }}
25%

{{ __('app.trainer_performance') }}

89%

{{ __('app.performance_note') }}

@php $trainers = [ ['name' => $isRtl ? 'أحمد' : 'Ahmed', 'classes' => 45, 'pt' => 30, 'rating' => 25], ['name' => $isRtl ? 'سارة' : 'Sarah', 'classes' => 35, 'pt' => 40, 'rating' => 25], ['name' => $isRtl ? 'محمد' : 'Mike', 'classes' => 40, 'pt' => 25, 'rating' => 35], ]; @endphp @foreach($trainers as $trainer)
{{ $trainer['name'] }}
@endforeach
{{ __('app.classes_led') }}
{{ __('app.pt_sessions') }}
{{ __('app.member_rating') }}

{{ __('app.tasks_alerts') }}

@php $tasks = [ ['title' => $isRtl ? 'صيانة المعدات' : 'Equipment Maintenance', 'tags' => [$isRtl ? 'صيانة' : 'Maintenance', $isRtl ? 'عاجل' : 'Urgent'], 'date' => '+2d', 'done' => false], ['title' => $isRtl ? 'طلب مستلزمات' : 'Order Supplies', 'tags' => [$isRtl ? 'مخزون' : 'Inventory'], 'date' => '+5d', 'done' => false], ['title' => $isRtl ? 'اجتماع المدربين' : 'Trainer Meeting', 'tags' => [$isRtl ? 'اجتماع' : 'Meeting'], 'date' => '+7d', 'done' => true], ]; @endphp @foreach($tasks as $index => $task)
@if($task['done']) @endif

{{ $task['title'] }}

@foreach($task['tags'] as $tagIndex => $tag) {{ $tag }} @endforeach
@endforeach

{{ $isRtl ? 'ملخص الإيرادات' : 'Revenue Summary' }}

{{ $isRtl ? 'إجمالي هذا الشهر' : 'This Month Total' }}

{{ number_format(45250) }}

{{ \App\Models\Setting::currencyLabel($locale) }}

{{ __('app.subscriptions') }} 38,400
{{ $isRtl ? 'منتجات' : 'Products' }} 4,850
{{ $isRtl ? 'جلسات خاصة' : 'PT Sessions' }} 2,000
{{ __('app.view_all') }} {{ __('app.reports') }} →
@endsection @push('scripts') @endpush