$this->Search_doctor_model->mark_freevisit_status($check_previous_book['id']);//MARKING FREE VISIT STATUS OF PREVIOUS BOOKING TO USED
$this->Search_doctor_model->mark_freevisit_status($check_previous_book['id']);//MARKING FREE VISIT STATUS OF PREVIOUS BOOKING TO USED
/*CODE FOR SENTING NOTIFICATION FOR FREE VISIT*/
$text='A new appointment was scheduled in the system, on '.date('d.m.Y',$book_start_time).' at '.date('H:i a',$book_start_time).', patient '.$userdata['name'];
$text='A new appointment was scheduled in the system, on '.date('d.m.Y',$booking_details['time_start']).' at '.date('H:i a',$booking_details['time_start']).', patient '.$patient_data['pt_name'];