@extends('layouts.main_dashboard.app')
@section('title', __('dashboard.Home Page'))
@section('page_heading', __('dashboard.Home Page'))
@php $isAr = app()->getLocale() === 'ar'; @endphp
@section('content')
{{-- ═══ Hero ═══ --}}
@foreach([
['icon'=>'fa-user-graduate', 'metric'=>$isAr?'الطلاب':'Students', 'color'=>'blue', 'route'=>'admin.students.index'],
['icon'=>'fa-chalkboard-user','metric'=>$isAr?'المعلمون':'Teachers', 'color'=>'violet', 'route'=>'admin.teachers.index'],
['icon'=>'fa-school', 'metric'=>$isAr?'الصفوف الدراسية':'School classes','color'=>'amber', 'route'=>'admin.school-classes.index'],
['icon'=>'fa-book-open', 'metric'=>$isAr?'المساقات':'Courses', 'color'=>'emerald', 'route'=>'admin.courses.index'],
['icon'=>'fa-book', 'metric'=>$isAr?'المواد':'Subjects', 'color'=>'indigo', 'route'=>'admin.subjects.index'],
['icon'=>'fa-bell', 'metric'=>$isAr?'الإشعارات العامة':'General notifications','color'=>'rose','route'=>'admin.general_notifications.index'],
['icon'=>'fa-award', 'metric'=>$isAr?'الشهادات':'Certificates', 'color'=>'amber', 'route'=>'admin.certificates.issued.index'],
['icon'=>'fa-sitemap', 'metric'=>$isAr?'المراحل':'Stages', 'color'=>'emerald', 'route'=>'admin.stages.index'],
] as $c)
@php $m = collect($primaryMetrics)->firstWhere('label', $c['metric']); @endphp
{{ number_format($m['value'] ?? 0) }}
{{ $c['metric'] }}
@endforeach
{{-- ═══ Main Grid ═══ --}}