This commit is contained in:
tanch0
2024-06-21 13:29:04 +05:45
parent 5b3c44aa33
commit 25760ad989
50 changed files with 1180 additions and 111 deletions

View File

@ -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