@extends('layouts.admin.app') @section('title', 'News') @push('style') @endpush @section('content')
@include('admin.layouts.alert')

All News

+ Create News
@forelse ($news as $item) @empty @endforelse
Media Title League Status Published Actions
@if ($item->media_type == \App\Models\News::MEDIA_IMAGE && $item->mediaUrl()) @elseif ($item->media_type == \App\Models\News::MEDIA_VIDEO)
▶ Video
@else
@endif
{{ $item->title }}
{{ \Illuminate\Support\Str::limit($item->short_description, 60) }}
{{ $item->league->name ?? '—' }} {{ \App\Models\News::STATUS_LABELS[$item->status] ?? 'Unknown' }} {{ $item->published_at ? $item->published_at->format('d M Y, H:i') : '—' }}
@csrf @method('DELETE')
No news found.
{{ $news->links() }}
@endsection @push('script') @endpush