14 lines
871 B
PHP
14 lines
871 B
PHP
@csrf
|
|
<x-private.forms.checkbox :title="__('validation.attributes.is_active')" name="is_active" checkboxValue="1" notCheckedValue="0" :userValue="(string) $user->is_active" />
|
|
<x-private.forms.input :title="__('validation.attributes.name')" name="name" type="text" :value="$user->name" required autofocus />
|
|
<x-private.forms.input :title="__('validation.attributes.email')" name="email" type="email" :value="$user->email" required />
|
|
@if (empty($user->id))
|
|
<x-private.forms.input :title="__('validation.attributes.password')" name="password" type="password" value="" required autocomplete="off" />
|
|
@endif
|
|
<hr>
|
|
<x-private.forms.multi_checkbox :title="__('validation.attributes.roles')" name="roles[]" :list="$roles" :value="$userRoles" />
|
|
<hr>
|
|
@canany(['create', 'update'], $user)
|
|
<button class="btn btn-primary" type="submit">{{ __('Save') }}</button>
|
|
@endcanany
|