2024-05-16 09:31:08 +05:45

60 lines
2.5 KiB
PHP

<div class="row gy-3">
<div class="col-lg-4 col-md-6">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Enter Title')->required() }}
{{ html()->div('Please add title')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Type')->class('form-label') }}
{{ html()->select('type', ['promotion' => 'Promotion', 'demotion' => 'Demotion'])->class('form-select select2')->placeholder('Select Type')->required() }}
{{ html()->div('Please select type')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Employee')->class('form-label') }}
{{ html()->select('employee_id', $employeeLists)->class('form-select select2')->placeholder('Select Employee')->required() }}
{{ html()->div('Please select employee')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Previous Designation')->class('form-label') }}
{{ html()->select('old_designation_id', $designationLists)->class('form-select select2')->placeholder('Select Previous Desgination')->required() }}
{{ html()->div('Please select previous designation')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('New Designation')->class('form-label') }}
{{ html()->select('new_designation_id', $designationLists)->class('form-select select2')->placeholder('Select New Desgination')->required() }}
{{ html()->div('Please select new designation')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Date')->class('form-label') }}
{{ html()->date('date')->class('form-control')->placeholder('Select Date')->required() }}
{{ html()->div('Please select date')->class('invalid-feedback') }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->attributes(['rows' => 3]) }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Remarks')->class('form-label') }}
{{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 3]) }}
</div>
<x-form-buttons :editable='$editable' label='Add' href="{{route('promotionDemotion.index')}}" />
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush