@extends('layout') @section('title', 'Destinatarios') @section('content')

Agregar destinatario

@csrf

Destinatarios configurados

@csrf
@forelse($recipients as $recipient) @php($linked = $recipient->channel === 'email' || $recipient->linked_at) @empty @endforelse
CanalDestinoEstadoAcciones
{{ $recipient->channel === 'email' ? 'Correo' : 'Telegram' }} {{ $recipient->address }} {{ !$linked ? 'Por vincular' : ($recipient->active ? 'Activo' : 'Inactivo') }}
@foreach(array_filter(['toggle' => $linked ? ($recipient->active ? 'Desactivar' : 'Activar') : null, 'link' => !$linked ? 'Generar código' : null, 'test' => $linked && $recipient->active ? 'Enviar prueba' : null, 'remove' => 'Eliminar']) as $action => $label)
@csrf
@endforeach
Agrega un correo o chat de Telegram.
@endsection