@php use Request as Input; @endphp
{!! Form::label('start_date', 'Start Date ', [ 'class' => 'form-label', 'for' => 'start_date', ]) !!} * {!! Form::text( 'start_date', Input::old( 'start_date', isset($leave->start_date) ? Carbon::createFromFormat('Y-m-d', $leave->start_date)->format(config('const.displayDate')) : '', ), [ 'id' => 'leave_start_date', 'class' => 'form-control flatpickr-validation flatpickr-input', 'placeholder' => 'Select start date', 'tabindex' => '6', ], ) !!}
{!! Form::label('end_date', 'End Date ', [ 'class' => 'form-label', 'for' => 'end_date', ]) !!} * {!! Form::text( 'end_date', Input::old( 'end_date', isset($leave->end_date) ? Carbon::createFromFormat('Y-m-d', $leave->end_date)->format(config('const.displayDate')) : '', ), [ 'id' => 'leave_end_date', 'class' => 'form-control flatpickr-validation flatpickr-input', 'placeholder' => 'Select end date', 'tabindex' => '6', ], ) !!}
start_type == config('const.leaveTypeFullInt') ? 'checked' : '' }} />
start_type == config('const.leaveTypeFirstHalfInt') ? 'checked' : '' }} />
start_type == config('const.leaveTypeSecondHalfInt') ? 'checked' : '' }} />
end_type == config('const.leaveTypeFullInt') ? 'checked' : '' }} disabled />
end_type == config('const.leaveTypeFirstHalfInt') ? 'checked' : '' }} disabled />
end_type == config('const.leaveTypeSecondHalfInt') ? 'checked' : '' }} disabled />
{!! Form::label('reason', 'Notes', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::textarea('reason', isset($leave) ? $leave->reason : '', [ 'id' => 'leave_reason', 'class' => 'form-control', 'placeholder' => 'Notes', 'rows' => '3', ]) !!}
*
@if (isset($leave->id)) @else @endif Cancel