This commit is contained in:
tanch0
2024-06-19 00:25:14 +05:45
parent 50b8768a34
commit 9bb573169d
15 changed files with 431 additions and 171 deletions

View File

@ -42,13 +42,14 @@
@foreach ($type->news->take(5) as $item)
<div class="single-business-news">
<div class="business-news-image-fluid">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image-fluid">
</a>
</div>
<div class="business-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>
@ -62,7 +63,8 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="post-image-fluid">
<a href="{{route('newsDetail',['alilas'=> $item->alias])}}">
<a
href="{{ route('newsDetail', ['alilas' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
@ -72,7 +74,7 @@
<div class="post-content">
<h3>
<a
href="{{route('newsDetail',['alilas'=> $item->alias])}}">{{ $item->title }}</a>
href="{{ route('newsDetail', ['alilas' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -91,20 +93,64 @@
</div>
<div class="col-lg-4">
<!-- Sidebar -->
<aside class="widget-area">
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<img src="{{ asset('hulaki/assets/img/add/ads9.jpg') }}" alt="image-fluid">
</div>
</section>
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<img src="{{ asset('hulaki/assets/img/add/ads6.gif') }}" alt="image-fluid">
</div>
</section>
@foreach ($adsWithChildren as $parentads)
@if ($parentads->ad_categories_id == 9)
<section class="widget widget_featured_reports">
<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)
<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>
@endforeach
@endif
@endif
@endforeach
</aside>
</div>
</div>
</div>
</section>
<section class="default-news-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == 8)
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>
@endif
@endforeach
@endif
</div>
</div>
</div>
</section>
{{-- <section class="default-news-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
@if ($ad->ad_categories_id == )
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>
@endif
@endforeach
@endif
</div>
</div>
</div>
</section> --}}