2024-06-13 15:17:05 +00:00
|
|
|
@extends('hulaki_khabar.layout.layout')
|
|
|
|
@section('content')
|
|
|
|
<!-- Start Page Banner -->
|
|
|
|
<div class="page-title-area">
|
|
|
|
<div class="container">
|
|
|
|
<div class="page-title-content">
|
2024-06-18 05:46:51 +00:00
|
|
|
<h2>{{$categoryTitle}}</h2>
|
2024-06-13 15:17:05 +00:00
|
|
|
<ul>
|
|
|
|
<li><a href="index.php">होमपेज </a></li>
|
2024-06-18 05:46:51 +00:00
|
|
|
<li>{{$categoryTitle}}</li>
|
2024-06-13 15:17:05 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- End Page Banner -->
|
|
|
|
|
|
|
|
<!-- Start Default News Area -->
|
|
|
|
<section class="default-news-area ptb-50">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="row">
|
2024-06-18 05:46:51 +00:00
|
|
|
@foreach ($data->take(1) as $item)
|
|
|
|
@if ($loop->first)
|
|
|
|
<div class="single-politics-news">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-lg-4">
|
|
|
|
<div class="politics-news-image">
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
|
|
|
|
<img src="{{ asset($item->thumb) }}" alt="image">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@php
|
|
|
|
$publishedHour = Carbon\Carbon::parse($item->created_at)->diffForHumans();
|
|
|
|
@endphp
|
|
|
|
<div class="col-lg-7">
|
|
|
|
<div class="" style="margin-top: -70px;">
|
|
|
|
<div class="politics-news-content-box">
|
|
|
|
<h3>
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}"><b>{{ $item->title }}</b></a>
|
|
|
|
</h3>
|
|
|
|
<div class="date">{{ $publishedHour }}</div><BR>
|
|
|
|
<div class="news-content">
|
|
|
|
<p>{{ $item->short_description }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-18 05:46:51 +00:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@foreach ($data->skip(1)->take(8) as $item)
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<div class="single-politics-news">
|
|
|
|
<div class="politics-news-image">
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
|
|
|
|
<img src="{{ asset($item->thumb) }}" alt="image">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="politics-news-content">
|
|
|
|
<h3>
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">{{ $item->title }}</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-18 05:46:51 +00:00
|
|
|
@endforeach
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2024-06-18 05:46:51 +00:00
|
|
|
@foreach ($data->skip(9)->take(8) as $item)
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<div class="single-politics-news">
|
|
|
|
<div class="politics-news-image">
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
|
|
|
|
<img src="{{ asset($item->thumb) }}" alt="image">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="politics-news-content">
|
|
|
|
<h3>
|
|
|
|
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">{{ $item->title }}</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-18 05:46:51 +00:00
|
|
|
@endforeach
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
2024-06-18 05:46:51 +00:00
|
|
|
{{ $data->links('hulaki_khabar.pagination.hulaki',['data' => $data]) }}
|
2024-06-13 15:17:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- End Default News Area -->
|
|
|
|
@endsection
|