Skip to content

Commit d819f31

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 5ee955a + a97c453 commit d819f31

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

app/Providers/BreadcrumbsServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function boot()
5656
Breadcrumbs::for('hardware.index', fn (Trail $trail) =>
5757
$trail->parent('home', route('home'))
5858
->push(trans('general.assets'), route('hardware.index'))
59-
->push(trans('general.list_all'), route('hardware.index'))
6059
);
6160
}
6261

resources/lang/en-US/general.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'accept_assets' => 'Accept Assets :name',
3737
'accept_assets_menu' => 'Accept Assets',
3838
'accept_item' => 'Accept Item',
39+
'accept_items' => 'Accept Items',
3940
'audit' => 'Audit',
4041
'audited' => 'Audited',
4142
'audits' => 'Audits',
@@ -239,7 +240,7 @@
239240
'previous' => 'Previous',
240241
'previous_page' => 'Previous Page',
241242
'processing' => 'Processing',
242-
'profile' => 'Your profile',
243+
'profile' => 'Your Profile',
243244
'purchase_cost' => 'Purchase Cost',
244245
'purchase_date' => 'Purchase Date',
245246
'qty' => 'QTY',

resources/views/account/view-assets.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146

147147
@if ($user->ldap_import!='1')
148148
<div class="col-md-12" style="padding-top: 5px;">
149-
<a href="{{ route('account.password.index') }}" style="width: 100%;" class="btn btn-sm btn-primary btn-social btn-block hidden-print" target="_blank" rel="noopener">
149+
<a href="{{ route('account.password.index') }}" style="width: 100%;" class="btn btn-sm btn-primary btn-social btn-block hidden-print" rel="noopener">
150150
<x-icon type="password" class="fa-fw" />
151151
{{ trans('general.changepassword') }}
152152
</a>
@@ -155,7 +155,7 @@
155155

156156
@can('self.api')
157157
<div class="col-md-12" style="padding-top: 5px;">
158-
<a href="{{ route('user.api') }}" style="width: 100%;" class="btn btn-sm btn-primary btn-social btn-block hidden-print" target="_blank" rel="noopener">
158+
<a href="{{ route('user.api') }}" style="width: 100%;" class="btn btn-sm btn-primary btn-social btn-block hidden-print" rel="noopener">
159159
<x-icon type="api-key" class="fa-fw" />
160160
{{ trans('general.manage_api_keys') }}
161161
</a>

routes/web.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@
366366
->name('account.password.index')
367367
->breadcrumbs(fn (Trail $trail) =>
368368
$trail->parent('home')
369+
->push(trans('general.profile'), route('account'))
369370
->push(trans('general.changepassword'), route('account.password.index')));
370371

371372
Route::post('password', [ProfileController::class, 'passwordSave'])
@@ -375,19 +376,22 @@
375376
->name('user.api')
376377
->breadcrumbs(fn (Trail $trail) =>
377378
$trail->parent('home')
379+
->push(trans('general.profile'), route('account'))
378380
->push(trans('general.manage_api_keys'), route('user.api')));
379381

380382
// View Assets
381383
Route::get('view-assets', [ViewAssetsController::class, 'getIndex'])
382384
->name('view-assets')
383385
->breadcrumbs(fn (Trail $trail) =>
384386
$trail->parent('home')
387+
->push(trans('general.profile'), route('account'))
385388
->push(trans('general.viewassets'), route('view-assets')));
386389

387390
Route::get('requested', [ViewAssetsController::class, 'getRequestedAssets'])
388391
->name('account.requested')
389392
->breadcrumbs(fn (Trail $trail) =>
390393
$trail->parent('home')
394+
->push(trans('general.profile'), route('account'))
391395
->push(trans('general.requested_assets_menu'), route('account.requested')));
392396

393397
Route::get(
@@ -425,12 +429,14 @@
425429
->name('account.accept')
426430
->breadcrumbs(fn (Trail $trail) =>
427431
$trail->parent('home')
428-
->push(trans('general.accept_assets_menu'), route('account.accept')));
432+
->push(trans('general.profile'), route('account'))
433+
->push(trans('general.accept_items'), route('account.accept')));
429434

430435
Route::get('accept/{id}', [Account\AcceptanceController::class, 'create'])
431436
->name('account.accept.item')
432437
->breadcrumbs(fn (Trail $trail, $id) =>
433-
$trail->parent('account.accept')
438+
$trail->parent('home')
439+
->push(trans('general.profile'), route('account'))
434440
->push(trans('general.accept_item'), route('account.accept.item', $id)));
435441

436442
Route::post('accept/{id}', [Account\AcceptanceController::class, 'store'])

0 commit comments

Comments
 (0)