@extends('layouts.app') @section('title', 'Safety Communications Dashboard') @section('content')

Safety Communications Dashboard

New Communication

Total Sent

{{ number_format($stats['total_sent']) }}

This Month

{{ number_format($stats['this_month']) }}

Emergency Sent

{{ number_format($stats['emergency_sent']) }}

Avg. Acknowledgment

{{ number_format($stats['avg_acknowledgment_rate'], 1) }}%

Communication Types

@forelse($typeBreakdown as $type => $count)
{{ str_replace('_', ' ', $type) }}
{{ $count }}
@empty

No data available

@endforelse

Scheduled Communications

View All
@forelse($scheduledCommunications as $communication)

{{ Str::limit($communication->title, 40) }}

{{ $communication->scheduled_send_time->format('M d, Y H:i') }}

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

No scheduled communications

@endforelse

Recent Communications

View All
@forelse($recentCommunications as $communication) @empty @endforelse
Subject Type Priority Status Sent By Date Actions
{{ Str::limit($communication->title, 40) }}
{{ str_replace('_', ' ', $communication->communication_type) }} {{ ucfirst($communication->priority_level) }} {{ ucfirst($communication->status) }} {{ $communication->creator->name ?? 'N/A' }} {{ $communication->created_at->format('M d, Y') }}
No communications found
@endsection