@extends('layouts.admin') @section('title','Consents & privacy') @section('content') @php $label = fn (string $v) => ucwords(str_replace(['_', '-'], ' ', $v)); @endphp Customers Segments @if(session('status'))
{{ session('status') }}
@endif
Consent records {{ number_format($stats['records']) }} {{ number_format($stats['customers_with_consent']) }} customers
Email opt-in {{ number_format($stats['email_opt_in']) }} {{ number_format($stats['email_opt_out']) }} opted out
SMS opt-in {{ number_format($stats['sms_opt_in']) }} SMS marketing
Suppressions {{ number_format($stats['suppressions']) }} Hard blocks
All Email opted in Email opted out SMS opted in
@foreach($channels as $row)
{{ $label($row->channel) }}
{{ number_format($row->opted_in) }} / {{ number_format($row->total) }}
opted in
@endforeach
Customer Channel Status Source Recorded @forelse($consents as $consent)
{{ $consent->customer?->name ?: '—' }}
{{ $consent->customer?->email }}
{{ $label($consent->channel) }} {{ $consent->granted ? 'Granted' : 'Denied' }} {{ $consent->source ?: '—' }} {{ ($consent->recorded_at ?? $consent->created_at)?->diffForHumans() }}
@csrf
@empty No consent records match. @endforelse {{ $consents->links() }}
@csrf
    @forelse($suppressions as $row)
  • {{ $row->email }}
    {{ $row->reason ?: '—' }} · {{ $row->created_at?->diffForHumans() }}
    @csrf @method('DELETE')
  • @empty
  • No suppressions.
  • @endforelse
@endsection