@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')
{{ $isArabic ? 'راجع صلاحيات النظام وعدّل الحارس والاسم من شاشة أكثر اتساقًا مع بقية الإدارة.' : 'Review system permissions and update the guard and label from a view aligned with the rest of the admin area.' }}
{{ $isArabic ? 'التحكم في الوصول' : 'Access control' }}
{{ __('dashboard.Manage permission records and update guard assignments.') }}
{{ __('dashboard.Total Permissions') }}
{{ $permissions->total() }}
{{ __('dashboard.Guards') }}
{{ $guardsCount }}
{{ __('dashboard.Current Page') }}
{{ $permissions->currentPage() }}
{{ $isArabic ? 'لا توجد صلاحيات معرفة حاليًا.' : 'No permissions are currently defined.' }}
| pluck('id')) }} : []" class="rounded border-surface-300 dark:border-surface-600"> | {{ __('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') }} |