@extends('layouts.admin') @section('title', 'Popup Messages') @section('page-title', 'Popup Messages') @section('page-subtitle', 'Manage popup notifications and alerts') @section('content')

🔔 Popup Notifications

Manage announcements and important messages for users

@if($notifications->count() > 0)
@foreach($notifications as $notification) @endforeach
Notification Type Status Target Schedule Views Actions
{{ $notification->icon }} {{ $notification->title }}
{{ Str::limit($notification->message, 80) }}
{{ ucfirst($notification->type) }}
{{ $notification->is_active ? 'Active' : 'Inactive' }} @if($notification->start_date && $notification->start_date > now()) Scheduled @elseif($notification->end_date && $notification->end_date < now()) Expired @endif
@if($notification->target_users) @if(isset($notification->target_users['levels'])) Levels {{ implode(', ', $notification->target_users['levels']) }} @elseif(isset($notification->target_users['user_ids'])) {{ count($notification->target_users['user_ids']) }} Users @elseif(isset($notification->target_users['min_level'])) Level {{ $notification->target_users['min_level'] }}+ @endif @else All Users @endif
@if($notification->start_date) Start: {{ $notification->start_date->format('M j, Y') }} @endif @if($notification->end_date) End: {{ $notification->end_date->format('M j, Y') }} @endif @if(!$notification->start_date && !$notification->end_date) Immediate @endif
{{ $notification->seenBy()->count() }} views
View Edit
@csrf
@csrf @method('DELETE')
{{ $notifications->appends(request()->query())->links() }}
@else
🔔

No notifications found

Create your first popup notification to engage users!

Create First Notification
@endif
@endsection