@extends('layouts.admin') @section('title', 'Articles') @section('content')

Articles

Create Article
@forelse($articles as $article) @empty @endforelse
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
@csrf @method('DELETE')
No articles found.
{{ $articles->links() }}
@endsection