From 9b6f729b130f2e1dcc7009c4da85b584bf2dd102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 19 Apr 2021 19:47:23 +0300 Subject: [PATCH] refs #1985 fixed wizard and report path.. --- resources/views/common/reports/index.blade.php | 2 +- resources/views/wizard/currencies/index.blade.php | 2 +- resources/views/wizard/taxes/index.blade.php | 2 +- routes/wizard.php | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/views/common/reports/index.blade.php b/resources/views/common/reports/index.blade.php index 12f46c3a2..f891d8489 100644 --- a/resources/views/common/reports/index.blade.php +++ b/resources/views/common/reports/index.blade.php @@ -35,7 +35,7 @@ @endcan @can('delete-common-reports') - {!! Form::deleteLink($report, 'common/reports') !!} + {!! Form::deleteLink($report, 'reports.destroy') !!} @endcan diff --git a/resources/views/wizard/currencies/index.blade.php b/resources/views/wizard/currencies/index.blade.php index 64451907f..eedfab90d 100644 --- a/resources/views/wizard/currencies/index.blade.php +++ b/resources/views/wizard/currencies/index.blade.php @@ -70,7 +70,7 @@ @can('delete-settings-currencies') - {!! Form::deleteLink($item, 'wizard/currencies') !!} + {!! Form::deleteLink($item, 'wizard.currencies.destroy') !!} @endcan diff --git a/resources/views/wizard/taxes/index.blade.php b/resources/views/wizard/taxes/index.blade.php index fd2f32858..193955c38 100644 --- a/resources/views/wizard/taxes/index.blade.php +++ b/resources/views/wizard/taxes/index.blade.php @@ -67,7 +67,7 @@ @can('delete-settings-taxes') - {!! Form::deleteLink($item, 'wizard/taxes') !!} + {!! Form::deleteLink($item, 'wizard.taxes.destroy') !!} @endcan diff --git a/routes/wizard.php b/routes/wizard.php index fc6155ba3..fc0decf1f 100644 --- a/routes/wizard.php +++ b/routes/wizard.php @@ -12,7 +12,12 @@ Route::group(['as' => 'wizard.'], function () { Route::get('companies', 'Wizard\Companies@edit')->name('companies.edit'); Route::patch('companies', 'Wizard\Companies@update')->name('companies.update'); + Route::get('currencies/{currency}/enable', 'Settings\Currencies@enable')->name('currencies.enable'); + Route::get('currencies/{currency}/disable', 'Settings\Currencies@disable')->name('currencies.disable'); Route::resource('currencies', 'Wizard\Currencies'); + + Route::get('taxes/{tax}/enable', 'Settings\Taxes@enable')->name('taxes.enable'); + Route::get('taxes/{tax}/disable', 'Settings\Taxes@disable')->name('taxes.disable'); Route::resource('taxes', 'Wizard\Taxes'); Route::get('finish', 'Wizard\Finish@index')->name('finish.index');