diff --git a/resources/views/dashboard/administration/editposition.blade.php b/resources/views/dashboard/administration/editposition.blade.php index beffcbd..b97f86b 100644 --- a/resources/views/dashboard/administration/editposition.blade.php +++ b/resources/views/dashboard/administration/editposition.blade.php @@ -51,7 +51,7 @@

{{__('messages.form_consistency')}}

-
+ @csrf @method('PATCH') diff --git a/resources/views/dashboard/administration/positions.blade.php b/resources/views/dashboard/administration/positions.blade.php index 7a255dc..001f460 100644 --- a/resources/views/dashboard/administration/positions.blade.php +++ b/resources/views/dashboard/administration/positions.blade.php @@ -189,7 +189,7 @@ {{$vacancy->created_at}} - + @if ($vacancy->vacancyStatus == 'OPEN') diff --git a/routes/web.php b/routes/web.php index 6fd88bb..ac80992 100644 --- a/routes/web.php +++ b/routes/web.php @@ -191,10 +191,10 @@ Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'l ->name('savePosition'); - Route::get('positions/edit/{position}', 'VacancyController@edit') + Route::get('positions/edit/{vacancy}', 'VacancyController@edit') ->name('editPosition'); - Route::patch('positions/update/{position}', 'VacancyController@update') + Route::patch('positions/update/{vacancy}', 'VacancyController@update') ->name('updatePosition');