@extends('layouts.master') @section('css') @section('title') تعديل الدور - {{ $role->display_name ?? $role->name }} @stop @endsection @section('page-header') @endsection @section('content') @if (count($errors) > 0)
خطأ
@endif
@csrf @method('PATCH')
{{ $guardLabels[$role->guard_name] ?? $role->guard_name }} تعديل الدور
رجوع
يُستخدم داخلياً للتحقق من الصلاحيات

الصلاحيات المتاحة لنطاق {{ $guardLabels[$role->guard_name] ?? $role->guard_name }}
@if($permission->count() > 0)
@php $grouped = $permission->groupBy(function($p) { $parts = explode('-', $p->name); return $parts[0] ?? 'عام'; }); @endphp @foreach($grouped as $group => $perms)
{{ ucfirst($group) }}
@foreach($perms as $value) @endforeach
@endforeach
@else
لا توجد صلاحيات مسجلة لهذا النطاق بعد.
@endif
@endsection @section('js') @endsection