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

Admin Module

News & Announcements

Manage news & announcements records from the database.

New News/Announcement
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Please check the highlighted fields and try again.
@endif
@forelse ($records as $record) @empty @endforelse
Title Type Event Date Status Actions
@php $valueEn = $record->title_en ?: '-'; $valueAs = $record->title_as ?: $valueEn; @endphp {{ str($valueEn)->limit(80) }} {{ str($record->type ?? '-')->limit(80) }} {{ $record->event_date?->format('d M Y') ?? '-' }} @php $statusEn = str($record->status ?? '-')->replace('_', ' ')->title()->toString(); $statusAs = $selectOptionLabelsAs[$record->status ?? ''] ?? $statusEn; @endphp {{ $statusEn }}
@csrf @method('DELETE')
No news & events found.
{{ $records->links() }}
@endsection