<?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:
|
|	http://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']                            = 'Admin';
$route['json_data']                                     = "Json_data";

$route['admin']                                         = "Admin";
$route['login']                                         = 'Admin/login';
$route['admin_login']                                   = 'Admin/admin_login';
$route['dashboard']                                     = 'Admin/dashboard';
$route['director_dashboard']                            = 'Admin/director_dashboard';
$route['admin_logout']                                  = 'Admin/admin_logout';
$route['user_privileges']                               = 'Admin/user_privileges';
$route['change_user_privilege_status']                  = "Admin/change_user_privilege_status";
$route['user_module_privileges']                        = 'Admin/user_module_privileges';

$route['admin_module_update']                           = 'Admin/admin_module_update';

$route['system_users']                                  = 'Admin/system_users';
$route['change_user_status']                            = "Admin/change_user_status";
$route['view_user']                                     = "Admin/view_user";

$route['save_edit_user_details']                        = 'Admin/save_edit_user_details';
$route['change_user_password']                          = 'Admin/change_user_password';
$route['save_add_user_details']                         = 'Admin/save_add_user_details';
$route['check_username_exist_add']                      = 'Admin/check_username_exist_add';
$route['check_username_exist_edit']                     = 'Admin/check_username_exist_edit';

$route['customers']                                     = 'Admin/customers';
$route['change_customer_status']                        = "Admin/change_customer_status";
$route['save_add_customer_details']                     = "Admin/save_add_customer_details";
$route['view_customer']                                 = "Admin/view_customer";
$route['save_edit_customer_details']                    = 'Admin/save_edit_customer_details';

$route['view_payments']                                 = 'Admin/view_payments';

$route['sales']                                         = 'Admin/sales';
$route['do_sales']                                      = 'Admin/do_sales';
$route['ajax_get_customer_details']                     = 'Admin/ajax_get_customer_details';
$route['ajax_get_last_added_stock_items']               = 'Admin/ajax_get_last_added_stock_items';
$route['save_do_sale']                                  = 'Admin/save_do_sale';
$route['view_sale']                                     = 'Admin/view_sale';
$route['save_make_normal_payment']                      = 'Admin/save_make_normal_payment';
$route['save_make_fixing_payment']                      = 'Admin/save_make_fixing_payment';
$route['save_return_sale']                              = 'Admin/save_return_sale';
$route['save_sale_discount']                            = 'Admin/save_sale_discount';
$route['delete_sale']                                   = 'Admin/delete_sale';
$route['print_sale']                                    = 'Admin/print_sale';
$route['view_returned_sale']                            = 'Admin/view_returned_sale';
$route['print_returned_sale']                           = 'Admin/print_returned_sale';

$route['box_sales']                                     = 'Admin/box_sales';
$route['do_box_sales']                                  = 'Admin/do_box_sales';
$route['save_do_box_sale']                              = 'Admin/save_do_box_sale';
$route['view_box_sale']                                 = 'Admin/view_box_sale';
$route['save_box_sale_discount']                        = 'Admin/save_box_sale_discount';
$route['delete_box_sale']                               = 'Admin/delete_box_sale';
$route['print_box_sale']                                = 'Admin/print_box_sale';
$route['save_make_normal_box_payment']                  = 'Admin/save_make_normal_box_payment';
$route['save_make_fixing_box_payment']                  = 'Admin/save_make_fixing_box_payment';
$route['save_return_box_sale']                          = 'Admin/save_return_box_sale';
$route['view_returned_box_sale']                        = 'Admin/view_returned_box_sale';
$route['print_returned_box_sale']                       = 'Admin/print_returned_box_sale';

$route['returned_sales']                                = 'Admin/returned_sales';
$route['view_returned_sales']                           = 'Admin/view_returned_sales';

$route['debtors']                                       = 'Admin/debtors';
$route['view_debtor']                                   = 'Admin/view_debtor';
$route['save_make_normal_debtor_payment']               = 'Admin/save_make_normal_debtor_payment';
$route['save_make_fixing_debtor_payment']               = 'Admin/save_make_fixing_debtor_payment';

$route['box_debtors']                                   = 'Admin/box_debtors';
$route['view_box_debtor']                               = 'Admin/view_box_debtor';
$route['save_make_normal_debtor_box_payment']           = 'Admin/save_make_normal_debtor_box_payment';
$route['save_make_fixing_debtor_box_payment']           = 'Admin/save_make_fixing_debtor_box_payment';

$route['bank_accounts']                                 = 'Admin/bank_accounts';
$route['save_add_bank_account_details']                 = 'Admin/save_add_bank_account_details';
$route['save_edit_bank_account_details']                = 'Admin/save_edit_bank_account_details';
$route['change_bank_account_status']                    = 'Admin/change_bank_account_status';
$route['view_bank_account']                             = 'Admin/view_bank_account';

$route['get_monthly_collection_graph_data']             = 'Admin/get_monthly_collection_graph_data';
$route['get_last_daily_audit']                          = 'Admin/get_last_daily_audit';

$route['cheques']                                       = 'Admin/cheques';
$route['view_cheque']                                   = 'Admin/view_cheque';
$route['save_cheque_action']                            = "Admin/save_cheque_action";
$route['view_cheque_details_to_submit']                 = "Admin/view_cheque_details_to_submit";

$route['stock_items']                                   = 'Admin/stock_items';
$route['save_add_stock_item_details']                   = 'Admin/save_add_stock_item_details';
$route['save_edit_stock_item_details']                  = 'Admin/save_edit_stock_item_details';
$route['change_stock_item_status']                      = 'Admin/change_stock_item_status';
$route['view_stock_item']                               = 'Admin/view_stock_item';

$route['rates']                                         = 'Admin/rates';
$route['view_rate']                                     = 'Admin/view_rate';
$route['save_change_rate_item']                         = "Admin/save_change_rate_item";

$route['save_add_previous_debts']                       = "Admin/save_add_previous_debts";

$route['expense_categories']                            = 'Admin/expense_categories';
$route['get_bank_details_by_acc_type']                  = 'Admin/get_bank_details_by_acc_type';
$route['save_add_expense_category_details']             = 'Admin/save_add_expense_category_details';
$route['save_edit_expense_category_details']            = 'Admin/save_edit_expense_category_details';
$route['change_expense_category_status']                = 'Admin/change_expense_category_status';
$route['view_expense_category']                         = 'Admin/view_expense_category';

$route['expenses']                                      = 'Admin/expenses';
$route['save_add_expense_details']                      = 'Admin/save_add_expense_details';
$route['view_expense']                                  = 'Admin/view_expense';
$route['save_add_expense_admin_remarks']                = 'Admin/save_add_expense_admin_remarks';

$route['creditors']                                     = 'Admin/creditors';
$route['save_add_creditor_details']                     = "Admin/save_add_creditor_details";
$route['change_creditor_status']                        = "Admin/change_creditor_status";
$route['view_creditor']                                 = 'Admin/view_creditor';
$route['save_edit_creditor_details']                    = "Admin/save_edit_creditor_details";
$route['save_add_previous_credits']                     = "Admin/save_add_previous_credits";

$route['approvals']                                     = "Admin/approvals";
$route['change_approval_status']                        = "Admin/change_approval_status";
$route['change_this_approval_status']                   = "Admin/change_this_approval_status";
$route['get_pending_approvals_count']                   = "Admin/get_pending_approvals_count";

$route['una']                                           = "Admin/una";
$route['add_una']                                       = "Admin/add_una";
$route['ajax_get_creditor_details']                     = "Admin/ajax_get_creditor_details";
$route['save_add_una']                                  = 'Admin/save_add_una';
$route['view_una']                                      = 'Admin/view_una';
$route['save_edit_una']                                 = 'Admin/save_edit_una';
$route['view_una_payments']                             = 'Admin/view_una_payments';
$route['save_add_una_admin_remarks']                    = 'Admin/save_add_una_admin_remarks';

$route['una_settlements']                               = "Admin/una_settlements";
$route['save_settle_una']                               = "Admin/save_settle_una";

$route['creditor_settlements']                          = "Admin/creditor_settlements";
$route['save_settle_creditor']                          = "Admin/save_settle_creditor";
$route['view_creditor_account']                         = "Admin/view_creditor_account";
$route['view_creditor_payment']                         = "Admin/view_creditor_payment";

$route['una_creditor_settlements']                      = "Admin/una_creditor_settlements";
$route['save_una_settle_creditor']                      = "Admin/save_una_settle_creditor";
$route['ajax_get_una_to_settle']                        = 'Admin/ajax_get_una_to_settle';

$route['stock_balances']                                = 'Admin/stock_balances';
$route['view_stock_balance']                            = 'Admin/view_stock_balance';
$route['save_change_stock_balance']                     = "Admin/save_change_stock_balance";

$route['daily_audits']                                  = 'Admin/daily_audits';
$route['save_add_daily_audit_details']                  = 'Admin/save_add_daily_audit_details';
$route['save_edit_daily_audit_details']                 = 'Admin/save_edit_daily_audit_details';
$route['change_daily_audit_status']                     = 'Admin/change_daily_audit_status';
$route['view_daily_audit']                              = 'Admin/view_daily_audit';

$route['other_income']                                  = 'Admin/other_income';
$route['save_add_other_income_details']                 = 'Admin/save_add_other_income_details';
$route['view_other_income']                             = 'Admin/view_other_income';

$route['save_withdraw_cash']                            = 'Admin/save_withdraw_cash';

$route['24k_customers']                                 = 'Admin/twofourk_customers';
$route['change_24k_customer_status']                    = "Admin/change_24k_customer_status";
$route['save_add_24k_customer_details']                 = "Admin/save_add_24k_customer_details";
$route['view_24k_customer']                             = "Admin/view_24k_customer";
$route['save_edit_24k_customer_details']                = 'Admin/save_edit_24k_customer_details';

$route['save_add_previous_debts_24k_sale']              = "Admin/save_add_previous_debts_24k_sale";

$route['view_24k_payments']                             = 'Admin/view_24k_payments';

$route['24k_sales']                                     = 'Admin/twofourk_sales';
$route['do_24k_sales']                                  = 'Admin/do_24k_sales';
$route['ajax_get_24k_customer_details']                 = 'Admin/ajax_get_24k_customer_details';
$route['save_24k_do_sale']                              = 'Admin/save_24k_do_sale';
$route['view_24k_sale']                                 = 'Admin/view_24k_sale';
$route['save_make_24k_normal_payment']                  = 'Admin/save_make_24k_normal_payment';
$route['delete_24k_sale']                               = 'Admin/delete_24k_sale';

$route['stock_item_categories']                         = 'Admin/stock_item_categories';
$route['save_add_stock_item_category_details']          = 'Admin/save_add_stock_item_category_details';
$route['save_edit_stock_item_category_details']         = 'Admin/save_edit_stock_item_category_details';
$route['change_expense_category_status']                = 'Admin/change_expense_category_status';
$route['view_stock_item_category']                      = 'Admin/view_stock_item_category';

$route['suppliers']                                     = 'Admin/suppliers';
$route['change_supplier_status']                        = "Admin/change_supplier_status";
$route['save_add_supplier_details']                     = "Admin/save_add_supplier_details";
$route['view_supplier']                                 = "Admin/view_supplier";
$route['save_edit_supplier_details']                    = 'Admin/save_edit_supplier_details';

$route['carriers']                                      = 'Admin/carriers';
$route['change_carrier_status']                         = "Admin/change_carrier_status";
$route['save_add_carrier_details']                      = "Admin/save_add_carrier_details";
$route['view_carrier']                                  = "Admin/view_carrier";
$route['save_edit_carrier_details']                     = 'Admin/save_edit_carrier_details';

$route['grns']                                          = 'Admin/grns';
$route['do_purchases']                                  = 'Admin/do_purchases';
$route['ajax_get_carrier_details']                      = 'Admin/ajax_get_carrier_details';
$route['ajax_get_pending_purchase_supplier_invoices']   = 'Admin/ajax_get_pending_purchase_supplier_invoices';
$route['ajax_get_invoice_details_purchase']             = 'Admin/ajax_get_invoice_details_purchase';
$route['save_do_purchase']                              = 'Admin/save_do_purchase';
$route['view_purchase']                                 = 'Admin/view_purchase';
$route['save_make_carrier_charges_payment']             = 'Admin/save_make_carrier_charges_payment';

$route['reports']                                       = 'Reports/reports';
$route['dxb_sales_report']                              = 'Reports/dxb_sales_report';
$route['view_dxb_sales_report']                         = 'Reports/view_dxb_sales_report';
$route['download_dxb_sales_report']                     = 'Reports/download_dxb_sales_report';
$route['box_sales_report']                              = 'Reports/box_sales_report';
$route['view_box_sales_report']                         = 'Reports/view_box_sales_report';
$route['download_box_sales_report']                     = 'Reports/download_box_sales_report';
$route['dxb_debtors_detailed_report']                   = 'Reports/dxb_debtors_detailed_report';
$route['download_dxb_debtors_detailed_report']          = 'Reports/download_dxb_debtors_detailed_report';
$route['dxb_debtors_aging_report']                      = 'Reports/dxb_debtors_aging_report';
$route['download_dxb_debtors_aging_report']             = 'Reports/download_dxb_debtors_aging_report';
$route['dxb_cash_logs_report']                          = 'Reports/dxb_cash_logs_report';
$route['download_dxb_cash_logs_report']                 = 'Reports/download_dxb_cash_logs_report';
$route['sales_return_report']                           = 'Reports/sales_return_report';
$route['download_sales_return_report']                 	= 'Reports/download_sales_return_report';
$route['24k_sales_report']                              = 'Reports/twofourk_sales_report';
$route['download_24k_sales_report']                     = 'Reports/download_24k_sales_report';

$route['dxb_sales_receipts_report']                     = 'Reports/dxb_sales_receipts_report';

$route['404_override']                                  = '';
$route['translate_uri_dashes']                          = FALSE;
