@extends('layouts.app') @section('title', 'Communication Center') @section('content')

Omnichannel customer engagement

Communication Center

WhatsApp, SMS and email messages with complete delivery history.

@if(auth()->user()->hasPermission('communications.manage'))@endif
@foreach(['whatsapp' => ['WA','bg-emerald-50 text-emerald-600'], 'sms' => ['SMS','bg-blue-50 text-blue-600'], 'email' => ['@','bg-violet-50 text-violet-600']] as $channel => $meta)
{{ $meta[0] }}

{{ ucfirst($channel) }} Messages

{{ $channelCounts[$channel] ?? 0 }}

Logged communications

@endforeach
!

Failed Delivery

{{ $failedCount }}

Needs provider review

@if(auth()->user()->hasPermission('communications.manage'))

Compose Message

Queue a message for the configured provider.

@csrf

Message Template

Use variables such as @{{customer_name}} and @{{application_number}}.

@csrf
@endif

Delivery Log

Auditable message history across all channels.

{{ $templates->count() }} active templates
@forelse($logs as $log)@empty@endforelse
TimeChannelRecipientMessageLinked RecordStatus
{{ $log->created_at->format('d M Y') }}{{ $log->created_at->format('h:i A') }}{{ ucfirst($log->channel) }}{{ $log->recipient ?: 'Not recorded' }}{{ $log->direction }}{{ $log->subject ?: str($log->message ?: $log->summary)->limit(60) }}{{ str($log->message ?: $log->summary)->limit(90) }}{{ $log->customer?->full_name_en ?? $log->application?->application_number ?? 'General message' }}{{ $log->user?->name ?? 'Automation' }}{{ ucfirst($log->status) }}
@No communications yet

Compose the first customer message or connect a provider.

{{ $logs->links() }}
@endsection