@extends('admin.adminLayout') @section('admin_page_title') Admin Notification Settings @endsection @section('style') @endsection @section('admin_content') @php $moduleSettings = (array) data_get($settings, 'modules', []); @endphp

Admin Notification Settings

Enable a module, then choose only the notification types you want to receive from that module.

@csrf @method('PUT')
Default modules: Admins, Message Center, Leads, Clients, Calendar and KYC. Each default module starts with all of its notification types selected, but you can now disable individual types. Client-facing notifications are not affected.
@foreach($modules as $key => $module) @php $current = (array) ($moduleSettings[$key] ?? []); $enabled = (bool) ($current['enabled'] ?? false); $selectedOptions = array_values((array) ($current['options'] ?? [])); $options = (array) ($module['options'] ?? []); $selectedCount = count(array_intersect(array_keys($options), $selectedOptions)); $isDefault = in_array($key, $defaultModules, true); @endphp
{{ $selectedCount }}/{{ count($options) }} selected
Choose notification types
@foreach($options as $optionKey => $option) @endforeach
@endforeach
A notification is sent only when both its module and its specific notification type are enabled.
@endsection @section('script') @endsection