user profile design pyro'ya aktarılması edited

This commit is contained in:
Muammer Top 2020-10-01 11:04:04 +03:00
parent b12d988206
commit 21f6c39405
2 changed files with 5 additions and 3 deletions

View File

@ -90,8 +90,7 @@
<p class="mb-0 mr-4">
{{ trans('visiosoft.module.profile::message.disable_account') }}
</p>
<a type="button" class="btn btn-danger text-white"
onclick="window.location.href='/profile/closeAccount'">
<a href="{{ url_route("visiosoft.module.profile::profile_close_account") }}" class="btn btn-danger text-white">
{{ trans("visiosoft.module.profile::field.disable_account.name") }}
</a>
</div>

View File

@ -94,7 +94,10 @@ class ProfileModuleServiceProvider extends AddonServiceProvider
'profile/class/status/{id},{type}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@statusAds',
'profile/class/extendTime/{id},{type}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@extendAds',
'profile/message/show/{id}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@showMessage',
'profile/closeAccount' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@disableAccount',
'profile/close-account' => [
'as' => 'visiosoft.module.profile::profile_close_account',
'uses' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@disableAccount'
],
'profile/notification' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@notification',
'ajax/update-user-info' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@updateAjaxProfile',