88 lines
4.2 KiB
PHP
88 lines
4.2 KiB
PHP
|
<div class="page-header title-area">
|
||
|
<div class="header-title">
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12 col-sm-12 col-xs-12">
|
||
|
<h1 class="page-title">News Portal</h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="breadcrumb-area">
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-8 col-sm-12 col-xs-12 site-breadcrumb">
|
||
|
<nav class="breadcrumb">
|
||
|
<a class="home" href="{{ route('home') }}}"><span>Home</span></a>
|
||
|
<i class="fa fa-angle-right" aria-hidden="true"></i>
|
||
|
<span>News</span>
|
||
|
</nav>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<section class="blogpage blog-classic secpadd">
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-8">
|
||
|
|
||
|
@foreach ($news as $item)
|
||
|
<div class="blog-wrapper">
|
||
|
<div class="wrapper">
|
||
|
<div class="entry-thumbnail">
|
||
|
<a href="{{route('showNews',$item->alias)}}">
|
||
|
<img src="{{ asset($item->image) }}" alt="{{ $item->alias }}"
|
||
|
style="width: 100%; height: 425px; object-fit:cover; object-position:center;"></a>
|
||
|
|
||
|
<div class="entry-time">
|
||
|
<span class="day">09</span>
|
||
|
<span class="month">Aug</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<header class="entry-header">
|
||
|
<div class="entry-meta clearfix">
|
||
|
<span class="meta author vcard">by <a href="{{route('showNews',$item->alias)}}">Admin</a></span>
|
||
|
<span class="meta cat-links"><a href="{{route('showNews',$item->alias)}}">Topline</a>, <a
|
||
|
href="{{route('showNews',$item->alias)}}">Cargo</a></span>
|
||
|
</div>
|
||
|
<h2 class="entry-title"><a href="{{route('showNews',$item->alias)}}">{{ $item->title }}</a></h2>
|
||
|
</header>
|
||
|
<!-- .entry-header -->
|
||
|
<div class="entry-content">
|
||
|
{!! strip_tags(Str::limit($item->text, 70)) !!}
|
||
|
</div>
|
||
|
<!-- .entry-content -->
|
||
|
<footer class="entry-footer clearfix">
|
||
|
<a href="{{route('showNews',$item->alias)}}">Read More...</a>
|
||
|
</footer>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
</div>
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
<div class="tracksidebar">
|
||
|
<div class="widget popular-posts-widget">
|
||
|
<h4 class="widget-title">Popular Post</h4>
|
||
|
@foreach ($popularNews as $popular)
|
||
|
<div class="popular-post post clearfix ">
|
||
|
<a class="widget-thumb" href="{{route('showNews',$popular->alias)}}"><img src="{{$popular->image}}"
|
||
|
alt="" style="height:75px; width:75px; object-fit:cover;"></a>
|
||
|
<div class="mini-widget-title">
|
||
|
<h4><a href="{{route('showNews',$popular->alias)}}">{{$popular->title}}</a></h4>
|
||
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
||
|
<span class="entry-date">{{$popular->created_at->diffForHumans()}}</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{{ $news->links('client.topCargo.pagination.topCargo', ['data' => $news]) }}
|
||
|
</div>
|
||
|
</section>
|