@extends('admin.layouts.admin')
@section('title', 'Newsletter')
@section('content')
Newsletter
Gestión de suscriptores pre-lanzamiento
{{-- Stats --}}
@foreach([
'Total' => $stats['total'],
'Confirmados' => $stats['confirmed'],
'Pendientes' => $stats['pending'],
'Avisados' => $stats['notified'],
] as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
{{-- Acciones --}}
{{-- Filtros --}}
@foreach(['all' => 'Todos', 'confirmed' => 'Confirmados', 'pending' => 'Pendientes', 'notified' => 'Avisados'] as $filter => $label)
{{ $label }}
@endforeach
| Email |
Nombre |
Estado |
Confirmado |
Avisado |
|
@foreach($subscribers as $sub)
| {{ $sub->email }} |
{{ $sub->name ?? '—' }} |
@if($sub->is_unsubscribed)
Baja
@elseif($sub->is_confirmed)
Confirmado
@else
Pendiente
@endif
|
{{ $sub->confirmed_at?->format('d/m/Y') ?? '—' }}
|
{{ $sub->notified_at?->format('d/m/Y') ?? '—' }}
|
|
@endforeach
@if($subscribers->hasPages())
{{ $subscribers->links() }}
@endif
@endsection