@extends('layouts.admin') @section('title', 'Articles') @section('content')
| Title | Status | Scope | Category | Featured | Actions |
|---|---|---|---|---|---|
| {{ $article->title }} | {{ ucfirst($article->status) }} | @php $scopeClass = match($article->scope) { 'local' => 'bg-red-100 text-red-800', 'international' => 'bg-blue-100 text-blue-800', default => 'bg-gray-100 text-gray-800', }; @endphp {{ ucfirst($article->scope) }} | {{ $article->category->name ?? 'N/A' }} | @if($article->is_featured) Yes @else No @endif | Edit |
| No articles found. | |||||