@extends('layouts.main_dashboard.app') @section('title', __('dashboard.Permissions')) @section('page_heading', __('dashboard.Permissions')) @section('page_subtitle', app()->getLocale() === 'ar' ? 'إدارة صلاحيات النظام والحارس المرتبط بكل صلاحية.' : 'Manage system permissions and the guard linked to each record.') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $guardsCount = $permissions->pluck('guard_name')->filter()->unique()->count(); @endphp @section('content')

{{ __('dashboard.Permissions') }}

{{ $isArabic ? 'راجع صلاحيات النظام وعدّل الحارس والاسم من شاشة أكثر اتساقًا مع بقية الإدارة.' : 'Review system permissions and update the guard and label from a view aligned with the rest of the admin area.' }}

{{ __('dashboard.Add Permission') }}

{{ $isArabic ? 'التحكم في الوصول' : 'Access control' }}

{{ __('dashboard.Permissions List') }}

{{ __('dashboard.Manage permission records and update guard assignments.') }}

{{ __('dashboard.Total Permissions') }}

{{ $permissions->total() }}

{{ __('dashboard.Guards') }}

{{ $guardsCount }}

{{ __('dashboard.Current Page') }}

{{ $permissions->currentPage() }}

@if($permissions->isEmpty())

{{ __('dashboard.No data found') }}

{{ $isArabic ? 'لا توجد صلاحيات معرفة حاليًا.' : 'No permissions are currently defined.' }}

@else
@foreach($permissions as $permission) @endforeach
{{ __('dashboard.Name') }} {{ __('dashboard.Guard Name') }} {{ __('dashboard.Created At') }} {{ __('dashboard.Actions') }}
{{ $permission->name }} {{ $permission->guard_name }} {{ $permission->created_at?->format('d M Y, h:i A') }}
{{ __('dashboard.Edit') }}
@csrf @method('DELETE')
{{ $permissions->links('pagination::simple-tailwind') }}
@endif
@endsection