@extends('unit-admin.layout') @section('title', 'News') @section('page_title', 'News & Announcements') @section('content')
News & Announcements
@forelse($news as $item) @empty @endforelse
# Title Status Published At Created Actions
{{ $loop->iteration }}
{{ $item->title }}
{{ Str::limit(strip_tags($item->content), 60) }}
{{ $item->status }} {{ $item->published_at ? $item->published_at->format('d M Y h:i A') : '—' }} {{ $item->created_at->format('d M Y') }}
{{-- VIEW --}}
{{-- EDIT --}}
{{-- TOGGLE STATUS --}}
@csrf
{{-- DELETE --}}
@csrf @method('DELETE')
📰
No news yet
Create your first announcement
{{-- ══ ADD NEWS MODAL ══ --}}
Create News / Announcement
@csrf
{{-- ══ EDIT NEWS MODAL ══ --}}
Edit News
@csrf
{{-- ══ VIEW NEWS MODAL ══ --}}
News Detail
@endsection @section('scripts') @endsection