[Mahasiswa] Pembaruan Laman dan Deleted Pengumuman

This commit is contained in:
Ariyutta
2026-11-19 14:46:42 +07:00
parent 4b096db543
commit d7a0aad663
30 changed files with 138 additions and 305 deletions
+1 -4
View File
@@ -7,7 +7,6 @@ use App\Http\Controllers\Account\SwitchRoleController;
use App\Http\Controllers\Auth\AuthenticatedSessionController;
use App\Http\Controllers\DashboardRedirectController;
use App\Http\Controllers\KalenderController;
use App\Http\Controllers\PengumumanController;
use App\Http\Middleware\EnsureLegacyMenuAccess;
use Illuminate\Support\Facades\Route;
@@ -28,12 +27,10 @@ Route::middleware(['auth', 'active'])->group(function () {
Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
Route::post('peran', SwitchRoleController::class)->name('peran.ganti');
// Halaman bersama semua role (tanpa pembatasan role): akun, pengumuman, kalender akademik.
// Halaman bersama semua role (tanpa pembatasan role): akun, kalender akademik.
Route::get('akun/profil', [ProfileController::class, 'show'])->name('akun.profil');
Route::get('akun/kata-sandi', [PasswordController::class, 'edit'])->name('akun.password');
Route::put('akun/kata-sandi', [PasswordController::class, 'update'])->name('akun.password.update');
Route::get('pengumuman', [PengumumanController::class, 'index'])->name('pengumuman.index');
Route::get('pengumuman/{id}', [PengumumanController::class, 'show'])->whereNumber('id')->name('pengumuman.show');
Route::get('kalender-akademik', KalenderController::class)->name('kalender.index');
// Setiap role hanya boleh masuk ke grupnya sendiri (403 selain itu).