@extends('layouts.app') @section('title', 'Notification Settings') @section('page-title', 'πŸ”” Notifications') @section('page-subtitle', 'Configure Email, Telegram & WhatsApp alerts') @section('content')
{{-- ── How it works ─────────────────────────────────────── --}}
πŸ’‘

How notifications work

Add one or more channels below. Notifications fire automatically every hour via the scheduler.

To enable the scheduler on your server: add * * * * * php /path/to/artisan schedule:run to crontab.

{{-- ── Existing channels ────────────────────────────────── --}} @if($settings->isNotEmpty())
@foreach($settings as $setting)
{{ $setting->channelIcon }}
{{ $setting->name }} {{ $setting->channelLabel }} @if(! $setting->is_enabled) Disabled @endif
@foreach($setting->triggers ?? [] as $trigger) {{ \App\Models\NotificationSetting::$triggerMeta[$trigger]['icon'] ?? 'πŸ””' }} {{ \App\Models\NotificationSetting::$triggerMeta[$trigger]['label'] ?? $trigger }} @endforeach ⏰ {{ $setting->notify_before_hours }}h before
{{-- Test --}}
@csrf
{{-- Toggle --}}
@csrf
{{-- Edit --}} {{-- Delete --}}
@csrf @method('DELETE')
{{-- Inline edit form --}}
@csrf @method('PUT')
{{-- Triggers --}}
@foreach(\App\Models\NotificationSetting::$triggerMeta as $key => $meta) @endforeach
{{-- Channel-specific config --}} @if($setting->channel === 'email')
@elseif($setting->channel === 'telegram')
@elseif($setting->channel === 'whatsapp')
@endif
@endforeach
@else
πŸ”•

No notification channels yet

Add one below to get started

@endif {{-- ── Add new channel ─────────────────────────────────── --}}

βž• Add Notification Channel

@csrf
{{-- Triggers --}}
@foreach(\App\Models\NotificationSetting::$triggerMeta as $key => $meta) @endforeach
{{-- Email --}}
{{-- Telegram --}}

Get from @BotFather

Use @userinfobot to find your ID

{{-- WhatsApp / WAHA --}}

Your self-hosted WAHA instance

@endsection