{{-- resources/views/superadmin/roles/index.blade.php --}} @extends('layouts.superadmin') @section('title', 'إدارة الأدوار') @section('page-title', 'إدارة الأدوار') @section('content')

إدارة الأدوار

إدارة أدوار المستخدمين والصلاحيات في النظام

إضافة دور جديد

إجمالي الأدوار

{{ $roles->count() }}

إجمالي المستخدمين

{{ $totalUsers ?? 0 }}

أدوار مخصصة

{{ $customRoles ?? 0 }}

قائمة الأدوار

{{ $roles->count() }} دور
@forelse($roles as $role)

{{ $role->name == 'super-admin' ? 'الإدارة العليا' : ($role->name == 'advisor' ? 'مستشار التيم' : ($role->name == 'moderator' ? 'مشرف' : ($role->name == 'official-member' ? 'عضو رسمي' : ($role->name == 'member' ? 'عضو بيتا' : $role->display_name ?? $role->name)))) }}

@if($role->name == 'super-admin') محمي @endif

{{ $role->name }}

{{ Str::limit($role->description, 80) ?: 'لا يوجد وصف لهذا الدور' }}

المستخدمين

{{ $role->users->count() }}

@if($role->name !== 'super-admin') @if($role->users->count() == 0)
@csrf @method('DELETE')
@else @endif @else @endif
@empty

لا توجد أدوار

ابدأ بإنشاء دور جديد للنظام

إضافة أول دور
@endforelse
@endsection