master_template/resources/views/hulaki_khabar/home/main-news.blade.php

59 lines
2.3 KiB
PHP
Raw Normal View History

2024-06-13 15:17:05 +00:00
{{-- main-news --}}
<section class="main-news-area">
<div class="container">
2024-06-18 18:40:14 +00:00
@if ($featuredNews)
<div class="row">
<a href="#">
<img src="{{ asset('hulaki/assets/img/ad/Kicks_Desktop_1230x100-px_new.jpg') }}" alt="image"
class="img-fluid">
</a>
<div class="col-lg-12 mt-20">
<div class="news-content mt-50 text-center">
<h2>
<a
href="{{ route('newsDetail', ['alias' => $featuredNews->alias]) }}"><b>{{ $featuredNews->title }}</b></a>
</h2>
</div>
2024-06-13 15:17:05 +00:00
</div>
2024-06-18 18:40:14 +00:00
<hr>
2024-06-13 15:17:05 +00:00
2024-06-18 18:40:14 +00:00
<div class="col-lg-12">
<div class="news-content" style="text-align: center; margin: 3%;">
<h2>
2024-06-20 10:57:33 +00:00
<a href="{{ route('newsDetail', ['alias' => $featuredNews->alias]) }}"><b>{{ $featuredNews->short_description }}</b></a>
2024-06-18 18:40:14 +00:00
</h2>
</div>
<div class="single-main-news">
2024-06-20 10:57:33 +00:00
<a href="{{ route('newsDetail', ['alias' => $featuredNews->alias]) }}">
2024-06-18 18:40:14 +00:00
<img src="{{ asset($featuredNews->image) }}" alt="image">
</a>
</div>
<div class="news-content" style="text-align: center;">
<p>{!! $featuredNews->content !!}</P>
</div>
2024-06-13 15:17:05 +00:00
</div>
</div>
2024-06-15 16:38:54 +00:00
@endif
2024-06-13 15:17:05 +00:00
</div>
</section>
2024-06-18 18:40:14 +00:00
<section class="default-news-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
@if ($ads->isNotEmpty())
@foreach ($ads as $ad)
2024-06-21 07:44:04 +00:00
@if ($ad->ad_categories_id == 3 && now()->isBefore($ad->valid_till))
2024-06-18 18:40:14 +00:00
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>
@endif
@endforeach
@endif
</div>
</div>
</div>
</section>
2024-06-18 10:41:58 +00:00
2024-06-18 18:40:14 +00:00
<!-- End Main News Area -->