Fix route to checkout components from the details page

This commit is contained in:
Ivan Nieto Vivanco 2021-12-14 12:26:46 -06:00
parent 503c802d70
commit 2402f00a2e
2 changed files with 3 additions and 2 deletions

View file

@ -16,8 +16,9 @@
{{ trans('button.actions') }} {{ trans('button.actions') }}
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu pull-right" role="menu22"> <ul class="dropdown-menu pull-right" role="menu22">
@if ($component->assigned_to != '') @if ($component->assigned_to != ''))
@can('checkin', $component) @can('checkin', $component)
<li role="menuitem"> <li role="menuitem">
<a href="{{ route('checkin/component', $component->id) }}"> <a href="{{ route('checkin/component', $component->id) }}">

View file

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