@extends('layouts.admin') @section('title', 'Subscribers') @section('admin')

Subscribers

{{ number_format($stats['total']) }} total · {{ number_format($stats['active']) }} active

Import CSV
@foreach (['total' => 'Total', 'active' => 'Active', 'pending' => 'Pending', 'unsubscribed' => 'Unsubscribed', 'bounced' => 'Bounced'] as $k => $label)
{{ $label }}
{{ number_format($stats[$k]) }}
@endforeach
@if(request()->hasAny(['q', 'status', 'tag_id'])) Clear @endif
@if (session('success'))
{{ session('success') }}
@endif
selected
@forelse($subs as $s) @empty @endforelse
Email Name Tags Status Subscribed
{{ $s->email }} {{ trim($s->first_name.' '.$s->last_name) ?: '—' }} @foreach($s->tags->take(4) as $tag) {{ $tag->name }} @endforeach @php $color = ['active' => 'emerald', 'pending' => 'amber', 'unsubscribed' => 'gray', 'bounced' => 'red', 'complained' => 'red'][$s->status] ?? 'gray'; @endphp {{ $s->status }} {{ optional($s->created_at)->diffForHumans() }}
No subscribers match your filters.
{{ $subs->links() }}
{{-- Add modal --}} @endsection