@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'إدارة الأوسمة' : 'Badges Management') @section('page_heading', app()->getLocale() === 'ar' ? 'إدارة الأوسمة' : 'Badges Management') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $criteriaLabels = [ 'total_points' => $isArabic ? 'إجمالي النقاط' : 'Total points', 'assignment_submissions' => $isArabic ? 'عدد الواجبات المسلمة' : 'Assignment submissions', 'quiz_completions' => $isArabic ? 'عدد الاختبارات المكتملة' : 'Quiz completions', 'completed_materials' => $isArabic ? 'المواد المكتملة' : 'Completed materials', 'certificates_count' => $isArabic ? 'عدد الشهادات' : 'Certificates count', ]; @endphp @section('content')
{{ $isArabic ? 'صفحة عرض مستقلة للأوسمة مع إضافة الوسام من نافذة منبثقة، واعتماد الصور بدل الأيقونات.' : 'A dedicated listing page for badges with popup creation and image-based badge visuals instead of icons.' }}
{{ $isArabic ? 'إجمالي الأوسمة' : 'Total Badges' }}
{{ $badges->count() }}
| {{ $isArabic ? 'الصورة' : 'Image' }} | {{ $isArabic ? 'اسم الوسام' : 'Badge Name' }} | {{ $isArabic ? 'المعيار' : 'Criteria' }} | {{ $isArabic ? 'الحالة' : 'Status' }} | {{ __('dashboard.Actions') }} |
|---|---|---|---|---|
|
@if($badge->image_path)
|
{{ $badge->name }} #{{ $badge->id }} |
{{ $criteriaLabels[$badge->criteria_type] ?? $badge->criteria_type }} · {{ $badge->criteria_value }} | {{ $badge->is_active ? ($isArabic ? 'نشط' : 'Active') : ($isArabic ? 'غير نشط' : 'Inactive') }} |
|