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/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->get('/admin/dashboard', 'Admin::dashboard'); $routes->post('/check-email', 'Admin::checkEmail'); $routes->get('admin/doctors/data', 'Admin::getDoctors'); $routes->get('admin/patients/data', 'Admin::getPatients');