PENDING
"; }else if($fetch['status']=='DRA'){ $fetch['status'] = "Completed
"; }else if($fetch['status']=='CANCELLED'){ $fetch['status'] = "Cancelled
"; }else if($fetch['status']==''){ $fetch['status'] = "Vacant
"; } array_push($data ,array( 'id' => $fetch['doc_slot_id'], 'app_type' => $fetch['app_type'], 'status' => $fetch['status'], 'date' => date_format(date_create($fetch['slot_date']), "d-m-Y ") , 'app_count'=>$fetch['count'], 'doctor_name' =>$fetch['emp_id'], 'time' => $fetch['time'], )); } $data['count']=$count; error_log('apps' . print_r($data, true)); echo json_encode($data);