name('home'); Route::get('/oai', ['as' => 'oai', 'uses' => 'Oai\RequestController@index']); Route::get('/dataset/create-step1', ['as' => 'dataset.create1', 'uses' => 'Publish\IndexController@createStep1']); Route::post('/dataset/store-step1', ['as' => 'dataset.store1', 'uses' => 'Publish\IndexController@storeStep1']); Route::get('/dataset/create-step2', ['as' => 'dataset.create2', 'uses' => 'Publish\IndexController@createStep2']); Route::post('/dataset/store-step2', ['as' => 'dataset.store2', 'uses' => 'Publish\IndexController@storeStep2']); Route::get('/dataset/create-step3', ['as' => 'dataset.create3', 'uses' => 'Publish\IndexController@createStep3']); Route::post('/dataset/store', ['as' => 'dataset.store', 'uses' => 'Publish\IndexController@store']); //=================================================setting users==================================================== Route::group(['middleware' => ['perm:settings']], function () { //Route::resource('users','UserController'); Route::get('settings/user', [ 'as' => 'user.index', 'uses' => 'Settings\UserController@index' ]); Route::get('settings/user/create', [ 'as' => 'user.create', 'uses' => 'Settings\UserController@create' ]); Route::post('settings/user/store', [ 'as' => 'user.store', 'uses' => 'Settings\UserController@store' ]); Route::get('settings/user/edit/{id}', [ 'as' => 'user.edit', 'uses' => 'Settings\UserController@edit' ]); Route::patch('settings/user/update/{id}', [ 'as' => 'user.update', 'uses' => 'Settings\UserController@update' ]); Route::get('settings/user/destroy/{id}', [ 'as' => 'user.destroy', 'uses' => 'Settings\UserController@destroy' ]); //Route::resource('users','RoleController'); Route::get('settings/role', [ 'as' => 'role.index', 'uses' => 'Settings\RoleController@index' ]); Route::get('settings/role/create', [ 'as' => 'role.create', 'uses' => 'Settings\RoleController@create' ]); Route::get('settings/role/edit/{id}', [ 'as' => 'role.edit', 'uses' => 'Settings\RoleController@edit' ]); Route::patch('settings/role/update/{id}', [ 'as' => 'role.update', 'uses' => 'Settings\RoleController@update' ]); }); //=================================================home==================================================== Route::get('/', [ 'as' => 'home.index', 'uses' => 'HomeController@index' ]); Route::get('/contact', [ 'as' => 'home.contact', 'uses' => 'HomeController@contact' ]); Route::get('/imprint', [ 'as' => 'home.imprint', 'uses' => 'HomeController@imprint' ]); Route::get('/about', [ 'as' => 'home.about', 'uses' => 'HomeController@about' ]); Route::get('/news', [ 'as' => 'home.news', 'uses' => 'HomeController@news' ]); Route::get('/dataset', [ 'as' => 'documents', 'uses' => 'PagesController@documents' ]); Route::get('/dataset/{id}', [ 'as' => 'document.show', 'uses' => 'PagesController@show' ]); //=================================================Crawlers==================================================== Route::get('sitelinks', [ 'as' => 'sitelinks.index', 'uses' => 'SitelinkController@index' ]); Route::get('sitelinks/list/{year}', 'SitelinkController@list')->name('sitelinks.list'); //=================================================solr search==================================================== Route::get('/index', [ 'as' => 'search.index', 'uses' => 'SearchController@index' ]); Route::post('/queries', [ 'as' => 'queries', 'uses' => 'SearchController@search' ]); Route::get('/queries/', [ 'as' => 'queries1', 'uses' => 'SearchController@search' ]); Route::get('/ping', 'SearchController@ping'); //=================================================borrow==================================================== Route::get('borrow', [ 'as' => 'borrow.borrow', 'uses' => 'BorrowController@index' ]); Route::post('borrow.post', [ 'as' => 'borrow.post', 'uses' => 'BorrowController@store' ]); Route::get('laporan', [ 'as' => 'borrow.report', 'uses' => 'BorrowController@report' ]); Route::get('pengembalian/{id}', [ 'as' => 'borrow.pengembalian', 'uses' => 'BorrowController@pengembalian' ]); Route::get('perpanjang/{id}', [ 'as' => 'borrow.perpanjang', 'uses' => 'BorrowController@perpanjang' ]); Route::get('history', [ 'as' => 'borrow.history', 'uses' => 'BorrowController@histori' ]); //=================================================setting collection============================================= Route::get('/settings/collection', [ 'as' => 'settings.collection', 'uses' => 'CollectionController@index' ]); Route::get('settings/collection/edit/{id}', [ 'as' => 'settings.collection.edit', 'uses' => 'CollectionController@edit' ]); Route::patch('settings/collection/edit/{id}', [ 'as' => 'settings.collection.update', 'uses' => 'CollectionController@update' ]); Route::get('settings/collection/delete/{id}', [ 'as' => 'settings.collection.delete', 'uses' => 'CollectionController@delete' ]); //========================================================================================================================== //=================================================setting project==================================================== Route::get('/settings/project', [ 'as' => 'settings.project', 'uses' => 'Settings\CategoryController@index' ]); Route::get('/settings/project/add', [ 'as' => 'settings.project.add', 'uses' => 'Settings\CategoryController@add' ]); Route::post('settings/project/add', [ 'as' => 'settings.project.post', 'uses' => 'Settings\CategoryController@store' ]); Route::get('settings/project/edit/{id}', [ 'as' => 'settings.project.edit', 'uses' => 'Settings\CategoryController@edit' ]); Route::patch('settings/project/edit/{id}', [ 'as' => 'settings.project.update', 'uses' => 'Settings\CategoryController@update' ]); Route::get('settings/project/delete/{id}', [ 'as' => 'settings.project.delete', 'uses' => 'Settings\CategoryController@delete' ]); //================================================================================================================== //=================================================setting shelf==================================================== Route::get('/settings/shelf', [ 'as' => 'settings.shelf', 'uses' => 'ShelfController@index' ]); Route::get('/settings/shelf/add', [ 'as' => 'settings.shelf.add', 'uses' => 'ShelfController@add' ]); Route::post('settings/shelf/add', [ 'as' => 'settings.shelf.post', 'uses' => 'ShelfController@store' ]); Route::get('settings/shelf/edit/{id}', [ 'as' => 'settings.shelf.edit', 'uses' => 'ShelfController@edit' ]); Route::patch('settings/shelf/edit/{id}', [ 'as' => 'settings.shelf.update', 'uses' => 'ShelfController@update' ]); Route::get('settings/shelf/delete/{id}', [ 'as' => 'settings.shelf.delete', 'uses' => 'ShelfController@delete' ]); //======================================================================================================= //=================================================setting license======================================= Route::get('/settings/license', [ 'as' => 'settings.license', 'uses' => 'Settings\LicenseController@index' ]); Route::get('settings/license/edit/{id}', [ 'as' => 'settings.license.edit', 'uses' => 'Settings\LicenseController@edit' ]); Route::patch('settings/license/edit/{id}', [ 'as' => 'settings.license.update', 'uses' => 'Settings\LicenseController@update' ]); //========================================================================================================= //=================================================setting periode========================================= Route::get('/settings/periode', [ 'as' => 'settings.periode', 'uses' => 'PeriodeController@index' ]); Route::get('settings/periode/edit/{id}', [ 'as' => 'settings.periode.edit', 'uses' => 'PeriodeController@edit' ]); Route::patch('settings/periode/edit/{id}', [ 'as' => 'settings.periode.update', 'uses' => 'PeriodeController@update' ]); //=================================================================================================== //=================================================setting person==================================== Route::get('/settings/person', [ 'as' => 'settings.person', 'uses' => 'Settings\PersonController@index' ]); Route::get('/settings/person/add', [ 'as' => 'settings.person.add', 'uses' => 'Settings\PersonController@add' ]); Route::post('settings/person/add', [ 'as' => 'settings.person.post', 'uses' => 'Settings\PersonController@store' ]); Route::get('settings/person/edit/{id}', [ 'as' => 'settings.person.edit', 'uses' => 'Settings\PersonController@edit' ]); Route::patch('settings/person/edit/{id}', [ 'as' => 'settings.person.update', 'uses' => 'Settings\PersonController@update' ]); Route::get('settings/person/delete/{id}', [ 'as' => 'settings.person.delete', 'uses' => 'Settings\PersonController@delete' ]); Route::get('settings/person/down/{id}', [ 'as' => 'settings.person.down', 'uses' => 'Settings\PersonController@down' ]); Route::get('settings/person/up/{id}', [ 'as' => 'settings.person.up', 'uses' => 'Settings\PersonController@up' ]); //============================================================================================================= //=================================================setting book================================================ Route::get('/settings/book', [ 'as' => 'settings.book', 'uses' => 'BookController@index' ]); Route::get('/settings/book/add', [ 'as' => 'settings.book.add', 'uses' => 'BookController@add' ]); Route::post('settings/book/add', [ 'as' => 'settings.book.post', 'uses' => 'BookController@store' ]); Route::get('settings/book/edit/{id}', [ 'as' => 'settings.book.edit', 'uses' => 'BookController@edit' ]); Route::patch('settings/book/edit/{id}', [ 'as' => 'settings.book.update', 'uses' => 'BookController@update' ]); Route::get('settings/book/delete/{id}', [ 'as' => 'settings.book.delete', 'uses' => 'BookController@delete' ]); //============================================================================================================= //=================================================setting dataset============================================= Route::get('settings/document', [ 'as' => 'settings.document', 'uses' => 'Settings\DatasetController@index' ]); Route::get('settings/document/{id}', [ 'as' => 'settings.document.show', 'uses' => 'Settings\DatasetController@show' ]); Route::get('settings/document/edit/{id}', [ 'as' => 'settings.document.edit', 'uses' => 'Settings\DatasetController@edit' ]); Route::patch('settings/document/update/{id}', [ 'as' => 'settings.document.update', 'uses' => 'Settings\DatasetController@update' ]); //=============================================================================================================== // Route::controllers([ // 'auth' => 'Auth\AuthController', // 'password' => 'Auth\PasswordController', // ]); //Auth::routes(); $this->get('login', 'Auth\LoginController@showLoginForm')->name('login'); $this->post('login', 'Auth\LoginController@login'); $this->get('logout', 'Auth\LoginController@logout')->name('logout'); // Registration Routes... $this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register'); $this->post('register', 'Auth\RegisterController@register'); // Password Reset Routes... $this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); $this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); $this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset'); $this->post('password/reset', 'Auth\ResetPasswordController@reset');