2 lines
570 B
PHP
2 lines
570 B
PHP
@if($latestNewsArticles->isNotEmpty())<section class="section alt"><div class="wrap"><div class="heading"><span>{{ $data['eyebrow'] ?? '' }}</span><h2>{{ $data['heading'] ?? '' }}</h2></div><div class="grid three">@foreach($latestNewsArticles->take($data['limit'] ?? 3) as $article)<article class="card"><b>{{ optional($article->published_at)->format('d M Y') }}</b><h3>{{ $article->title }}</h3><p>{{ $article->excerpt }}</p><a class="read-more" href="{{ route('news.public.show',$article->slug) }}">Read update →</a></article>@endforeach</div></div></section>@endif
|