@extends('layouts.app') @section('title', 'Settings') @section('content') @include('partials.flash') @php $input = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $label = 'block text-label-md font-label-md text-on-surface-variant mb-1.5'; $enabled = filter_var($s->get('mail.enabled'), FILTER_VALIDATE_BOOLEAN); $enc = $s->get('mail.encryption'); @endphp
{{-- Email (SMTP) configuration --}}
@csrf @method('PATCH')
mail

Email (SMTP)

Used to send course-assigned and reminder emails. Turn it on once your SMTP details are entered and tested.

@error('mail_host')

{{ $message }}

@enderror
@error('mail_port')

{{ $message }}

@enderror
@error('mail_from_address')

{{ $message }}

@enderror
{{-- Microsoft Teams: auto-generate online meeting links --}}
videocam

Microsoft Teams

Auto-generate a Teams meeting link for online sessions. Needs an Azure app registration with the OnlineMeetings.ReadWrite.All application permission (admin-consented) and an application access policy for the organiser account.

warning Paste the secret Value (shown once when you create it), not the Secret ID.

{{-- Makeshift auto-link (no Microsoft setup) --}}
link

Auto-link without Microsoft

A quick alternative when Teams isn’t set up. Used only if Microsoft Teams above isn’t configured, and only when a trainer leaves the link blank.

@php $mfb = $s->get('meeting.fallback') ?: 'none'; @endphp
@error('meeting_fixed_url')

{{ $message }}

@enderror

info Jitsi gives each session its own unique room (meet.jit.si/Segra-…) that anyone with the link can join in a browser — no sign-in. Fixed reuses one meeting you create once (best for non-overlapping sessions).


notifications_active

Session Reminders

Automatically remind trainers and booked attendees before a training session — in the notification bell and by email. Two nudges are sent: one the day before and one shortly before it starts.

@php $srEnabled = filter_var($s->get('session_reminder.enabled', '1'), FILTER_VALIDATE_BOOLEAN); @endphp

e.g. 24 = the day before.

@error('session_reminder_day_hours')

{{ $message }}

@enderror

e.g. 60 = one hour before.

@error('session_reminder_hour_minutes')

{{ $message }}

@enderror

info Email nudges are only sent while Send emails is enabled above; the bell notification is always delivered. The scheduler must be running for these to fire.

{{-- Assessments --}}

Assessments

How many times a learner may fail a module's assessment before the whole course is reset and every module must be taken again.

Default 3. Applies to every course.

@error('assessment_max_failures')

{{ $message }}

@enderror
Save first, then test.
{{-- Standalone form so the Test button isn't nested inside the settings form --}}
{{-- Test + status --}}
{{ $enabled ? 'mark_email_read' : 'unsubscribe' }}

Status

Email is currently {{ $enabled ? 'ON — course-assigned & reminder emails will send.' : 'OFF — in-app notifications only.' }}

@csrf

Send a test

Save your settings first, then send a test to confirm they work.

@error('test_email')

{{ $message }}

@enderror
@endsection