@extends('dashboard.app') @section('page_title', 'Admin Settings') @section('page_subtitle', 'System configuration and feature flags.') @section('dashboard_content') @if (session('status'))
{{ session('status') }}
@endif
@foreach ([ ['label' => 'Billing mode', 'value' => ($settings['billing_mode'] ?? config('dewemoji.billing.mode')), 'note' => isset($settings['billing_mode']) ? 'DB' : 'Env'], ['label' => 'Rate limit', 'value' => config('dewemoji.rate_limit_enabled') ? 'On' : 'Off', 'note' => 'Global'], ['label' => 'Public access', 'value' => ((bool) ($settings['public_enforce'] ?? config('dewemoji.public_access.enforce_whitelist'))) ? 'Whitelist' : 'Open', 'note' => 'Origin policy'], ] as $card)
{{ $card['label'] }}
{{ $card['value'] }}
{{ $card['note'] }}
@endforeach
Feature flags
System toggles
@foreach ([ ['label' => 'Maintenance mode', 'desc' => 'Temporarily block public API access', 'state' => ((bool) ($settings['maintenance_enabled'] ?? false)) ? 'On' : 'Off'], ['label' => 'Extension verification', 'desc' => 'Require GCM token for extension calls', 'state' => config('dewemoji.extension_verification.enabled') ? 'On' : 'Off'], ['label' => 'Metrics', 'desc' => 'Allow internal metrics endpoints', 'state' => config('dewemoji.metrics.enabled') ? 'On' : 'Off'], ] as $row)
{{ $row['label'] }}
{{ $row['desc'] }}
{{ $row['state'] }}
@endforeach
Public access
Allowlist configuration
@csrf

Changes update the settings store immediately.

@endsection