{{-- resources/views/otros/noticias.blade.php --}} Noticias {{-- Tailwind CDN --}} {{-- Lucide --}} {{-- Estilos propios --}} {{-- Sidebar --}} @include('header')
{{-- Hero --}}

Noticias y Eventos

Descubre las últimas novedades, logros y eventos de nuestra comunidad educativa.

{{-- Noticias Destacadas --}}

Noticias Destacadas

{{-- Noticia principal (la más reciente) --}} @php use Illuminate\Support\Str; $featuredImg = $featured ? asset( ltrim( str_starts_with($featured->imagen ?? '', '/') ? $featured->imagen : '/' . ltrim($featured->imagen ?? 'images/no-photo.jpg', '/'), '/', ), ) : asset('images/no-photo.jpg'); $featuredDate = $featured?->fecha ? $featured->fecha->locale('es')->translatedFormat('j \\d\\e F, Y') : null; @endphp @if ($featured)
{{ $featured->titulo }}
@if ($featuredDate)
{{ $featuredDate }}
@endif

{{ $featured->titulo }}

{{ Str::limit($featured->descripcion, 240) }}

@endif {{-- Noticias secundarias (resto) --}}
@forelse($others as $item) @php $img = asset( ltrim( str_starts_with($item->imagen ?? '', '/') ? $item->imagen : '/' . ltrim($item->imagen ?? 'images/no-photo.jpg', '/'), '/', ), ); $date = $item->fecha?->locale('es')->translatedFormat('j \\d\\e F, Y'); @endphp
{{ $item->titulo }}

{{ $item->titulo }}

{{ Str::limit($item->descripcion, 220) }}

{{ $date }}
Leer más
@empty
Aún no hay noticias para mostrar.
@endforelse
@include('footer')