49 lines
2.7 KiB
PHP
49 lines
2.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
Auth::routes();
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home');
|
|
Route::group(array('prefix' => 'admin', 'namespace' => 'Admin'), function()
|
|
{
|
|
Route::get('/', 'AdminPanelController@index')->name('admin');
|
|
Route::get('/users', 'AdminUsersController@index')->name('admin_users');
|
|
Route::get('/subjects', 'AdminSubjectsController@index')->name('admin_subjects');
|
|
Route::get('/rooms', 'AdminRoomsController@index')->name('admin_rooms');
|
|
Route::get('/classes', 'AdminClassesController@index')->name('admin_classes');
|
|
Route::get('/attendances', 'AdminAttendancesController@index')->name('admin_attendances');
|
|
|
|
Route::post('/add_user', 'AdminUsersController@add_user')->name('admin_add_user');
|
|
Route::post('/add_subject', 'AdminSubjectsController@add_subject')->name('admin_add_subject');
|
|
Route::post('/add_room/', 'AdminRoomsController@add_room')->name('admin_add_room');
|
|
Route::post('/add_classes/', 'AdminClassesController@add_classes')->name('admin_add_classes');
|
|
Route::post('/add_attendance', 'AdminAttendancesController@add_attendance')->name('admin_add_attendance');
|
|
|
|
Route::get('/delete_user/{user_id}', 'AdminUsersController@delete_user')->name('admin_delete_user');
|
|
Route::get('/delete_subject/{subject_id}', 'AdminSubjectsController@delete_subject')->name('admin_delete_subject');
|
|
Route::get('/delete_room/{room_id}', 'AdminRoomsController@delete_room')->name('admin_delete_room');
|
|
Route::get('/delete_classes/{classes_id}', 'AdminClassesController@delete_classes')->name('admin_delete_classes');
|
|
Route::get('/delete_attendance/{attendance_id}', 'AdminAttendancesController@delete_attendance')->name('admin_delete_attendance');
|
|
|
|
Route::get('/edit_user/{user_id}', 'AdminUsersController@edit_user')->name('admin_edit_user');
|
|
Route::get('/edit_subject/{subject_id}', 'AdminSubjectsController@edit_subject')->name('admin_edit_subject');
|
|
Route::get('/edit_room/{room_id}', 'AdminRoomsController@edit_room')->name('admin_edit_room');
|
|
Route::get('/edit_classes/{classes_id}', 'AdminClassesController@edit_classes')->name('admin_edit_classes');
|
|
Route::get('/edit_attendance/{attendance_id}', 'AdminAttendancesController@edit_attendance')->name('admin_edit_attendance');
|
|
});
|
|
|
|
|