@extends('admin.layouts.app') @section('title', 'Publicaciones') @section('styles') @endsection @section('content') {{-- ═══════ HERO ═══════ --}}
Gestiona noticias, comunicados, convocatorias y logros
| # | Imagen | Título | Tipo | Fecha | Destacado | Estado | Popup | Botones | Acciones |
|---|---|---|---|---|---|---|---|---|---|
| {{ $noticia->id }} |
@if($noticia->imagen)
|
@if($noticia->resumen) @endif | @php $tipoClass = match($noticia->tipo) { 'noticia' => 'tipo-noticia', 'comunicado' => 'tipo-comunicado', 'convocatoria' => 'tipo-convocatoria', 'logro' => 'tipo-logro', default => 'tipo-noticia', }; $tipoIcon = match($noticia->tipo) { 'noticia' => 'bi-newspaper', 'comunicado' => 'bi-megaphone-fill', 'convocatoria' => 'bi-file-earmark-text-fill', 'logro' => 'bi-trophy-fill', default => 'bi-circle', }; @endphp {{ $noticia->tipo_label }} |
{{ $noticia->fecha_publicacion->format('d/m/Y') }}
|
@if($noticia->destacado) Sí @else — @endif | {{ $noticia->activo ? 'Activo' : 'Inactivo' }} | @if($noticia->mostrar_popup) ON @else — @endif |
@if($noticia->botones && count($noticia->botones) > 0)
@foreach($noticia->botones as $btn)
{{ Str::limit($btn['texto'] ?? 'Ver', 12) }}
@endforeach
@else
—
@endif
|
|