get('/', 'Home::index'); $routes->get('/', 'Auth::login'); $routes->post('/login', 'Auth::loginProcess', ['as' => 'login']); $routes->get('/register', 'Auth::register'); $routes->post('/register', 'Auth::registerProcess'); $routes->get('/logout', 'Auth::logout'); $routes->get('/admin/dashboard', 'Admin::dashboard'); $routes->get('/admin/doctors', 'Admin::doctors'); $routes->get('/admin/doctors/add', 'Admin::addDoctor'); $routes->post('/admin/doctors/add', 'Admin::storeDoctor'); $routes->get('/admin/doctors/edit/(:any)', 'Admin::editDoctor/$1'); $routes->post('/admin/doctors/edit/(:any)', 'Admin::updateDoctor/$1'); $routes->get('/admin/patients', 'Admin::patients'); $routes->get('/admin/patients/add', 'Admin::addPatient'); $routes->post('/admin/patients/add', 'Admin::storePatient'); $routes->get('/admin/patients/edit/(:any)', 'Admin::editPatient/$1'); $routes->post('/admin/patients/edit/(:any)', 'Admin::updatePatient/$1'); $routes->get('/admin/appointments', 'Admin::appointments'); $routes->get('/admin/appointment-preview', 'Admin::appointmentPreview'); $routes->post('/admin/appointments/create', 'Admin::createAppointment'); $routes->post('/admin/appointments/update-status', 'Admin::updateAppointmentStatus'); $routes->get('/admin/appointments/delete/(:num)', 'Admin::deleteAppointment/$1'); $routes->get('/admin/deleteDoctor/(:num)', 'Admin::deleteDoctor/$1'); $routes->get('/admin/deletePatient/(:num)', 'Admin::deletePatient/$1'); $routes->get('/patient/dashboard', 'Patient::dashboard'); $routes->post('/book-appointment', 'Patient::bookAppointment'); $routes->get('/doctor/dashboard', 'Doctor::dashboard'); $routes->get('/doctor/profile', 'Doctor::profile'); $routes->post('/doctor/profile', 'Doctor::profile'); $routes->post('/doctor/appointment/(:num)/accept', 'Doctor::accept/$1'); $routes->post('/doctor/appointment/(:num)/reject', 'Doctor::reject/$1'); $routes->get('/forgot-password', 'Auth::forgotPassword'); $routes->post('/forgot-password', 'Auth::processForgotPassword'); $routes->get('/reset-password/(:any)', 'Auth::resetPassword/$1'); $routes->post('/reset-password', 'Auth::processResetPassword'); $routes->post('/check-email', 'Admin::checkEmail'); $routes->get('admin/doctors/data', 'Admin::getDoctors'); $routes->get('admin/patients/data', 'Admin::getPatients'); $routes->get('admin/appointmentsData', 'Admin::appointmentsData'); $routes->get('/admin/activity-log', 'ActivityLog::index'); $routes->get('/admin/activity/analytics', 'ActivityLog::analytics'); $routes->post('admin/available-doctors', 'Admin::getAvailableDoctorsForPatient'); $routes->post('admin/check-doctor-status', 'Admin::checkDoctorStatus'); $routes->get('admin/specializations', 'Admin::getSpecializations'); $routes->post('admin/availability/save', 'AvailabilityController::save'); $routes->get('admin/availability/(:num)', 'AvailabilityController::getAvailability/$1'); $routes->get('admin/availability/diagnostic', 'AvailabilityController::diagnostic'); $routes->get('/admin/patients/add/(:num)', 'Admin::addPatient/$1'); $routes->get('admin/appointments/create-form/(:num)', 'Admin::appointmentForm/$1'); $routes->get('/admin/doctor-search', 'Admin::doctorSearch');