#887 ad status message

This commit is contained in:
vedatakd 2020-02-25 15:28:53 +03:00
parent 30019550cb
commit a513b8201e
5 changed files with 10 additions and 1 deletions

View File

@ -25,4 +25,5 @@ return [
'filter_by_search_msg' => 'Filter By Search.',
'delete_author_error' => 'You cannot delete a post that does not belong to you',
'success_delete' => 'Ad Deleted',
'pending_ad_status' => 'Your ad is pending approval by the Editor.',
];

View File

@ -25,4 +25,5 @@ return [
'filter_by_search_msg' => 'Aramanızı Daraltın.',
'delete_author_error' => 'Size ait olmayan bir ilanı silemezsiniz',
'success_delete' => 'İlan Silindi',
'pending_ad_status' => 'İlanınız Editör tarafından onay beklemektedir.',
];

View File

@ -17,6 +17,7 @@
{% include "visiosoft.module.advs::ad-detail/partials/breadcrumb" %}
<!-- breadcrumb -->
{% endif %}
{% include "visiosoft.module.advs::ad-detail/partials/ad-status" %}
<h2 class="title">
{{ adv.title }}
{{ addBlock('ad-detail/title/action',{'adv_id':adv.id})|raw }}

View File

@ -0,0 +1,6 @@
{% if adv.status == "pending_user" or adv.status == "pending_admin" %}
<div class="alert bg-info text-white alert-dismissible">
<i class="fas fa-exclamation-triangle"></i>
{{ trans('visiosoft.module.advs::message.pending_ad_status') }}
</div>
{% endif %}

View File

@ -20,7 +20,7 @@ class AdvTableBuilder extends TableBuilder
public function onQuerying(Builder $query)
{
$query->where('slug', "!=", NULL);
$query->where('slug', "!=", "");
}
protected $views = [];