@extends('layouts.app') @section('title', 'تعيين الصلاحيات للدور: ' . $role->name) @section('content')

تعيين الصلاحيات للدور: {{ $role->name }}

العودة إلى قائمة الأدوار
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@csrf

معلومات الدور:

الاسم: {{ $role->name }}

الوصف: {{ $role->description ?? 'لا يوجد وصف' }}

@forelse($permissions as $module => $modulePermissions)
{{ $module }} ({{ $modulePermissions->count() }})
@foreach($modulePermissions as $permission)
id, $rolePermissions) ? 'checked' : '' }}>
@endforeach
@empty
لا توجد صلاحيات مضافة
@endforelse
@push('scripts') @endpush @endsection