master_template/resources/views/hulaki_khabar/home/health.blade.php

70 lines
3.7 KiB
PHP
Raw Permalink Normal View History

2024-06-13 15:17:05 +00:00
{{-- health --}}
<section class="default-news-area">
<div class="container">
<div class="row">
<div class="col-lg-8">
<!-- health -->
<div class="health-news">
<div class="section-title">
<h2>स्वास्थ्य <a href="politics.php"><svg xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi bi-arrow-up-right-circle-fill"
viewBox="0 0 16 16">
<path
d="M0 8a8 8 0 1 0 16 0A8 8 0 0 0 0 8m5.904 2.803a.5.5 0 1 1-.707-.707L9.293 6H6.525a.5.5 0 1 1 0-1H10.5a.5.5 0 0 1 .5.5v3.975a.5.5 0 0 1-1 0V6.707z" />
</svg></a></h2>
</div>
<div class="health-news-slides owl-carousel owl-theme">
2024-06-15 18:30:09 +00:00
@foreach ($categories as $type)
@if ($type->alias == 'health')
@foreach ($type->news as $item)
<div class="single-health-news">
<div class="health-news-image-fluid">
2024-06-18 18:40:14 +00:00
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
2024-06-15 18:30:09 +00:00
<img src="{{ asset($item->thumb) }}" alt="image-fluid">
</a>
</div>
2024-06-13 15:17:05 +00:00
2024-06-15 18:30:09 +00:00
<div class="health-news-content">
<h3>
2024-06-18 18:40:14 +00:00
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
2024-06-15 18:30:09 +00:00
</h3>
</div>
</div>
@endforeach
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</div>
</div>
</div>
<!-- Sidebar -->
<div class="col-lg-4">
<aside class="widget-area">
2024-06-18 18:40:14 +00:00
@foreach ($adsWithChildren as $parentads)
2024-06-21 07:44:04 +00:00
@if ($parentads->ad_categories_id == 15 && now()->isBefore($parentads->valid_till))
2024-06-18 18:40:14 +00:00
<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)
2024-06-21 07:44:04 +00:00
@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
2024-06-18 18:40:14 +00:00
@endforeach
@endif
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</aside>
</div>
</div>
</div>
</section>
<!-- End Default News Area -->