changes
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
|
||||
<!-- Feature News -->
|
||||
<div class="most-popular-news" id="business">
|
||||
<div class="section-title">
|
||||
@ -44,7 +45,7 @@
|
||||
<div class="col-lg-4">
|
||||
<aside class="widget-area">
|
||||
@foreach ($adsWithChildren as $parentads)
|
||||
@if ($parentads->ad_categories_id == 13)
|
||||
@if ($parentads->ad_categories_id == 13 && 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 }}">
|
||||
@ -52,11 +53,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