@extends('layouts.admin') @section('title', 'Notification Settings — JAM Admin') @section('page-title', 'Notification Settings') @section('content') @if (session('success'))

{{ session('success') }}

@endif
@csrf @method('PUT') {{-- Email Toggles --}}

Email Notifications

Enable or disable specific email notifications sent to members.

@foreach ($toggles as $toggle)

{{ $toggle['label'] }}

{{ $toggle['description'] }}

@endforeach
{{-- Expiry Reminder Config --}}

Expiry Reminder Timing

How many days before a member's points anniversary should we send a reminder?

{{-- Submit --}}
{{-- Recent Notification Log --}}

Recent Notification Log

Last 25 emails sent by the system.

@if ($recentLogs->isEmpty())

No notifications sent yet.

@else
@foreach ($recentLogs as $log) @endforeach
Member Type Subject Status Sent
@if ($log->user) {{ $log->user->first_name }} @else @endif {{ str_replace('_', ' ', $log->type) }} {{ $log->subject }} {{ ucfirst($log->status) }} {{ $log->sent_at?->diffForHumans() }}
@endif
@endsection