public function mobile_leave_details()
 {
     $leave_type = Leave_left_model::find_by_employee_id_and_leave_type_id($this->input->post('emp_id'), $this->input->post('txtLeaveType'));
     $leaves = $leave_type->days;
     $data = array('leave_start' => $this->input->post('leaveStarts'), 'leave_end' => $this->input->post('leaveEnds'), 'days' => Leave_request_model::getLeaveDays($this->input->post('leaveStarts'), $this->input->post('leaveEnds')) - 1, 'employee_id' => $this->input->post('emp_id'), 'leave_left' => $leaves, 'date_approved' => 0, 'leave_status' => 'Pending', 'leave_type' => $this->input->post('txtLeaveType'), 'leave_reason' => $this->input->post('txtReason'));
     return $data;
 }