@extends('layouts.master') @section('css') @endsection @section('title') {{ __('roles.Viewـpermissions') }} @endsection @section('page-header')
@endsection @section('content') {{-- التنبيهات الاحترافية باستخدام SweetAlert2 للغات المشتركة --}} @if (session()->has('Add')) @endif @if (session()->has('edit')) @endif @if (session()->has('delete')) @endif
@can('create_roles') @endcan
@foreach ($roles as $key => $role) {{-- الفحص الصحيح لحظر ظهور حساب الـ Admin منعاً للعبث بالصلاحيات الرئيسية --}} @if($role->name != 'Admin') @endif @endforeach
# {{ __('roles.name_permission') }} {{ __('home.operations') }}
{{ ++$i }} {{ $role->name }} {{ __('roles.display') }} {{ __('roles.update') }} @if ($role->name !== 'owner') {!! Form::open(['method' => 'DELETE', 'route' => ['roles.destroy', $role->id], 'style' => 'display:inline']) !!} {!! Form::submit(__('roles.delete'), ['class' => 'btn btn-danger btn-sm', 'style' => 'font-size:15px']) !!} {!! Form::close() !!} @endif
@endsection @section('js') @endsection