Skip to content

A free open source IT asset/license management system

Merge branch 'develop' into features/18554-component-report

Marcus Moore5187f4bfd1c3
diff --cc routes/web.php
index 0fd7cddd89,0ecbffc0f4..de0a94a0d4
--- a/routes/web.php
+++ b/routes/web.php
@@@ -459,6 -457,11 +459,11 @@@ Route::group(['middleware' => ['auth']]
Route::group(['prefix' => 'reports', 'middleware' => ['auth']], function () {
+ Route::get('/', [ReportsController::class, 'index'])
+ ->name('reports.index')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
++ ->breadcrumbs(fn(Trail $trail) => $trail->parent('home')
+ ->push(trans('general.reports'), route('reports.index')));
+
Route::get('audit', [ReportsController::class, 'audit'])
->name('reports.audit')
->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
@@@ -498,36 -508,22 +510,40 @@@
->name('reports/export/licenses');
Route::get('accessories', [ReportsController::class, 'getAccessoryReport'])
- ->name('reports/accessories');
+ ->name('reports/accessories')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
++ ->breadcrumbs(fn(Trail $trail) => $trail->parent('home')
+ ->push(trans('general.reports'), route('reports.index'))
+ ->push(trans('general.accessory_report'), route('reports/accessories')));
Route::get('export/accessories', [ReportsController::class, 'exportAccessoryReport'])
->name('reports/export/accessories');
- Route::get('custom', [ReportsController::class, 'getCustomReport'])
- ->name('reports/custom')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
- ->push(trans('general.reports'), route('reports.index'))
- ->push(trans('general.custom_report'), route('reports/custom')));
+ Route::group(['prefix' => 'custom'], function () {
+ Route::get('/', [ReportsController::class, 'getCustomReport'])
+ ->name('reports/custom')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
++ ->breadcrumbs(fn(Trail $trail) => $trail->parent('home')
++ ->push(trans('general.reports'), route('reports.index'))
+ ->push(trans('general.custom_report'), route('reports/custom')));
+
+ Route::post('/', [ReportsController::class, 'postCustom'])
+ ->name('reports.post-custom');
- Route::post('custom', [ReportsController::class, 'postCustom'])
- ->name('reports.post-custom');
+ Route::get('accessory', [CustomAccessoryReportController::class, 'show'])
+ ->name('reports.custom.accessory')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
++ ->breadcrumbs(fn(Trail $trail) => $trail->parent('home')
+ ->push('Custom Accessory Report', route('reports.custom.accessory')));
+
+ Route::post('accessory', [CustomAccessoryReportController::class, 'run'])
+ ->name('reports.custom.accessory.run');
+
+ Route::get('component', [CustomComponentReportController::class, 'show'])
+ ->name('reports.custom.component')
- ->breadcrumbs(fn (Trail $trail) => $trail->parent('home')
++ ->breadcrumbs(fn(Trail $trail) => $trail->parent('home')
+ ->push('Custom Component Report', route('reports.custom.component')));
+
+ Route::post('component', [CustomComponentReportController::class, 'run'])
+ ->name('reports.custom.component.run');
+ });
Route::prefix('templates')
->group(function () {