{{ Form::open(['route' => ['role.store'], 'method' => 'post']) }}
{{ Form::close() }}
{{ Form::label('name', __('Name'), ['class' => 'form-label']) }}
{{ $message }}
@enderror
@error('name')
@if (!empty($permissions))
@endif
{{ __('Assign Permission to Roles') }}
{{ __('Module') }} | {{ __('Permissions') }} |
---|---|
@if (in_array($module . ' index', (array) $permissions))
@if ($key = array_search($module . ' index', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'index', ['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, false, ['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, false, ['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, false, ['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, false, ['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, false, ['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 . ' stripe', (array) $permissions))
@if ($key = array_search($module . ' stripe', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'stripe', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' buy', (array) $permissions))
@if ($key = array_search($module . ' buy', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'buy', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' store', (array) $permissions))
@if ($key = array_search($module . ' store', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'store', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' questionShow', (array) $permissions))
@if ($key = array_search($module . ' questionShow', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'questionShow', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' questionCreate', (array) $permissions))
@if ($key = array_search($module . ' questionCreate', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'questionCreate', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' questionEdit', (array) $permissions))
@if ($key = array_search($module . ' questionEdit', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'questionEdit', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' questionUpdate', (array) $permissions))
@if ($key = array_search($module . ' questionUpdate', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'questionUpdate', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
@if (in_array($module . ' continue', (array) $permissions))
@if ($key = array_search($module . ' continue', $permissions))
{{ Form::checkbox('permissions[]', $key, false, ['class' => 'form-check-input isscheck isscheck_' . str_replace(' ', '', $module), 'id' => 'permission' . $key]) }}
{{ Form::label('permission' . $key, 'continue', ['class' => 'form-label font-weight-500']) }}
@endif
@endif
|