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>

View File

@ -169,7 +169,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 4)
@if ($ad->ad_categories_id == 4 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>

View File

@ -23,7 +23,8 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -31,7 +32,8 @@
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -50,7 +52,8 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thub) }}" alt="image">
</a>
</div>
@ -58,7 +61,8 @@
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -85,25 +89,26 @@
@foreach ($technology as $type)
@if ($type->alias == 'technology')
@foreach ($type->news->take(3) as $item)
<div class="single-tech-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
<div class="single-tech-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
@ -113,25 +118,26 @@
@foreach ($technology as $type)
@if ($type->alias == 'technology')
@foreach ($type->news->skip(3) as $item)
<div class="single-tech-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
<div class="single-tech-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
@ -147,7 +153,7 @@
<div class="col-lg-4">
<aside class="widget-area">
@foreach ($adsWithChildren as $parentads)
@if ($parentads->ad_categories_id == 11)
@if ($parentads->ad_categories_id == 11 && 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 }}">
@ -155,11 +161,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
@ -176,7 +184,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 10)
@if ($ad->ad_categories_id == 10 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>
@ -187,5 +195,3 @@
</div>
</div>
</section>

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

View File

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

View File

@ -78,7 +78,7 @@
@foreach ($adsWithChildren as $ads)
@if ($ads->children->isNotEmpty())
@foreach ($ads->children as $item)
@if ($item->ad_categories_id == 5)
@if ($item->ad_categories_id == 5 && now()->isBefore($item->valid_till))
<section class="widget widget_featured_reports">
<img src="{{ asset($item->thumb) }}" alt="{{ $item->title }}"
class="img-fluid">

View File

@ -43,7 +43,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 3)
@if ($ad->ad_categories_id == 3 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>

View File

@ -120,7 +120,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 14)
@if ($ad->ad_categories_id == 14 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>

View File

@ -75,14 +75,14 @@
<div class="col-lg-3">
<aside class="widget-area mt-50">
@foreach ($adsWithChildren as $items)
@if ($items->ad_categories_id == 7)
@if ($items->ad_categories_id == 7 && now()->isBefore($items->valid_till))
<section class="widget widget_featured_reports">
<img src="{{ asset($items->thumb) }}" alt="{{ $items->title }}" class="img-fluid">
</section>
@endif
@if ($items->children->isNotEmpty())
@foreach ($items->children as $item)
@if ($item->ad_categories_id == 7)
@if ($item->ad_categories_id == 7 && now()->isBefore($item->valid_till))
<section class="widget widget_featured_reports">
<img src="{{ asset($item->thumb) }}" alt="{{ $item->title }}"
class="img-fluid">
@ -104,7 +104,7 @@
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 6)
@if ($ad->ad_categories_id == 6 && now()->isBefore($ad->valid_till))
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>

View File

@ -21,13 +21,14 @@
@if ($loop->first)
<div class="single-culture-news">
<div class="">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="culture-news-content">
<h3>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -46,7 +47,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="culture-news-image">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -54,7 +55,8 @@
<div class="col-lg-8 col-sm-8">
<div class="culture-news-content">
<h3>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -73,7 +75,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="culture-news-image">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -81,7 +83,8 @@
<div class="col-lg-8 col-sm-8">
<div class="culture-news-content">
<h3>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -90,7 +93,6 @@
@endforeach
@endif
@endforeach
</div>
</div>
</div>