@extends('adminlte::page') @section('title', 'View Communication') @section('content')

Communication Details

@if($communication->status === 'draft') Edit
@csrf @method('PATCH')
@endif Back

{{ $communication->subject }}


{!! nl2br(e($communication->content)) !!}
Communication Info
Status:
@if($communication->status === 'sent') Sent @elseif($communication->status === 'scheduled') Scheduled @else Draft @endif
Priority:
@if($communication->priority === 'urgent') Urgent @elseif($communication->priority === 'high') High @elseif($communication->priority === 'normal') Normal @else Low @endif
Recipient Type:
{{ ucfirst(str_replace('_', ' ', $communication->recipient_type)) }}
Created By:
{{ $communication->creator->full_name ?? 'Unknown' }}
Created At:
{{ $communication->created_at->format('M d, Y H:i') }}
@if($communication->sent_at)
Sent At:
{{ $communication->sent_at->format('M d, Y H:i') }}
@endif @if($communication->scheduled_at)
Scheduled For:
{{ $communication->scheduled_at->format('M d, Y H:i') }}
@endif
@if($communication->recipient_type === 'individual' && $communication->recipient_ids)
Recipients ({{ count($communication->recipient_ids) }})
    @foreach($communication->getRecipients() as $recipient)
  • {{ $recipient->first_name }} {{ $recipient->second_name }}
    {{ $recipient->email }}
  • @endforeach
@elseif($communication->recipient_type === 'all_members')
Recipients

This communication will be sent to all members.

@endif
@endsection @section('css') @endsection