@extends('layouts.admin') @section('content')
{{-- Approval Header --}}
{{-- Applying sportive.inspiration refresh with a bold left border --}}
{{-- Interactive care: icon background with primary color transparency, reflecting sporty visioner --}}
{{-- Sporty youthful title with main color --}}

Tinjauan Artikel Olahraga

{{-- Reflecting community active process and growth --}}

Kelola dan publikasikan artikel untuk pertumbuhan komunitas aktif.

{{-- Sorting Form --}}
{{-- Interactive care: rounded, slightly elevated form --}}
Urutkan Berdasarkan: {{-- Adding status filter for better management and interactive care --}}
{{-- Articles Table --}} {{-- Sporty youthful: rounded card with shadow --}}
@if (session('success')) {{-- Expressive: success alert with consistent styling --}}
{{ session('success') }}
@endif @if($draftArticles->isEmpty()) {{-- Interactive care: clear message for empty state --}}
Belum ada artikel draft yang tersedia untuk ditinjau.
@else
{{-- Competitive: slightly distinct header row --}} @foreach($draftArticles as $article) {{-- Community active process: concise title display --}} @endforeach
Thumbnail Judul Artikel Penulis Dibuat Pada Status Aksi Cepat
@if($article->thumbnail) thumbnail @else
Tanpa Gambar
@endif
{{ $article->title }} {{ $article->author ?? 'Tidak Diketahui' }} {{ $article->created_at->format('d M Y H:i') }} @php $statusColor = ''; switch ($article->status) { case 'draft': $statusColor = '#f4b704'; // Kuning dari palet break; case 'published': $statusColor = '#00617a'; // Biru dari palet break; default: $statusColor = '#6c757d'; // Abu-abu default break; } @endphp {{ ucfirst($article->status) }}
{{-- Commitment & growth: clear action button --}}
@csrf @method('PUT')
@endif
{{-- Custom Pagination --}} @if ($draftArticles->hasPages())
@endif
{{-- SweetAlert --}} @endsection