Added breadcrumbs for bulkaudit, requested, and import history
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2f2b879d98
commit
3171c1b1c9
1 changed files with 21 additions and 13 deletions
|
@ -25,12 +25,11 @@ Route::group(
|
|||
|
||||
function () {
|
||||
|
||||
Route::get('bulkaudit',
|
||||
[AssetsController::class, 'quickScan']
|
||||
)
|
||||
Route::get('bulkaudit', [AssetsController::class, 'quickScan'])
|
||||
->name('assets.bulkaudit')
|
||||
->breadcrumbs(fn (Trail $trail) =>
|
||||
$trail->parent('home')->push(trans('general.assets'), route('hardware.index'))
|
||||
$trail->parent('hardware.index')
|
||||
->push(trans('general.bulkaudit'), route('asset.import-history'))
|
||||
);
|
||||
|
||||
Route::get('quickscancheckin', [AssetsController::class, 'quickScanCheckin'])
|
||||
|
@ -40,9 +39,12 @@ Route::group(
|
|||
->push('Quickscan Checkin', route('hardware/quickscancheckin'))
|
||||
);
|
||||
|
||||
Route::get('requested', [
|
||||
AssetsController::class, 'getRequestedIndex']
|
||||
)->name('assets.requested');
|
||||
Route::get('requested', [AssetsController::class, 'getRequestedIndex'])
|
||||
->name('assets.requested')
|
||||
->breadcrumbs(fn (Trail $trail) =>
|
||||
$trail->parent('hardware.index')
|
||||
->push(trans('admin/hardware/general.requested'), route('assets.requested'))
|
||||
);
|
||||
|
||||
Route::get('scan',
|
||||
[AssetsController::class, 'scan']
|
||||
|
@ -64,9 +66,12 @@ Route::group(
|
|||
[AssetsController::class, 'auditStore']
|
||||
)->name('asset.audit.store');
|
||||
|
||||
Route::get('history',
|
||||
[AssetsController::class, 'getImportHistory']
|
||||
)->name('asset.import-history');
|
||||
Route::get('history', [AssetsController::class, 'getImportHistory'])
|
||||
->name('asset.import-history')
|
||||
->breadcrumbs(fn (Trail $trail) =>
|
||||
$trail->parent('hardware.index')
|
||||
->push(trans('general.import-history'), route('asset.import-history'))
|
||||
);
|
||||
|
||||
Route::post('history',
|
||||
[AssetsController::class, 'postImportHistory']
|
||||
|
@ -155,9 +160,12 @@ Route::group(
|
|||
)->name('hardware/bulksave');
|
||||
|
||||
// Bulk checkout / checkin
|
||||
Route::get('bulkcheckout',
|
||||
[BulkAssetsController::class, 'showCheckout']
|
||||
)->name('hardware.bulkcheckout.show');
|
||||
Route::get('bulkcheckout', [BulkAssetsController::class, 'showCheckout'])
|
||||
->name('hardware.bulkcheckout.show')
|
||||
->breadcrumbs(fn (Trail $trail) =>
|
||||
$trail->parent('hardware.index')
|
||||
->push(trans('admin/hardware/general.bulk_checkout'), route('hardware.index'))
|
||||
);
|
||||
|
||||
Route::post('bulkcheckout',
|
||||
[BulkAssetsController::class, 'storeCheckout']
|
||||
|
|
Loading…
Add table
Reference in a new issue