33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
|
<div class="row gy-4">
|
||
|
|
||
|
{{-- <div class="col-md-4">
|
||
|
{{ html()->label('For Employee')->class('form-label') }}
|
||
|
{{ html()->select('employee_id', $employeeLists)->class('form-select select2')->placeholder('Select Employee') }}
|
||
|
{{ html()->div('please select employee')->class('invalid-feedback') }}
|
||
|
</div> --}}
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
{{ html()->label('Role')->class('form-label') }}
|
||
|
{{ html()->select('role[]', $roleLists, $editable ? $user->roles?->first()->id : null)->class('form-select select2')->placeholder('Select Role')->required() }}
|
||
|
{{ html()->div('please select role')->class('invalid-feedback') }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
{{ html()->label('Username')->class('form-label') }}
|
||
|
{{ html()->text('name')->class('form-control')->placeholder('Enter Username')->required() }}
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
{{ html()->label('Email')->class('form-label') }}
|
||
|
{{ html()->email('email')->class('form-control')->placeholder('Enter Email')->required() }}
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
{{ html()->label('Password')->class('form-label') }}
|
||
|
{{ html()->password('password')->class('form-control')->placeholder('Enter Password')->required() }}
|
||
|
</div>
|
||
|
|
||
|
<x-form-buttons :editable="$editable" label="Add" href="{{ route('user.index') }}" />
|
||
|
|
||
|
</div>
|