<?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'] = "index/index";

$route['logout'] = 'index/logout';

$route['hapus_akun/(:any)/(:num)'] = 'akun/hapus_akun/$1/$2';
$route['data_user'] = 'akun/data_user_list';
$route['data_personil'] = 'akun/data_personil_list';
$route['tambah_akun/(:any)'] = 'akun/tambah_akun/$1';
$route['edit_akun/(:any)/(:num)'] = 'akun/edit_akun/$1/$2';
$route['save_akun/(:any)'] = 'akun/save_akun/$1';
$route['update_akun/(:any)/(:num)'] = 'akun/update_akun/$1/$2';

$route['set_data_uji'] = 'sampel/pendaftaran/set_data_uji';
$route['set_data_uji/(:num)'] = 'sampel/pendaftaran/set_data_uji/$1';

$route['set_data_sampel/(:num)'] = 'sampel/pendaftaran/set_data_sampel/$1';
$route['set_data_sampel/(:num)/(:num)'] = 'sampel/pendaftaran/set_data_sampel/$1/$2';

$route['permintaan_uji'] = 'sampel/pendaftaran';
$route['permintaan_uji/(:num)'] = 'sampel/pendaftaran/index/$1';
$route['permintaan_uji/sampel/(:num)'] = 'sampel/pendaftaran/detail_uji_sampel/$1';
$route['permintaan_uji/verifikasi/(:num)'] = 'sampel/pendaftaran/verifikasi/$1';
$route['permintaan_uji/verifikasi/(:num)/(:any)'] = 'sampel/pendaftaran/verifikasi/$1/$2';

$route['download_npps/(:num)/(:num)'] = 'download_dok/download_npps/$1/$2';
$route['download_npps_vp/(:num)/(:num)'] = 'download_dok/download_npps_vp/$1/$2';
$route['download_ttpp/(:num)/(:num)'] = 'download_dok/download_ttpp/$1/$2';
$route['download_kelengkapan_administrasi/(:num)/(:num)'] = 'download_dok/download_kelengkapan_administrasi/$1/$2';
$route['download_kelengkapan_administrasi_vp/(:num)/(:num)'] = 'download_dok/download_kelengkapan_administrasi_vp/$1/$2';

$route['disposisi'] = 'sampel/pengajuan';
$route['penyiapan_uji'] = 'sampel/pengajuan/penyiapan_uji';
$route['penyiapan_sampel/(:num)/(:num)/(:num)'] = 'sampel/pengajuan/penyiapan_sampel/$1/$2/$3';
$route['verifikasi_penyelia/(:num)/(:num)'] = 'sampel/pengajuan/verifikasi_penyelia/$1/$2';
$route['mulai_uji_analis/(:num)/(:num)'] = 'sampel/pengajuan/mulai_uji_sampel/$1/$2';
$route['lhu/(:num)/(:num)'] = 'sampel/pengajuan/lhu/$1/$2';
$route['lhp/(:num)/(:num)'] = 'sampel/pengajuan/lhp/$1/$2';
$route['tdn/(:num)/(:num)'] = 'sampel/pengajuan/tdn/$1/$2';
$route['kadar_air_total/(:num)/(:num)'] = 'sampel/pengajuan/kadar_air_total/$1/$2';

$route['pelayuan_sampel'] = 'sampel/pelayuan_sampel';
$route['pelayuan_sampel_update/(:num)/(:num)/(:num)']  = 'sampel/pelayuan_sampel/create_edit/$1/$2/$3';

$route['uji_analis/(:num)/(:num)'] = 'sampel/pengajuan/mulai_uji_sampel/$1/$2';

$route['sampel_uji/(:any)'] = 'sampel/analis/uji_analis/$1';
$route['batch_uji/(:any)'] = 'sampel/analis/buat_batch/$1';
$route['batch_uji/(:any)/(:any)'] = 'sampel/analis/buat_batch/$1/$2';
$route['save_batch_uji/(:any)'] = 'sampel/analis/save_batch_uji/$1';
$route['batch_list/(:any)'] = 'sampel/analis/batch_list/$1';
$route['kontrol_sampel_list/(:any)/(:any)'] = 'sampel/analis/kontrol_sampel_list/$1/$2';
$route['batch_sampel_list/(:any)/(:any)/(:any)'] = 'sampel/analis/batch_sampel_list/$1/$2/$3';
$route['deret_uji_list/(:any)/(:any)'] = 'sampel/analis/deret_uji_list/$1/$2';
$route['save_deret_uji/(:any)/(:any)'] = 'sampel/analis/save_deret_uji/$1/$2';
$route['deret_uji_grafik/(:any)/(:any)/(:any)'] = 'sampel/analis/deret_uji_grafik/$1/$2/$3';
$route['edit_batch_uji/(:any)/(:any)/(:any)'] = 'sampel/analis/edit_batch_uji/$1/$2/$3';
$route['update_batch_uji/(:any)/(:any)/(:any)'] = 'sampel/analis/update_batch_uji/$1/$2/$3';


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