<?php $termination_data = get_user_meta($employee->id, '_erp_hr_termination', true); ?> <p><?php _e('Termination Date', 'wp-erp'); ?> : <?php echo isset($termination_data['terminate_date']) ? erp_format_date($termination_data['terminate_date']) : ''; ?> </p> <p><?php _e('Termination Type', 'wp-erp'); ?> : <?php echo isset($termination_data['termination_type']) ? erp_hr_get_terminate_type($termination_data['termination_type']) : ''; ?> </p> <p><?php _e('Termination Reason', 'wp-erp'); ?> : <?php echo isset($termination_data['termination_reason']) ? erp_hr_get_terminate_reason($termination_data['termination_reason']) : ''; ?> </p> <p><?php _e('Eligible for Hire', 'wp-erp'); ?> : <?php echo isset($termination_data['eligible_for_rehire']) ? erp_hr_get_terminate_rehire_options($termination_data['eligible_for_rehire']) : ''; ?>
<?php $employee_id = isset($_GET['id']) ? intval($_GET['id']) : null; ?> <div class="terminate-form-wrap"> <div class="row"> <?php erp_html_form_input(array('label' => __('Termination Date', 'wp-erp'), 'name' => 'terminate_date', 'value' => '{{data.terminate_date}}', 'required' => true, 'class' => 'erp-date-field')); ?> </div> <div class="row" data-selected="{{ data.termination_type }}"> <?php erp_html_form_input(array('label' => __('Termination Type', 'wp-erp'), 'name' => 'termination_type', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'required' => true, 'id' => 'termination_type', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_type())); ?> </div> <div class="row" data-selected="{{ data.termination_reason }}"> <?php erp_html_form_input(array('label' => __('Termination Reason', 'wp-erp'), 'name' => 'termination_reason', 'value' => '', 'class' => 'erp-hrm-select2', 'required' => true, 'type' => 'select', 'id' => 'termination_reason', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_reason())); ?> </div> <div class="row" data-selected="{{ data.eligible_for_rehire }}"> <?php erp_html_form_input(array('label' => __('Eligible for Rehire', 'wp-erp'), 'name' => 'eligible_for_rehire', 'value' => '', 'class' => 'erp-hrm-select2', 'required' => true, 'type' => 'select', 'id' => 'eligible_for_rehire', 'options' => array('' => __('- Select -', 'wp-erp')) + erp_hr_get_terminate_rehire_options())); ?> </div> <?php