@extends('components.app-layout') @section('title', $announcement->title) @section('subtitle', 'Announcement Details') @section('content')

{{ $announcement->title }}

Published {{ $announcement->publish_date->format('M j, Y \\a\\t g:i A') }}

Edit
@php $statusColors = [ 'published' => 'bg-green-100 text-green-800 border-green-200', 'draft' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'expired' => 'bg-red-100 text-red-800 border-red-200', 'archived' => 'bg-gray-100 text-gray-800 border-gray-200' ]; $priorityColors = [ 'low' => 'bg-blue-100 text-blue-800 border-blue-200', 'medium' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'high' => 'bg-orange-100 text-orange-800 border-orange-200', 'urgent' => 'bg-red-100 text-red-800 border-red-200' ]; $typeColors = [ 'general' => 'bg-gray-100 text-gray-800 border-gray-200', 'event' => 'bg-blue-100 text-blue-800 border-blue-200', 'prayer_request' => 'bg-purple-100 text-purple-800 border-purple-200', 'urgent' => 'bg-red-100 text-red-800 border-red-200', 'celebration' => 'bg-pink-100 text-pink-800 border-pink-200', 'ministry' => 'bg-indigo-100 text-indigo-800 border-indigo-200' ]; @endphp {{ ucfirst($announcement->status) }} {{ ucfirst($announcement->priority) }} Priority {{ ucfirst(str_replace('_', ' ', $announcement->type)) }}
@if($announcement->image_path)
{{ $announcement->title }}
@endif
{!! nl2br(e($announcement->content)) !!}
@if($announcement->attachment_path)

Attachment

Download File
@endif

Publishing Details

Created: {{ $announcement->created_at->format('M j, Y g:i A') }}
Published: {{ $announcement->publish_date->format('M j, Y g:i A') }}
@if($announcement->expire_date)
Expires: {{ $announcement->expire_date->format('M j, Y g:i A') }}
@endif
Views: {{ $announcement->view_count ?? 0 }}

Distribution

Email Notifications: {{ $announcement->send_email ? 'Enabled' : 'Disabled' }}
SMS Notifications: {{ $announcement->send_sms ? 'Enabled' : 'Disabled' }}
Website Display: {{ $announcement->display_on_website ? 'Enabled' : 'Disabled' }}
Digital Screens: {{ $announcement->display_on_screens ? 'Enabled' : 'Disabled' }}
@if($announcement->target_audience && count($announcement->target_audience) > 0)

Target Audience

@foreach($announcement->target_audience as $audience) {{ ucfirst(str_replace('_', ' ', $audience)) }} @endforeach
@endif @if($announcement->notes)

Internal Notes

{{ $announcement->notes }}

@endif @if($announcement->creator)

Created By

{{ substr($announcement->creator->name, 0, 1) }}

{{ $announcement->creator->name }}

{{ $announcement->creator->email }}

@endif
@endsection