diff --git a/addons/default/visiosoft/cats-module/resources/lang/en/field.php b/addons/default/visiosoft/cats-module/resources/lang/en/field.php index be9a83b85..c2148802a 100644 --- a/addons/default/visiosoft/cats-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/cats-module/resources/lang/en/field.php @@ -33,4 +33,5 @@ return [ 'please_wait' => 'Please wait.Deleting Sub Categories', 'category_selection' => 'Category Selection', 'go_to_parent' => 'Go To Parent', + 'preview' => 'Preview' ]; diff --git a/addons/default/visiosoft/cats-module/resources/views/cats/admin-cat.twig b/addons/default/visiosoft/cats-module/resources/views/cats/admin-cat.twig index 6345327f2..ea60d2cc0 100644 --- a/addons/default/visiosoft/cats-module/resources/views/cats/admin-cat.twig +++ b/addons/default/visiosoft/cats-module/resources/views/cats/admin-cat.twig @@ -30,7 +30,23 @@ {{ form.fields.slug|raw }} - {{ form.fields.icon|raw }} +
+ +

+ {{ form.fields.icon.instructions|raw }} +

+
+ + {{ trans('visiosoft.module.cats::field.preview') }}: + + {{ form.fields.icon.value + ? img(url(form.fields.icon.value)).width(24)|raw + : img('visiosoft.theme.base::images/default-categories-icon.png').width(24)|raw }} +
+ {{ form.fields.icon.input|raw }} +
{{ form.fields.seo_keyword|raw }} {{ form.fields.seo_description|raw }} diff --git a/addons/default/visiosoft/profile-module/src/Profile/Password/ForgotPassFormHandler.php b/addons/default/visiosoft/profile-module/src/Profile/Password/ForgotPassFormHandler.php index 23a1efca7..122912459 100644 --- a/addons/default/visiosoft/profile-module/src/Profile/Password/ForgotPassFormHandler.php +++ b/addons/default/visiosoft/profile-module/src/Profile/Password/ForgotPassFormHandler.php @@ -34,7 +34,6 @@ class ForgotPassFormHandler $users->save($user); if (!is_null($user->gsm_phone)) { event(new SendForgotPasswordSms($user, $password)); - $messages->success(trans('visiosoft.theme.base::message.send_forgot_sms')); } else { $messages->error(trans('visiosoft.theme.base::message.found_phone')); }