<?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'] = 'Front';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['login']='Welcome/login';
$route['logout']='Welcome/logout';
$route['dashboard']='Welcome/dashboard';

$route['about-us']='Front/aboutus';
$route['checkout']='Front/check_out';
$route['why_us']='Front/whyus';
$route['fill_detail']='Front/filldetail';
$route['terms_condition']='Front/terms';
$route['contact-us']='Front/contactus';
$route['programe-detail/(:num)']='Front/programe_details/$1';
$route['programe']='Front/programes';
$route['child-details/(:num)']='Front/child_details/$1';
$route['change-stories-description/(:num)']='Front/change_stories_description/$1';
$route['waystogive/(:any)']='Front/waystogive/$1';

$route['sponser-now/(:num)']='Front/sponser_now/$1';
$route['cart-page']='Front/cart_page';
$route['cart_delete/(:any)']='Front/cart_delete/$1';
$route['change_cart_qty']='Front/change_cart_qty';
$route['donate-for-services/(:num)']="Front/donate_for_services/$1";
$route['update_service_cart/(:any)']='Front/update_service_cart/$1';
$route['donate_now_cart']='Front/donate_now_cart';
$route['donation-pricy']='Front/donation_pricy';
$route['order_preview']='Front/order_preview';

$route['direct-donate']='Front/direct_donate';
$route['paymentcancel']='Front/paymentcancel';
$route['successpayment']='Front/successpayment';
$route['failurepayment']='Front/failurepayment';

$route['final-pay']='Front/final_pay';
$route['cart-success']='Front/cart_success';
$route['cart-failure']='Front/cart_failure';


$route['signin']='Front/signin';
$route['signup']='Front/signup';
$route['user_profile']='Front/user_profile';
$route['my-child']='Front/my_child';
$route['my-donate-history']='Front/my_donate_history';
$route['program-update']='Front/program_update';
$route['change-password']='Front/change_password';
$route['edit-profile']='Front/edit_profile';
$route['user_logout']='Front/user_logout';
$route['forget-password']='Front/forget_password';

$route['enquiry']='Front/enquiry';
$route['tnc']='Front/tnc';
$route['package_enq']='Trip/package_enq';
$route['package_enq/(:num)']='Trip/package_enq/$1';

$route['tour/(:any)/(:num)']='Front/tour/$1/$2';
$route['packages/(:any)/(:num)/(:num)']='Front/packages/$1/$2/$3';
$route['package_details/(:any)']='Front/package_details/$1';

$route['howit']='Gallary/offer';
$route['howit/(:num)']='Gallary/offer/$1';

$route['category']='Category/index';
$route['add_category']='Category/add';
$route['edit_category/(:num)']='Category/edit/$1';


$route['add_destination']='Destination/add';
$route['view_destination']='Destination/index';
$route['view_destination/(:num)']='Destination/index/$1';
$route['edit_destination/(:num)']='Destination/edit/$1';


$route['add_slider']='SliderController/add_slider';
$route['view_slider']='SliderController/index';
$route['edit_slider/(:num)']='SliderController/edit_slider/$1';
$route['delete_slider/(:num)']='SliderController/delete_slider/$1';

$route['add_testimonial']='TestiController/add_testimonial';
$route['view_testimonial']='TestiController/view_testimonial';
$route['view_testimonial/(:num)']='TestiController/view_testimonial/$1';
$route['edit_testi/(:num)']='TestiController/edit_testi/$1';

$route['add_team']='Team/add';
$route['view_team']='Team/view';
$route['view_team/(:num)']='Team/view/$1';
$route['edit_team/(:num)']='Team/edit/$1';


$route['add_why']='Why/add';
$route['view_why']='Why/view';
$route['view_why/(:num)']='Why/view/$1';
$route['edit_why/(:num)']='Why/edit/$1';

$route['add_about']='About/add';
$route['view_about']='About/view';
$route['view_about/(:num)']='About/view/$1';
$route['edit_about/(:num)']='About/edit/$1';



$route['gal/add_image']='Gallary/add';
$route['gal']='Gallary/index';
$route['gal/(:num)']='Gallary/index/$1';
$route['gal/delete/(:any)']='Gallary/delete/$1';


$route['trip']='Trip/index';
$route['trip/(:num)']='Trip/index/$1';
$route['add_trip']='Trip/add';
$route['view_trip/(:num)']='Trip/view/$1';
$route['edit_trip/(:num)']='Trip/edit/$1';

$route['profile']='Welcome/profile';
$route['change_pass']='Welcome/change_pass';
$route['save_password']='Welcome/save_password';

$route['admin/slider']='Slider/index';
$route['admin/slider/add']='Slider/add';
$route['admin/slider/edit/(:num)']='Slider/edit/$1';
$route['admin/slider/delete/(:num)']='Slider/delete/$1';
$route['admin/slider/view/(:num)']='Slider/view/$1';

$route['admin/child']='Child/index';
$route['admin/child/add']='Child/add';
$route['admin/child/edit/(:num)']='Child/edit/$1';
$route['admin/child/delete/(:num)']='Child/delete/$1';
$route['admin/child/view/(:num)']='Child/view/$1';

$route['admin/programe']='Programe/index';
$route['admin/programe/add']='Programe/add';
$route['admin/programe/edit/(:num)']='Programe/edit/$1';
$route['admin/programe/delete/(:num)']='Programe/delete/$1';
$route['admin/programe/view/(:num)']='Programe/view/$1';


$route['admin/partnerspeak']='Partnerspeak/index';
$route['admin/partnerspeak/add']='Partnerspeak/add';
$route['admin/partnerspeak/edit/(:num)']='Partnerspeak/edit/$1';
$route['admin/partnerspeak/delete/(:num)']='Partnerspeak/delete/$1';
$route['admin/partnerspeak/view/(:num)']='Partnerspeak/view/$1';


$route['admin/events']='Events/index';
$route['admin/events/add']='Events/add';
$route['admin/events/edit/(:num)']='Events/edit/$1';
$route['admin/events/delete/(:num)']='Events/delete/$1';
$route['admin/events/view/(:num)']='Events/view/$1';

$route['admin/media']='Media/index';
$route['admin/media/add']='Media/add';
$route['admin/media/edit/(:num)']='Media/edit/$1';
$route['admin/media/delete/(:num)']='Media/delete/$1';
$route['admin/media/view/(:num)']='Media/view/$1';


$route['admin/resources']='Resources/index';
$route['admin/resources/add']='Resources/add';
$route['admin/resources/edit/(:num)']='Resources/edit/$1';
$route['admin/resources/delete/(:num)']='Resources/delete/$1';
$route['admin/resources/view/(:num)']='Resources/view/$1';

$route['admin/howwork']='Howwork/index';
$route['admin/howwork/add']='Howwork/add';
$route['admin/howwork/edit/(:num)']='Howwork/edit/$1';
$route['admin/howwork/delete/(:num)']='Howwork/delete/$1';
$route['admin/howwork/view/(:num)']='Howwork/view/$1';

$route['admin/whywork']='Whywork/index';
$route['admin/whywork/add']='Whywork/add';
$route['admin/whywork/edit/(:num)']='Whywork/edit/$1';
$route['admin/whywork/delete/(:num)']='Whywork/delete/$1';
$route['admin/whywork/view/(:num)']='Whywork/view/$1';

$route['admin/worksample']='Worksample/index';
$route['admin/worksample/add']='Worksample/add';
$route['admin/worksample/edit/(:num)']='Worksample/edit/$1';
$route['admin/worksample/delete/(:num)']='Worksample/delete/$1';
$route['admin/worksample/view/(:num)']='Worksample/view/$1';

$route['admin/users']='Users/index';
$route['admin/users/edit/(:num)']='Users/edit/$1';
$route['admin/users/delete/(:num)']='Users/delete/$1';
$route['admin/users/view/(:num)']='Users/view/$1';

$route['admin/subservices']='Subservices/index';
$route['admin/subservices/add']='Subservices/add';
$route['admin/subservices/edit/(:num)']='Subservices/edit/$1';
$route['admin/subservices/delete/(:num)']='Subservices/delete/$1';
$route['admin/subservices/view/(:num)']='Subservices/view/$1';

$route['admin/ourservices']='Ourservices/index';
$route['admin/ourservices/add']='Ourservices/add';
$route['admin/ourservices/edit/(:num)']='Ourservices/edit/$1';
$route['admin/ourservices/delete/(:num)']='Ourservices/delete/$1';
$route['admin/ourservices/view/(:num)']='Ourservices/view/$1';

$route['admin/pledgesupport']='PledgeSupport/index';
$route['admin/pledgesupport/add']='PledgeSupport/add';
$route['admin/pledgesupport/edit/(:num)']='PledgeSupport/edit/$1';
$route['admin/pledgesupport/delete/(:num)']='PledgeSupport/delete/$1';
$route['admin/pledgesupport/view/(:num)']='PledgeSupport/view/$1';

$route['admin/mystep']='Mystep/index';
$route['admin/mystep/add']='Mystep/add';
$route['admin/mystep/edit/(:num)']='Mystep/edit/$1';
$route['admin/mystep/delete/(:num)']='Mystep/delete/$1';
$route['admin/mystep/view/(:num)']='Mystep/view/$1';

$route['admin/myimpact']='Myimpact/index';
$route['admin/myimpact/add']='Myimpact/add';
$route['admin/myimpact/edit/(:num)']='Myimpact/edit/$1';
$route['admin/myimpact/delete/(:num)']='Myimpact/delete/$1';
$route['admin/myimpact/view/(:num)']='Myimpact/view/$1';

$route['admin/trustorganization']='Trustorganization/index';