master_template/resources/views/hulaki_khabar/home/culture-tech.blade.php

192 lines
11 KiB
PHP
Raw Normal View History

2024-06-13 15:17:05 +00:00
{{-- culture-tech --}}
<section class="default-news-area">
<div class="container">
<div class="row">
<div class="col-lg-8">
<!-- Culture and Technology -->
<div class="row">
<div class="col-lg-6">
<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="sports-slider owl-carousel owl-theme">
<div class="sports-item">
2024-06-15 16:38:54 +00:00
@foreach ($cultural as $type)
@if ($type->alias == 'cultural')
@foreach ($type->news->take(3) as $item)
<div class="single-sports-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
2024-06-15 16:38:54 +00:00
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
</div>
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
2024-06-15 16:38:54 +00:00
</h3>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</div>
<div class="sports-item">
2024-06-15 16:38:54 +00:00
@foreach ($cultural as $type)
@if ($type->alias == 'cultural')
@foreach ($type->news->skip(3) as $item)
<div class="single-sports-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
2024-06-15 16:38:54 +00:00
<img src="{{ asset($item->thub) }}" alt="image">
</a>
</div>
</div>
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
2024-06-15 16:38:54 +00:00
</h3>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</div>
</div>
</div>
<div class="col-lg-6">
<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="tech-slider owl-carousel owl-theme">
<div class="tech-item">
2024-06-15 16:38:54 +00:00
@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">
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
2024-06-15 16:38:54 +00:00
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
</div>
</div>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
2024-06-15 16:38:54 +00:00
</h3>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</div>
<div class="tech-item">
2024-06-15 16:38:54 +00:00
@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">
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
2024-06-15 16:38:54 +00:00
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
</div>
</div>
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
2024-06-18 05:46:51 +00:00
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
2024-06-15 16:38:54 +00:00
</h3>
</div>
</div>
</div>
</div>
@endforeach
@endif
@endforeach
2024-06-13 15:17:05 +00:00
</div>
</div>
</div>
</div>
</div>
<!-- Sidebar -->
2024-06-18 18:40:14 +00:00
2024-06-13 15:17:05 +00:00
<div class="col-lg-4">
<aside class="widget-area">
2024-06-18 18:40:14 +00:00
@foreach ($adsWithChildren as $parentads)
@if ($parentads->ad_categories_id == 11)
<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
2024-06-13 15:17:05 +00:00
</aside>
</div>
</div>
</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)
@if ($ad->ad_categories_id == 10)
<a href="{{ $ad->link }}">
<img src="{{ asset($ad->thumb) }}" alt="{{ $ad->title }}" class="img-fluid">
</a>
@endif
@endforeach
@endif
</div>
</div>
</div>
</section>