<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	https://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
|	$route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples:	my-controller/index	-> my_controller/index
|		my-controller/my-method	-> my_controller/my_method
*/
$route['default_controller'] = 'home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

/* Admin routes */
$route['admin/dashboard'] = 'admin_profile/index';
$route['admin/change-password'] = 'admin_profile/profile';
$route['admin/add-batch'] = 'admin_profile/add_batch';
$route['admin/add-batch/(:any)'] = 'admin_profile/add_batch/$1';
$route['admin/batch-manage'] = 'admin_profile/batch_manage';
$route['admin/student-manage'] = 'admin_profile/student_manage';
$route['admin/add-student'] = 'admin_profile/add_student';
$route['admin/add-student/(:any)'] = 'admin_profile/add_student/$1';
$route['admin/subject-manage'] = 'admin_profile/subject_manage';
$route['admin/question-manage'] = 'admin_profile/question_manage';
$route['admin/notice-manage'] = 'admin_profile/notice_manage';
$route['admin/vacancy-manage'] = 'admin_profile/vacancy_manage';
$route['admin/video-manage'] = 'admin_profile/video_manage';
$route['admin/timezone'] = 'admin_profile/timezone';
$route['admin/teacher-manage'] = 'admin_profile/teacher_manage';
$route['admin/teacher-progress/(:any)'] = 'admin_profile/teacher_progress/$1';
$route['admin/teacher-academic-record/(:any)'] = 'admin_profile/teacher_academic_record/$1';
$route['admin/extra-classes'] = 'admin_profile/extra_classes';
$route['admin/create-paper'] = 'admin_profile/create_exam';
$route['admin/exam-manage'] = 'admin_profile/exam_manage';
$route['admin/practice-result'] = 'admin_profile/practice_result';
$route['admin/mock-result'] = 'admin_profile/mock_result';
$route['admin/view-paper/(:any)'] = 'admin_profile/view_paper/$1';
$route['admin/student-notice/(:any)'] = 'admin_profile/student_notice/$1';
$route['admin/teacher-notice/(:any)'] = 'admin_profile/teacher_notice/$1';
$route['admin/answer-sheet/(:any)/(:any)'] = 'admin_profile/answer_sheet/$1/$2';
$route['admin/gallery-manage'] = 'admin_profile/gallery_manage';
$route['admin/site-settings'] = 'admin_profile/site_settings';
$route['admin/manage-student-leave'] = 'admin_profile/manage_student_leave';
$route['admin/manage-teacher-leave'] = 'admin_profile/manage_teacher_leave';
$route['admin/student-progress/(:any)'] = 'admin_profile/student_progress/$1';
$route['admin/student-academic-record/(:any)'] = 'admin_profile/student_academic_record/$1';
$route['admin/live-class'] = 'admin_profile/live_class';
$route['admin/start-class'] = 'admin_profile/start_class';
$route['admin/end_metting/(:any)'] = 'admin_profile/end_metting/$1';
$route['admin/live-class-history'] = 'admin_profile/live_class_history';
$route['admin/student-attendance/(:any)'] = 'admin_profile/student_attendance/$1';
$route['admin/student-attendance-extra-class/(:any)'] = 'admin_profile/student_attendance_extra_class/$1';

$route['admin/certificate'] = 'admin_profile/certificate';
$route['admin/privacy-policy'] = 'admin_profile/privacy_policy';
$route['admin/view-certificate'] = 'admin_profile/view_certificate';
$route['admin/doubts-class/(:any)'] = 'admin_profile/doubts_class/$1';
$route['admin/doubts-ask/(:any)'] = 'admin_profile/doubts_ask/$1';
$route['admin/payment-history'] = 'admin_profile/payment_history';
$route['admin/payment-settings'] = 'admin_profile/payment_settings';
$route['admin/language-settings'] = 'admin_profile/language_settings';
$route['admin/email-settings'] = 'admin_profile/email_settings';
$route['admin/blog-manage'] = 'admin_profile/blog_manage';
$route['admin/blog-reply/(:any)'] = 'admin_profile/blog_reply/$1';
$route['admin/add-question'] = 'admin_profile/add_question';
$route['admin/add-question/(:any)'] = 'admin_profile/add_question/$1';
$route['admin/doubts-classes'] = 'admin_profile/student_doubts_class';


/* Teacher routes */
$route['teacher/add-question'] = 'teacher_profile/add_question';
$route['teacher/add-question/(:any)'] = 'teacher_profile/add_question/$1';
$route['teacher/dashboard'] = 'teacher_profile/index';
$route['teacher/profile'] = 'teacher_profile/profile';
$route['teacher/video-manage'] = 'teacher_profile/video_manage';
$route['teacher/question-manage'] = 'teacher_profile/question_manage';
$route['teacher/exam-manage'] = 'teacher_profile/exam_manage';
$route['teacher/view-paper/(:any)'] = 'teacher_profile/view_paper/$1';
$route['teacher/practice-result'] = 'teacher_profile/practice_result';
$route['teacher/mock-result'] = 'teacher_profile/mock_result';
$route['teacher/extra-classes'] = 'teacher_profile/extra_classes';
$route['teacher/homework-manage'] = 'teacher_profile/homework_manage';
$route['teacher/homework-manage/(:any)'] = 'teacher_profile/homework_manage/$1';
$route['teacher/notice'] = 'teacher_profile/notice';
$route['teacher/progress'] = 'teacher_profile/progress';
$route['teacher/academic-record'] = 'teacher_profile/academic_record';
$route['teacher/student-details'] = 'teacher_profile/student_details';
$route['teacher/student-notice/(:any)'] = 'teacher_profile/student_notice/$1';
$route['teacher/answer-sheet/(:any)/(:any)'] = 'teacher_profile/answer_sheet/$1/$2';
$route['teacher/apply-leave'] = 'teacher_profile/apply_leave';
$route['teacher/live-class'] = 'teacher_profile/live_class';
$route['teacher/start_live_class'] = 'teacher_profile/start_live_class';
$route['teacher/student-progress/(:any)'] = 'teacher_profile/student_progress/$1';
$route['teacher/student-academic-record/(:any)'] = 'teacher_profile/student_academic_record/$1';
$route['teacher/create-exam'] = 'teacher_profile/create_exam';
$route['teacher/start-class'] = 'teacher_profile/start_class';
$route['teacher/end_metting/(:any)'] = 'teacher_profile/end_metting/$1';
$route['teacher/student-attendance/(:any)'] = 'teacher_profile/student_attendance/$1';
$route['teacher/student-attendance-extra-class/(:any)'] = 'teacher_profile/student_attendance_extra_class/$1';
$route['teacher/doubts-class'] = 'teacher_profile/student_doubts_class';
$route['teacher/doubts-ask/(:any)'] = 'teacher_profile/doubts_ask/$1';


/* Front End Routes */
$route['login'] = 'home/login';
$route['forgot-password'] = 'home/forgot_password';
$route['courses-details/(:any)'] = 'home/courses_details/$1';
$route['enroll-now/(:any)'] = 'home/enroll_now/$1';
$route['success'] = 'home/paypal_success';
$route['paypal-ipn'] = 'home/paypal_ipn';
$route['cancel'] = 'home/paypal_cancel';
$route['buy-now/(:any)'] = 'home/paypal_form/$1';
$route['privacy-policy'] = 'home/privacypolicy';
$route['privacyandpolicy'] = 'home/privacyandpolicy';
