@extends('admin.layouts.app') @section('page_title', __('Permission Roles')) @section('css') @endsection @section('content')
@include('admin.layouts.includes.account_settings_menu')
{{ __('Permission Roles') }}
@if (in_array('App\Http\Controllers\RoleController@create', $prms))  {{ __('Add Role') }} @endif @if (in_array('App\Http\Controllers\PermissionRoleController@generatePermission', $prms))  {{ __('Generate Permissions') }} @endif
{{ __('Permissions applied here are applicable to access that particular link. Please change it with extreme care.') }} @php $columnWidth = intval(80 / count($roles)) . '%'; @endphp @foreach ($roles as $role) @endforeach @foreach ($permissions as $webApiKey => $webApiValue ) @foreach ($webApiValue as $groupKey => $groupValue) @if(!empty($groupValue)) @php $data[$groupKey][$webApiKey] = $groupValue; @endphp @endif @endforeach @endforeach @php ksort($data); @endphp @foreach ($data as $type => $allValue) @foreach ($roles as $role) @if ($loop->iteration == ($loop->count - 1)) @elseif ($loop->iteration < ($loop->count - 1)) @endif @endforeach @foreach ($allValue as $key => $value) @foreach ($roles as $role) @endforeach @endforeach @endforeach
{{ __('Permissions') }}{{ $role['name'] }}
{{ strpos($type, 'api') != false ? 'api' : 'web' }}
@foreach ($value as $methodKey => $methodValue) @foreach ($roles as $role) @endforeach @endforeach
{{ ucfirst(preg_replace('/(? @if($role['slug'] == 'super-admin') @else @endif
@include('admin.layouts.includes.delete-modal')
@endsection @section('js') @endsection