{{ html()->label('Employee')->class('form-label') }}
{{ html()->select('employee_id', $employeeList)->class('form-select select2')->placeholder('Select Employee')->required() }}
{{ html()->div('Please Select Employee')->class('invalid-feedback') }}
{{ html()->label('Leave Type')->class('form-label') }}
{{ html()->select('leave_type_id', $leaveTypeList)->class('form-select select2')->placeholder('Select Leave Type')->required() }}
{{ html()->div('Please Select Leave Type')->class('invalid-feedback') }}
{{ html()->label('Selet Duration')->class('form-label') }}
@foreach ($duration as $durationKey => $durationItem)
{{ html()->radio('duration')->class('form-check-input duration')->checked(old('duration', isset($leave) && $leave->duration === $durationKey))->attributes(['id' => $durationKey])->value($durationKey)->required() }}
{{ html()->label($durationItem)->class('form-check-label')->for($durationKey) }}
@endforeach
{{ html()->label('Start Date')->class('form-label') }}
{{ html()->date('start_date')->class('form-control')->placeholder('Select Start Date')->required() }}
{{ html()->div('Please Select Start Date')->class('invalid-feedback') }}
{{ html()->label('End Date')->class('form-label') }}
{{ html()->date('end_date')->class('form-control')->placeholder('Select End Date') }}
{{ html()->div('Please Select End Date')->class('invalid-feedback') }}
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->placeholder('Write Reason for Leave') }}