@extends('public.layout') @php if (!function_exists('calculateReadingTime')) { function calculateReadingTime($body) { if (!$body) { return 2; } $text = strip_tags($body); $words = str_word_count($text); $minutes = ceil($words / 200); return max(1, $minutes); } } // Garantir que seoData existe e tem valores padrão if (!isset($seoData)) { $seoData = []; } // Adicionar breadcrumbs para SEO $seoData['breadcrumbs'] = [['name' => 'Home', 'url' => url('/')]]; if (isset($section)) { $seoData['breadcrumbs'][] = [ 'name' => $section->name, 'url' => url()->current(), ]; } // Garantir tipo de conteúdo $seoData['type'] = 'website'; @endphp @section('seo') @php // Passar dados de SEO para o layout // O layout já acessa $seoData diretamente @endphp @endsection @section('content')

{{ $section->name }}

@if ($section->description)

{{ $section->description }}

@endif
{{ $articles->total() }} Notícias
@include('components.article-list-items', ['articles' => $articles->items()])
@endsection