@extends('adminlte::page') @section('title', 'Communications') @section('content_header')

Communications Management

@stop @section('content')
Total Communications
{{ $totalCommunications }}
All communications
Sent Communications
{{ $sentCommunications }}
Successfully sent
Draft Communications
{{ $draftCommunications }}
Pending review
Scheduled Communications
{{ $scheduledCommunications }}
Time-based sends

System Communications

@forelse($communications as $communication) @empty @endforelse
Subject Recipient Type Status Priority Created By Sent At Actions
{{ Str::limit($communication->subject, 40) }}
{{ ucfirst(str_replace('_', ' ', $communication->recipient_type)) }} @if($communication->status === 'sent') Sent @elseif($communication->status === 'scheduled') Scheduled @else Draft @endif @if($communication->priority === 'urgent') Urgent @elseif($communication->priority === 'high') High @elseif($communication->priority === 'normal') Normal @else Low @endif {{ Str::limit($communication->creator->full_name ?? 'Unknown', 15) }} @if($communication->sent_at) {{ $communication->sent_at->format('d M H:i') }} @else - @endif
@if($communication->status !== 'sent')
@csrf @method('DELETE')
@endif @if($communication->status === 'draft')
@csrf @method('PATCH')
@endif
No Communications Found

Start by creating your first communication to members.

Create First Communication
@if($communications->hasPages()) @endif
@push('js') @if(session('success')) Swal.fire({ icon: 'success', title: 'Success!', text: '{{ session("success") }}', timer: 3000, showConfirmButton: false }); @endif @if(session('error')) Swal.fire({ icon: 'error', title: 'Error!', text: '{{ session("error") }}', timer: 3000, showConfirmButton: false }); @endif @endpush @stop