{{ Form::model($role, ['route' => ['role.update', $role->id], 'method' => 'PUT']) }}
{{ Form::close() }}
{{ Form::label('name', __('Name'), ['class' => 'form-label']) }}
@if ($role->name == 'employee')
{{ $role->name }}
@else @endif @error('name') {{ $message }} @enderror
@if (!empty($permissions))
@endif
{{ __('Assign Permission to Roles') }}
{{ __('Module') }} | {{ __('Permissions') }} | |
---|---|---|
@if (in_array($module . ' digiList', (array) $permissions))
@if ($key = array_search($module . ' digiList', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'digiList', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' vecList', (array) $permissions))
@if ($key = array_search($module . ' vecList', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'vecList', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' list', (array) $permissions))
@if ($key = array_search($module . ' list', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'List', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' create', (array) $permissions))
@if ($key = array_search($module . ' create', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'create', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' edit', (array) $permissions))
@if ($key = array_search($module . ' edit', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'edit', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' show', (array) $permissions))
@if ($key = array_search($module . ' show', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'show', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' delete', (array) $permissions))
@if ($key = array_search($module . ' delete', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'delete', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' expirelock', (array) $permissions))
@if ($key = array_search($module . ' expirelock', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'expirelock', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' ownnotes', (array) $permissions))
@if ($key = array_search($module . ' ownnotes', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'ownnotes', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' allnotes', (array) $permissions))
@if ($key = array_search($module . ' allnotes', $permissions))
{{ Form::checkbox('permissions[]', $key, $role->permission, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'allnotes', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
|