@extends('layouts.app') @section('title', 'Safety Communication Details') @section('content')
Back to Communications

{{ $communication->title }}

{{ $communication->reference_number }}

Export PDF @if($communication->canBeEdited()) Edit @endif @if($communication->status === 'draft' || $communication->status === 'scheduled')
@csrf
@endif
@csrf

Communication Details

{{ $communication->title }}

{{ $communication->message }}

{{ str_replace('_', ' ', $communication->communication_type) }}

{{ ucfirst($communication->priority_level) }}

{{ $communication->getTargetAudienceLabel() }}

@if($communication->target_departments)
@foreach($communication->target_departments as $deptId) @php $dept = \App\Models\Department::find($deptId); @endphp @if($dept) {{ $dept->name }} @endif @endforeach
@endif

{{ str_replace('_', ' ', $communication->delivery_method) }}

@if($communication->attachments && count($communication->attachments) > 0)

Attachments

@foreach($communication->attachments as $attachment) {{ basename($attachment) }} @endforeach
@endif

Status

{!! $communication->getStatusBadge() !!}

{{ $communication->created_at->format('F j, Y g:i A') }}

@if($communication->sent_at)

{{ $communication->sent_at->format('F j, Y g:i A') }}

@endif @if($communication->scheduled_send_time)

{{ $communication->scheduled_send_time->format('F j, Y g:i A') }}

@endif @if($communication->expires_at)

{{ $communication->expires_at->format('F j, Y g:i A') }}

@endif

Recipients

{{ $recipientCount }}

@if($communication->requires_acknowledgment)

{{ $communication->acknowledged_count ?? 0 }} / {{ $communication->total_recipients ?? 0 }}

@if($communication->acknowledgment_rate)

{{ number_format($communication->acknowledgment_rate, 1) }}%

@endif @if($communication->acknowledgment_deadline)

Deadline: {{ $communication->acknowledgment_deadline->format('M j, Y') }}

@endif
@endif

Created By

{{ strtoupper(substr($communication->creator->name ?? 'U', 0, 1)) }}

{{ $communication->creator->name ?? 'N/A' }}

{{ $communication->created_at->format('M j, Y') }}

@endsection