{{-- Un checkbox por destinatario activo --}} @foreach ($destinatarios as $destinatario) @php $yaNotificado = $yaNotificados[$destinatario->id] ?? false; $pivotData = $notificable->destinatarios->firstWhere('id', $destinatario->id)?->pivot; @endphp @if ($yaNotificado)

✅ Ya fue notificado a {{ $destinatario->nombre }} - {{ $destinatario->telefono_whatsapp }}

Por: {{ $pivotData?->notificado_por_nombre }}

Hace: {{ \Carbon\Carbon::parse($pivotData?->fecha_notificacion)->diffForHumans() }}

Fecha exacta: {{ $pivotData?->fecha_notificacion ? \Carbon\Carbon::parse($pivotData->fecha_notificacion)->format('d/m/Y H:i') : '' }}

@else @endif @endforeach {{-- Checkbox del paciente --}} @if ($notificable->notificado)

✅ Ya fue notificado al {{ $notificable->paciente->telefono }}

Por: {{ $notificable->notificado_por_nombre }}

Hace: {{ $notificable->fecha_notificacion?->diffForHumans() }}

Fecha exacta: {{ $notificable->fecha_notificacion?->format('d/m/Y H:i') }}

@elseif(empty($notificable->paciente->telefono))

El paciente no tiene un número de teléfono registrado.

@else @endif {{-- Progreso en vivo (modo sync, via wire:stream) --}}
Iniciando envío...
{{-- Seguimiento en modo cola --}} @if ($enviando)
Procesando envíos...
@endif {{-- Errores del último envío --}} @if (!empty($erroresUltimoEnvio))
@foreach ($erroresUltimoEnvio as $error)

✕ {{ $error }}

@endforeach
@endif