fix route pengumuman
This commit is contained in:
parent
aa86766800
commit
43a61488c0
|
@ -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>
|
||||||
|
|
|
@ -103,17 +103,14 @@
|
||||||
Route::get('/', 'history')->name('bel.history.index');
|
Route::get('/', 'history')->name('bel.history.index');
|
||||||
Route::get('/filter', 'filterHistory')->name('bel.history.filter');
|
Route::get('/filter', 'filterHistory')->name('bel.history.filter');
|
||||||
Route::delete('/{id}', 'destroy')->name('bel.history.destroy');
|
Route::delete('/{id}', 'destroy')->name('bel.history.destroy');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// 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');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue