Add Access Level

@if(!empty($role))
@method('PUT') @else @endif @csrf

Select All

@foreach($modules as $module=>$permissions) @php $prms = ['add','edit','delete','view'] ; @endphp @foreach($prms as $permission) @php $count = 0; @endphp @foreach($permissions as $p) @if($p->name == $module.'.'.$permission) @php $count++; @endphp @endif @endforeach @if($count <1) @endif @endforeach @endforeach
Permission Add Edit Delete View
{{ucwords(str_replace('_',' ',$module))}}
id,$oldPermissions)) checked="true" @endif>
Dashboard Element
@foreach($dsections as $section) @php $checked =''; if(!empty($role_ds) && in_array($section->id,$role_ds)){ $checked = 'checked = "checked"'; } @endphp
@endforeach
Cancel