TanchoToplineCargo/resources/views/client/topCargo/partials/welcome/news.blade.php

30 lines
1.5 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +00:00
<!--news -->
<section class="testmonial-1 secpadd">
<div class="container">
<div class="fh-section-title clearfix text-left version-dark paddbtm40">
<h2>Latest News</h2>
</div>
<div class="fh-latest-post carousel">
<div class="post-list news-slide">
@forelse ($news as $item)
<div class="item-latest-post clearfix">
<div class="entry-thumbnail">
2024-05-09 11:05:06 +00:00
<a href="{{ route('showNews', $item->alias) }}">
2024-05-05 04:47:49 +00:00
<img style="height: 205px; width:100%; object-fit:cover; object-position:center;" src="{{ asset($item->image) }}" alt="{{$item->title}}" />
</a>
</div>
<div class="entry-summary">
<h2 class="entry-title">{{ Str::limit($item->title,45) }}</h2>
<div class="entry-footer">
2024-05-09 11:05:06 +00:00
<a href="{{ route('showNews', $item->alias) }}">Read More...</a>
2024-05-05 04:47:49 +00:00
</div>
</div>
</div>
@empty
@endforelse
</div>
</div>
</div>
</section>
<!--news ends -->