Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedGamal905 committed Oct 30, 2024
1 parent b128f2f commit 3806613
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
})->middleware(['auth', 'verified'])->name('dashboard');

Route::middleware(['auth', 'role:super-admin'])->group(function () {
Route::resource('/roles', RoleController::class)->except('show');
Route::resource('/permissions', PermissionController::class)->except('show');
Route::resource('/classrooms', ClassroomController::class)->except('show');
Route::resource('/subjects', SubjectController::class)->except('show');
Route::resource('roles', RoleController::class)->except('show');
Route::resource('permissions', PermissionController::class)->except('show');
Route::resource('classrooms', ClassroomController::class)->except('show');
Route::resource('subjects', SubjectController::class)->except('show');
Route::get('/students', [StudentController::class, 'index'])->name('students.index');
Route::post('/students/{user}', [StudentController::class, 'assignClass'])->name('students.update');
Route::get('/teachers', [TeacherController::class, 'index'])->name('teachers.index');
Expand All @@ -38,8 +38,8 @@
});

Route::middleware(['auth', 'role:teacher'])->group(function () {
Route::resource('/lessons', LessonController::class)->only('index', 'create', 'destroy');
Route::resource('/exams', ExamController::class)->except('show');
Route::resource('lessons', LessonController::class)->only('index', 'create', 'destroy');
Route::resource('exams', ExamController::class)->except('show');
Route::get('/lessons/{lesson}/attendance', [AttendanceController::class, 'show'])->name('attendance.show');
Route::post('/lessons/{lesson}/attendance', [AttendanceController::class, 'store'])->name('attendance.store');
Route::get('/lessons/attendance', [AttendanceController::class, 'index'])->name('attendance.index');
Expand Down

0 comments on commit 3806613

Please sign in to comment.