{{-- resources/views/admin/system/announcements/index.blade.php --}} @extends('admin.layouts.app') @section('title', 'System Announcements') @section('page_title', 'System Announcements') @section('breadcrumb', 'Manage platform-wide announcements and notifications') @section('content') {{-- Header with CTA --}}
Send notifications and announcements to all or specific properties
| Title | Type | Active | Dismissible | Targets | Schedule | |
|---|---|---|---|---|---|---|
|
{{ $announcement->title }}
|
@php $typeConfig = [ 'info' => ['icon' => 'ℹ️', 'bg' => '#dbeafe', 'text' => '#1e40af'], 'warning' => ['icon' => '⚠️', 'bg' => '#fef3c7', 'text' => '#92400e'], 'success' => ['icon' => '✓', 'bg' => '#d1fae5', 'text' => '#065f46'], 'maintenance' => ['icon' => '🔧', 'bg' => '#f3e8ff', 'text' => '#6b21a8'], ]; $config = $typeConfig[$announcement->type] ?? $typeConfig['info']; @endphp {{ $config['icon'] }} {{ ucfirst($announcement->type) }} | @if($isActive) Active @else Inactive @endif | @if($announcement->is_dismissible) @else @endif | @php $targets = []; if ($announcement->target_plan_slugs) { $targets[] = count((array)$announcement->target_plan_slugs) . ' plans'; } if ($announcement->target_countries) { $targets[] = count((array)$announcement->target_countries) . ' countries'; } @endphp @if(!empty($targets)) {{ implode(', ', $targets) }} @else All @endif | @if($announcement->starts_at || $announcement->ends_at) @if($announcement->starts_at) {{ $announcement->starts_at->format('d M Y') }} @else Now @endif @if($announcement->ends_at) → {{ $announcement->ends_at->format('d M Y') }} @else → ∞ @endif @else — @endif |
You can target announcements to specific groups:
Tip: Leave targets empty to reach everyone