first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{{ html()->form('POST', route('user.store'))->class('needs-validation')->attributes(['novalidate'])->open() }}
@isset($user)
{{ html()->hidden('id', $user->id) }}
@endisset
<div class="card-body">
<div class="row">
<div class="col-sm-12">
<div class="mb-3">
{{ html()->label('Name')->for('name') }}
{{ html()->span('*')->class('text-danger') }}
{{ html()->text('name')->value($user->name ?? old('name'))->class('form-control')->placeholder('Enter Name')->required() }}
{{ html()->div('Please enter a name.')->class('invalid-feedback') }}
</div>
<div class="mb-3">
{{ html()->label('Email')->for('email') }}
{{ html()->span('*')->class('text-danger') }}
{{ html()->email('email')->value($user->email ?? old('email'))->class('form-control')->placeholder('Enter Email')->required() }}
{{ html()->div('Please enter a email.')->class('invalid-feedback') }}
</div>
<div class="mb-3">
{{ html()->label('Password')->for('password') }}
{{ html()->span('*')->class('text-danger') }}
{{ html()->password('password')->class('form-control')->placeholder('Enter Password')->required(!isset($user)) }}
{{ html()->div('Please enter a password.')->class('invalid-feedback') }}
</div>
<div class="mb-3">
{{ html()->label('Confirm Password')->for('password_confirmation') }}
{{ html()->span('*')->class('text-danger') }}
{{ html()->password('password_confirmation')->class('form-control')->placeholder('Enter Password')->required(!isset($user)) }}
{{ html()->div('Please enter a password.')->class('invalid-feedback') }}
</div>
</div>
<x-form-buttons :href="route('user.index')" :label="isset($user) ? 'Update' : 'Create'" />
</div>
</div>
{{ html()->form()->close() }}