#2773 emlak24 edit all area

This commit is contained in:
Diatrex 2020-11-30 17:27:53 +03:00
parent d109731168
commit 32e5e2e299
2 changed files with 6 additions and 1 deletions

View File

@ -27,4 +27,6 @@ return [
'ad_doesnt_exist' => "This ad doesn't exist!",
'select_location_error' => "Please select a location on the map!",
'this_ad_is_not_valid_anymore' => "This ad is not valid anymore!",
'approve_status_change' => "Your Ad's Status Has Been Set to Active!",
'passive_status_change' => "Your Ad's Status Has Been Set to Passive!",
];

View File

@ -980,7 +980,10 @@ class AdvsController extends PublicController
$this->adv_model->statusAds($id, $type);
event(new ChangedStatusAd($ad));//Create Notify
$this->messages->success(trans('streams::message.edit_success', ['name' => trans('visiosoft.module.advs::field.status.name')]));
$message = $type === 'approved' ?
trans('visiosoft.module.advs::message.approve_status_change')
: trans('visiosoft.module.advs::message.passive_status_change');
$this->messages->success($message);
return back();
}