Files
phpvms/resources/views/layouts/default/widgets/latest_news.blade.php
Nabeel S 12848091a2 Laravel 9 Update (#1413)
Update to Laravel 9 and PHP 8+

Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
2022-03-14 11:45:18 -04:00

21 lines
643 B
PHP

<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
@lang('widgets.latestnews.news')
</div>
<div class="card border-blue-bottom">
<div class="card-body" style="min-height: 0px">
@if($news->count() === 0)
<div class="text-center text-muted" style="padding: 30px;">
@lang('widgets.latestnews.nonewsfound')
</div>
@endif
@foreach($news as $item)
<h4 style="margin-top: 0px;">{{ $item->subject }}</h4>
<p class="category">{{ $item->user->name_private }}
- {{ show_datetime($item->created_at) }}</p>
{!! $item->body !!}
@endforeach
</div>
</div>