name('home'); Route::get('/admin', 'AdminPanelController@index')->name('admin'); Route::group(array('prefix' => 'admin'), function() { Route::get('/', 'AdminPanelController@index')->name('admin'); Route::get('/users', 'AdminPanelController@users')->name('admin_users'); Route::get('/subjects', 'AdminPanelController@subjects')->name('admin_subjects'); Route::get('/rooms', 'AdminPanelController@rooms')->name('admin_rooms'); Route::get('/classes', 'AdminPanelController@classes')->name('admin_classes'); Route::get('/attendances', 'AdminPanelController@attendances')->name('admin_attendances'); Route::get('/delete_user/{user_id}', 'AdminPanelController@delete_user')->name('admin_delete_user'); Route::get('/delete_subject/{subject_id}', 'AdminPanelController@delete_subject')->name('admin_delete_subject'); Route::get('/delete_room/{room_id}', 'AdminPanelController@delete_room')->name('admin_delete_room'); Route::get('/delete_classes/{classes_id}', 'AdminPanelController@delete_classes')->name('admin_delete_classes'); Route::get('/delete_attendance/{attendance_id}', 'AdminPanelController@delete_attendance')->name('admin_delete_attendance'); Route::post('/add_user', 'AdminPanelController@add_user')->name('admin_add_user'); Route::post('/add_subject', 'AdminPanelController@dadd_subject')->name('admin_add_subject'); Route::post('/add_room/', 'AdminPanelController@dadd_room')->name('admin_add_room'); Route::post('/add_classes/', 'AdminPanelController@dadd_classes')->name('admin_add_classes'); Route::post('/add_attendance', 'AdminPanelController@add_attendance')->name('admin_add_attendance'); });