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

Notifications

Send announcements and updates to all users

@include('admin.partials.nav')

Create New Notification

@csrf

All Notifications

@forelse($notifications as $notification)
{{ ucfirst($notification->type) }} @if(!$notification->is_active) Inactive @endif @if($notification->expires_at) Expires: {{ $notification->expires_at->format('M d, Y H:i') }} @endif

{{ $notification->title }}

{{ $notification->message }}

Created {{ $notification->created_at->diffForHumans() }}

@csrf @method('PATCH')
@csrf @method('DELETE')
@empty

No notifications yet

Create your first notification above

@endforelse
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection