{{--
App\Mail\PlatformAlertMail — events platform.tenant-registered / platform.provisioning-failed /
platform.sms-low-balance / platform.sms-cap-reached, to iShapps (platform setting alerts.emails). Platform-branded.
Vars: $branding, $kind (registered|failed|sms-balance|sms-cap), $organisation, $details (label => value), $consoleUrl
--}}
@extends('emails.layouts.tenant')
@section('title', match ($kind) {
'registered' => 'New sign-up',
'sms-balance' => 'SMS credits low',
'sms-cap' => 'SMS cap reached',
default => 'Provisioning failed',
})
@section('preheader')
@switch($kind)
@case('registered')
{{ $organisation }} just registered on iShapps.
@break
@case('sms-balance')
The Mobile Message account needs a top-up.
@break
@case('sms-cap')
{{ $organisation }} can't send more texts this month.
@break
@default
{{ $organisation }} was not set up — it needs attention.
@endswitch
@endsection
@section('content')
@switch($kind)
@case('registered')
{{ $organisation }} just signed up on iShapps. Their workspace is being set up now,
and the admin will get their set-password email when it's ready.
@break
@case('sms-balance')
iShapps' Mobile Message account is running out of credit. Every agency's texts stop when it reaches zero,
verification codes included. Top it up in the Mobile Message dashboard.
@break
@case('sms-cap')
{{ $organisation }} reached its monthly SMS cap, so its texts are being refused until next
month. Raise the cap on the organisation's SMS tab in the console if they need more.
@break
@default
Setting up {{ $organisation }} failed, so its admin has not received a sign-in email.
Check the error below, then retry provisioning from the console (or contact the admin).
@endswitch
@foreach ($details as $label => $value)
@if ($value !== null && $value !== '')
{{ $value }}
@endif
@endforeach
@if ($consoleUrl)
Open in the console
@endif
@endsection