Fixed inconsistency in naming

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-08-01 17:45:39 -07:00
parent af7ccf3beb
commit e79a819724
2 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@
@if ($component->assigned_to != '')
@can('checkin', $component)
<li role="menuitem">
<a href="{{ route('checkin/component', $component->id) }}">
<a href="{{ route('components.checkin.show', $component->id) }}">
{{ trans('admin/components/general.checkin') }}
</a>
</li>
@ -29,7 +29,7 @@
@else
@can('checkout', $component)
<li role="menuitem">
<a href="{{ route('component.checkout.show', $component->id) }}">
<a href="{{ route('components.checkout.show', $component->id) }}">
{{ trans('admin/components/general.checkout') }}
</a>
</li>

View file

@ -8,17 +8,17 @@ Route::group(['prefix' => 'components', 'middleware' => ['auth']], function () {
Route::get(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'create']
)->name('component.checkout.show');
)->name('components.checkout.show');
Route::post(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'store']
)->name('component.checkout.store');
)->name('components.checkout.store');
Route::get(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'create']
)->name('component.checkin.show');
)->name('components.checkin.show');
Route::post(
'{componentID}/checkin/{backto?}',