{{ Form::label('name', __('Role Name'), ['class' => 'col-form-label']) }}
{{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => __('Enter new User Name')]) }}
@if (!empty($permissions) && count($permissions) > 0)
{{ Form::label('permission', __('Assign Permission'), ['class' => 'form-label col-form-label']) }}
{{ Form::checkbox('select-all', false, null, ['class' => 'form-check-input', 'id' => 'select-all']) }}
{{ Form::label('select-all', 'Select All', ['class' => 'form-check-label ']) }}
| {{ __('Module') }} |
{{ __('Permissions') }} |
@foreach ($modules as $module)
| {{ __($module) }} |
@foreach ($internalPermission as $ip)
@if (in_array($ip . ' ' . $module, $permissions))
@php($key = array_search($ip . ' ' . $module, $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permissions, ['class' => 'form-check-input', 'id' => 'permission_' . $key]) }}
{{ Form::label('permission_' . $key, $ip, ['class' => 'form-check-label']) }}
@endif
@endforeach
|
@endforeach
| {{ __('Account') }} |
@foreach ($customPermission as $p)
@if (in_array($p, $permissions))
@php($key = array_search($p, $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permissions, ['class' => 'form-check-input', 'id' => 'permission_' . $key]) }}
{{ Form::label('permission_' . $key, $p, ['class' => 'form-check-label']) }}
@endif
@endforeach
|
@endif
{{ Form::close() }}