@extends('layouts.app') @section('title', 'Settings') @php $otpChannels = old('otp_channels', explode(',', $settings['otp_channels'])); $hostChannels = old('notify_host_channels', array_filter(explode(',', $settings['notify_host_channels']))); $driver = old('sms_driver', $settings['sms_driver']); @endphp @section('content')
@csrf @method('PUT')
General & OTP
@error('company_name')
{{ $message }}
@enderror
@error('otp_length')
{{ $message }}
@enderror
Counted from the scheduled time (or from issue time for walk-ins / past times).
@error('otp_expiry_minutes')
{{ $message }}
@enderror
@foreach (['sms' => 'SMS', 'email' => 'Email'] as $k => $label)
@endforeach @error('otp_channels')
{{ $message }}
@enderror
@foreach (['sms' => 'SMS', 'email' => 'Email'] as $k => $label)
@endforeach
SMS provider
@error('twilio_sid')
{{ $message }}
@enderror
@error('twilio_from')
{{ $message }}
@enderror
Receives a JSON POST with api_key, sender, to, message.
@error('sms_http_url')
{{ $message }}
@enderror
Email
Current mailer: {{ $mailer }}. @if (in_array($mailer, ['log', 'array'])) Emails are written to storage/logs/laravel.log and SMS/Email Logs. To deliver real email set MAIL_MAILER=smtp and the MAIL_* values in .env, then run php artisan config:clear. @else Emails are delivered through SMTP settings in .env. @endif
Duress code
A guard who is being forced to let someone in types this code into Verify OTP. The screen shows the normal "Invalid OTP" message while admins are alerted silently by in-app notification, SMS and email. Use the same number of digits as the OTP so it looks like any other code, and share it only with security staff.
@error('duress_code')
{{ $message }}
@enderror
@if ($settings['duress_code'])
@endif
Send a test message
@csrf
@error('recipient')
{{ $message }}
@enderror
Save settings first. The result appears in SMS / Email Logs.
@endsection @push('scripts') @endpush