content
This commit is contained in:
@ -15,21 +15,21 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-7">
|
||||
{{-- @dd($politics) --}}
|
||||
@foreach ($politics as $type)
|
||||
@if ($type->alias ==='politics')
|
||||
@if ($type->alias === 'politics')
|
||||
@foreach ($type->news->take(1) as $item)
|
||||
@if ($loop->first)
|
||||
<div class="single-culture-news">
|
||||
<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"
|
||||
class="img-fluid">
|
||||
</a>
|
||||
</div>
|
||||
<div class="culture-news-content">
|
||||
<h3>
|
||||
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
|
||||
<a
|
||||
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->short_description }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@ -48,7 +48,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>
|
||||
@ -57,7 +57,7 @@
|
||||
<div class="culture-news-content">
|
||||
<h3>
|
||||
<a
|
||||
href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
|
||||
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->short_description }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@ -74,19 +74,44 @@
|
||||
<!-- Sidebar -->
|
||||
<div class="col-lg-3">
|
||||
<aside class="widget-area mt-50">
|
||||
|
||||
<section class="widget widget_featured_reports">
|
||||
<img src="{{ asset('hulaki/assets/img/ad/prabhu_pay_onlinekhabar.gif') }}" alt="image"
|
||||
class="img-fluid">
|
||||
</section>
|
||||
|
||||
<section class="widget widget_featured_reports">
|
||||
<img src="{{ asset('hulaki/assets/img/ad/Nabil_jan_300-x-150.gif') }}" alt="image"
|
||||
class="img-fluid">
|
||||
</section>
|
||||
@foreach ($adsWithChildren as $items)
|
||||
@if ($items->ad_categories_id == 7)
|
||||
<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)
|
||||
<section class="widget widget_featured_reports">
|
||||
<img src="{{ asset($item->thumb) }}" alt="{{ $item->title }}"
|
||||
class="img-fluid">
|
||||
</section>
|
||||
@endif
|
||||
@endforeach
|
||||
@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 == 6)
|
||||
<a href="{{ $ad->link }}">
|
||||
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
|
||||
</a>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user