{{-- Listagem de notícias das páginas de órgãos (NOTICIAS e HTML_NOTICIAS); usa Bootstrap 5. --}}
@for ($index = 0; $index < 2 && $index < count($noticias); $index++) @php $noticia = $noticias[$index]; $slugDate = date('d-m-Y', strtotime($noticia->created_at)); $noticiaUrl = route('paginas.slug', [$slugDate, $noticia->slug]); $titulo = html_entity_decode($noticia->title, ENT_QUOTES, 'UTF-8'); $resumo = html_entity_decode($noticia->summary, ENT_QUOTES, 'UTF-8'); @endphp
{{ __('Capa da notícia') }}: {{ strip_tags($titulo) }}

{{ $titulo }}

{{ $resumo }}

@endfor
@for ($index = 2; $index < count($noticias); $index++) @php $noticia = $noticias[$index]; $slugDate = date('d-m-Y', strtotime($noticia->created_at)); $noticiaUrl = route('paginas.slug', [$slugDate, $noticia->slug]); $titulo = html_entity_decode($noticia->title, ENT_QUOTES, 'UTF-8'); $resumo = html_entity_decode($noticia->summary, ENT_QUOTES, 'UTF-8'); @endphp
{{ __('Capa da notícia') }}: {{ strip_tags($titulo) }}

{{ $titulo }}

{{ Str::limit(strip_tags($resumo), 160) }}

@endfor
@if ($noticias->hasPages())
{!! $noticias->links() !!}
@endif