feat(logs): tambahkan route untuk System Logs

- Menambahkan route untuk mengakses System Logs.
- Menambahkan method 'index' dan 'datatable' pada SystemLogsController.
- Memperbarui konfigurasi breadcrumb untuk mencakup System Logs.
This commit is contained in:
Daeng Deni Mardaeni
2025-04-27 09:15:06 +07:00
parent 0aee1c58ed
commit cc98de144b
2 changed files with 21 additions and 12 deletions

View File

@@ -13,3 +13,8 @@
$trail->parent('logs');
$trail->push('Audit Logs', route('logs.audit.index'));
});
Breadcrumbs::for('logs.system', function (BreadcrumbTrail $trail) {
$trail->parent('logs');
$trail->push('System Logs', route('logs.system.index'));
});

View File

@@ -3,25 +3,29 @@
use Illuminate\Support\Facades\Route;
use Modules\Logs\Http\Controllers\AuditLogsController;
use Modules\Logs\Http\Controllers\LogsController;
use Modules\Logs\Http\Controllers\SystemLogsController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group([], function () {
Route::name('logs.')->prefix('logs')->group(function () {
Route::name('audit.')->prefix('audit')->group(function () {
Route::get('datatables', [AuditLogsController::class, 'datatable'])->name('datatables');
});
Route::resource('audit', AuditLogsController::class)->only(['index','delete']);
Route::resource('audit', AuditLogsController::class)->only(['index', 'delete']);
Route::get('system', [SystemLogsController::class, 'index'])->name('system.index');
Route::get('datatables', [SystemLogsController::class, 'datatable'])->name('system.datatables');
});
Route::resource('logs', LogsController::class);
Route::resource('logs', LogsController::class)->except('index');
});