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') }}"
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><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>
</li>
</ul>

View File

@ -103,17 +103,14 @@
Route::get('/', 'history')->name('bel.history.index');
Route::get('/filter', 'filterHistory')->name('bel.history.filter');
Route::delete('/{id}', 'destroy')->name('bel.history.destroy');
});
});
});
// Announcement System
Route::prefix('announcement')->controller(AnnouncementController::class)->group(function () {
Route::get('/', 'index')->name('announcement.index');
Route::post('/', 'store')->name('announcement.store');
Route::get('/history', 'history')->name('announcement.history');
Route::get('/{announcement}', 'show')->name('announcement.show');
Route::delete('/{announcement}', 'destroy')->name('announcement.destroy');
Route::post('/tts-preview', 'ttsPreview')->name('announcement.tts-preview');
Route::get('/', 'index')->name('admin.announcement.index');
Route::get('/history', 'history')->name('admin.announcement.history');
Route::post('/', 'store')->name('admin.announcement.store');
});
});
});