96 lines
4.9 KiB
PHP
96 lines
4.9 KiB
PHP
@extends('hulaki_khabar.layout.layout')
|
|
@section('content')
|
|
<!-- Start Page Banner -->
|
|
<div class="page-title-area">
|
|
<div class="container">
|
|
<div class="page-title-content">
|
|
<h2>{{$categoryTitle}}</h2>
|
|
<ul>
|
|
<li><a href="index.php">होमपेज </a></li>
|
|
<li>{{$categoryTitle}}</li>
|
|
</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">
|
|
@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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@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>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<div class="row">
|
|
@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>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
{{ $data->links('hulaki_khabar.pagination.hulaki',['data' => $data]) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- End Default News Area -->
|
|
@endsection
|