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

@ -95,26 +95,26 @@
<div class="col-lg-4">
<aside class="widget-area">
@foreach ($adsWithChildren as $parentads)
@if ($parentads->ad_categories_id == 9)
@if ($parentads->ad_categories_id == 9 && now()->isBefore($parentads->valid_till))
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<div class="col-lg-10" style="margin-left: 10%;">
<img src="{{ asset($parentads->thumb) }}" alt="{{ $parentads->title }}">
</div>
</section>
@if ($parentads->children->isNotEmpty())
@foreach ($parentads->children as $child)
@foreach ($parentads->children as $child)
@if (now()->isBefore($child->valid_till))
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<div class="col-lg-10" style="margin-left: 10%;">
<img src="{{ asset($child->thumb) }}" alt="{{ $child->title }}">
</div>
</section>
@endforeach
@endif
@endif
@endforeach
@endif
@endforeach
</aside>
</div>
</div>
</div>
</section>
@ -124,7 +124,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 8)
@if ($ad->ad_categories_id == 8 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>