TanchoToplineCargo/resources/views/client/topCargo/partials/welcome/news.blade.php
2024-05-09 16:50:06 +05:45

30 lines
1.5 KiB
PHP

<!--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">
<a href="{{ route('showNews', $item->alias) }}">
<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">
<a href="{{ route('showNews', $item->alias) }}">Read More...</a>
</div>
</div>
</div>
@empty
@endforelse
</div>
</div>
</div>
</section>
<!--news ends -->