changes
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
<div class="col-lg-4">
|
||||
<aside class="widget-area">
|
||||
@foreach ($adsWithChildren as $parentads)
|
||||
@if ($parentads->ad_categories_id == 15)
|
||||
@if ($parentads->ad_categories_id == 15 && now()->isBefore($parentads->valid_till))
|
||||
<section class="widget widget_featured_reports">
|
||||
<div class=" col-lg-10" style=" margin-left: 10%;">
|
||||
<img src="{{ asset($parentads->thumb) }}" alt="{{ $parentads->title }}">
|
||||
@ -50,11 +50,13 @@
|
||||
</section>
|
||||
@if ($parentads->children->isNotEmpty())
|
||||
@foreach ($parentads->children as $child)
|
||||
<section class="widget widget_featured_reports">
|
||||
<div class=" col-lg-10" style=" margin-left: 10%;">
|
||||
<img src="{{ asset($child->thumb) }}" alt="{{ $child->title }}">
|
||||
</div>
|
||||
</section>
|
||||
@if (now()->isBefore($child->valid_till))
|
||||
<section class="widget widget_featured_reports">
|
||||
<div class=" col-lg-10" style=" margin-left: 10%;">
|
||||
<img src="{{ asset($child->thumb) }}" alt="{{ $child->title }}">
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
|
Reference in New Issue
Block a user