fix route pengumuman

This commit is contained in:
rendygaafk 2025-05-04 15:19:22 +07:00
parent aa86766800
commit 43a61488c0
2 changed files with 5 additions and 8 deletions

View File

@ -114,7 +114,7 @@ class="dropdown-btn w-full text-left p-2 bg-gray-100 rounded-lg flex justify-bet
<li><a href="{{ route('bel.index') }}" <li><a href="{{ route('bel.index') }}"
class="block p-2 rounded-lg {{ request()->is('admin/bel') ? 'bg-blue-100 text-blue-600' : 'bg-gray-50 text-gray-800' }}">Bel</a> class="block p-2 rounded-lg {{ request()->is('admin/bel') ? 'bg-blue-100 text-blue-600' : 'bg-gray-50 text-gray-800' }}">Bel</a>
</li> </li>
<li><a href="{{ route('announcement.index') }}" <li><a href="{{ route('admin.announcement.index') }}"
class="block p-2 rounded-lg {{ request()->is('admin/pengumuman') ? 'bg-blue-100 text-blue-600' : 'bg-gray-50 text-gray-800' }}">Pengumuman</a> class="block p-2 rounded-lg {{ request()->is('admin/pengumuman') ? 'bg-blue-100 text-blue-600' : 'bg-gray-50 text-gray-800' }}">Pengumuman</a>
</li> </li>
</ul> </ul>

View File

@ -108,12 +108,9 @@
// Announcement System // Announcement System
Route::prefix('announcement')->controller(AnnouncementController::class)->group(function () { Route::prefix('announcement')->controller(AnnouncementController::class)->group(function () {
Route::get('/', 'index')->name('announcement.index'); Route::get('/', 'index')->name('admin.announcement.index');
Route::post('/', 'store')->name('announcement.store'); Route::get('/history', 'history')->name('admin.announcement.history');
Route::get('/history', 'history')->name('announcement.history'); Route::post('/', 'store')->name('admin.announcement.store');
Route::get('/{announcement}', 'show')->name('announcement.show');
Route::delete('/{announcement}', 'destroy')->name('announcement.destroy');
Route::post('/tts-preview', 'ttsPreview')->name('announcement.tts-preview');
}); });
}); });
}); });