mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
#2773 emlak24 edit all area
This commit is contained in:
parent
d109731168
commit
32e5e2e299
@ -27,4 +27,6 @@ return [
|
|||||||
'ad_doesnt_exist' => "This ad doesn't exist!",
|
'ad_doesnt_exist' => "This ad doesn't exist!",
|
||||||
'select_location_error' => "Please select a location on the map!",
|
'select_location_error' => "Please select a location on the map!",
|
||||||
'this_ad_is_not_valid_anymore' => "This ad is not valid anymore!",
|
'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!",
|
||||||
];
|
];
|
||||||
|
|||||||
@ -980,7 +980,10 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
$this->adv_model->statusAds($id, $type);
|
$this->adv_model->statusAds($id, $type);
|
||||||
event(new ChangedStatusAd($ad));//Create Notify
|
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();
|
return back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user