@extends('layouts.admin') @section('title', 'Popup Messages') @section('page-title', 'Popup Messages') @section('page-subtitle', 'Manage popup notifications and alerts') @section('content')
Manage announcements and important messages for users
Notification | Type | Status | Target | Schedule | Views | Actions |
---|---|---|---|---|---|---|
{{ $notification->icon }} {{ $notification->title }}
|
{{ 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
|
Create your first popup notification to engage users!
Create First Notification