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 () {
|
function () {
|
||||||
|
|
||||||
Route::get('bulkaudit',
|
Route::get('bulkaudit', [AssetsController::class, 'quickScan'])
|
||||||
[AssetsController::class, 'quickScan']
|
|
||||||
)
|
|
||||||
->name('assets.bulkaudit')
|
->name('assets.bulkaudit')
|
||||||
->breadcrumbs(fn (Trail $trail) =>
|
->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'])
|
Route::get('quickscancheckin', [AssetsController::class, 'quickScanCheckin'])
|
||||||
|
@ -40,9 +39,12 @@ Route::group(
|
||||||
->push('Quickscan Checkin', route('hardware/quickscancheckin'))
|
->push('Quickscan Checkin', route('hardware/quickscancheckin'))
|
||||||
);
|
);
|
||||||
|
|
||||||
Route::get('requested', [
|
Route::get('requested', [AssetsController::class, 'getRequestedIndex'])
|
||||||
AssetsController::class, 'getRequestedIndex']
|
->name('assets.requested')
|
||||||
)->name('assets.requested');
|
->breadcrumbs(fn (Trail $trail) =>
|
||||||
|
$trail->parent('hardware.index')
|
||||||
|
->push(trans('admin/hardware/general.requested'), route('assets.requested'))
|
||||||
|
);
|
||||||
|
|
||||||
Route::get('scan',
|
Route::get('scan',
|
||||||
[AssetsController::class, 'scan']
|
[AssetsController::class, 'scan']
|
||||||
|
@ -64,9 +66,12 @@ Route::group(
|
||||||
[AssetsController::class, 'auditStore']
|
[AssetsController::class, 'auditStore']
|
||||||
)->name('asset.audit.store');
|
)->name('asset.audit.store');
|
||||||
|
|
||||||
Route::get('history',
|
Route::get('history', [AssetsController::class, 'getImportHistory'])
|
||||||
[AssetsController::class, 'getImportHistory']
|
->name('asset.import-history')
|
||||||
)->name('asset.import-history');
|
->breadcrumbs(fn (Trail $trail) =>
|
||||||
|
$trail->parent('hardware.index')
|
||||||
|
->push(trans('general.import-history'), route('asset.import-history'))
|
||||||
|
);
|
||||||
|
|
||||||
Route::post('history',
|
Route::post('history',
|
||||||
[AssetsController::class, 'postImportHistory']
|
[AssetsController::class, 'postImportHistory']
|
||||||
|
@ -155,9 +160,12 @@ Route::group(
|
||||||
)->name('hardware/bulksave');
|
)->name('hardware/bulksave');
|
||||||
|
|
||||||
// Bulk checkout / checkin
|
// Bulk checkout / checkin
|
||||||
Route::get('bulkcheckout',
|
Route::get('bulkcheckout', [BulkAssetsController::class, 'showCheckout'])
|
||||||
[BulkAssetsController::class, 'showCheckout']
|
->name('hardware.bulkcheckout.show')
|
||||||
)->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',
|
Route::post('bulkcheckout',
|
||||||
[BulkAssetsController::class, 'storeCheckout']
|
[BulkAssetsController::class, 'storeCheckout']
|
||||||
|
|
Loading…
Add table
Reference in a new issue