@extends('admin.layouts.admin') @section('title', 'Blog · Artículos') @php $statusBadge = ['draft' => 'badge-warn', 'published' => 'badge-active', 'scheduled' => 'badge-premium', 'archived' => 'badge-secondary']; $catColors = ['teal' => '#3E7C77', 'amber' => '#D0A03A', 'purple' => '#8A5BB0', 'blue' => '#3F6FB0', 'coral' => '#B5503A', 'gray' => '#79847B']; @endphp @section('content')
Artículos del blog

Crea, edita y publica artículos.

+ Nuevo artículo
{{-- Filters --}}
{{ $trash ? '← Volver a artículos' : '🗑 Papelera' }}
@if($posts->isEmpty())
Sin artículos
Crea el primero.
@else
@foreach($posts as $post) @endforeach
TítuloCategoríaEstadoVistasPublicado
{{ $post->title }}
{{ $post->comments_count }} comentarios · {{ $post->read_time_minutes }} min
@if($post->category) {{ $post->category->name }} @else — @endif {{ $post->status }} {{ $post->views_count }} {{ $post->published_at?->format('d/m/Y') ?? '—' }} @if($trash)
@csrf
@else Ver Editar
@csrf @method('DELETE')
@endif
{{ $posts->links() }}
@endif
@endsection