@extends('layouts.app-admin') @section('content')

All Announcements

@forelse($announcements as $announcement) @empty @endforelse
ID Title Content Status Picture Published At Expired At Created Actions
{{ Str::limit($announcement->id, 8, '') }} {{ $announcement->title }} {{ Str::limit($announcement->content, 50, '...') }} @if ($announcement->status == 'published') Published @elseif ($announcement->status == 'draft') Draft @else {{ ucfirst($announcement->status) }} @endif @if ($announcement->picture) Announcement Picture @else N/A @endif {{ $announcement->published_at ? $announcement->published_at->format('d M Y') : 'N/A' }} {{ $announcement->expired_at ? $announcement->expired_at->format('d M Y') : 'N/A' }} {{ $announcement->created_at->format('d M Y') }}
@csrf @method('DELETE')

No announcements found

Try adjusting your search or filter to find what you're looking for.

@endsection @push('styles') @endpush @section('scripts') @endsection