@php // Get custom maintenance message from Settings $maintenanceMessage = \App\Services\SettingsService::getMaintenanceMessage(); // Get logos and company name from Customisation extension $lightLogo = \App\Extensions\Installed\Customisation\Models\Customization::getLogoUrl('light'); $darkLogo = \App\Extensions\Installed\Customisation\Models\Customization::getLogoUrl('dark'); $companyName = \App\Models\GlobalSetting::get('company_name') ?: \App\Extensions\Installed\Customisation\Models\Customization::get('company_name') ?: config('app.name'); @endphp {{ __('Service Unavailable') }} - {{ $companyName }} @vite(['resources/css/app.css', 'resources/js/app.js']) @fluxAppearance
{{ $companyName }}

{{ __('Service Unavailable') }}

@if($maintenanceMessage)

@replacePlaceholders($maintenanceMessage)

@else

{{ __('We are currently performing scheduled maintenance. Please check back soon.') }}

@endif @php $scheduledEnd = \App\Services\SettingsService::getScheduledEnd(); @endphp @if($scheduledEnd)
{{ __('Expected to be back by') }} {{ \Carbon\Carbon::parse($scheduledEnd)->format('M j, Y \a\t g:i A') }}
@endif {{-- Staff Login Link --}}
@php $supportEmail = \App\Extensions\Installed\Customisation\Models\Customization::get('support_email'); $supportPhone = \App\Extensions\Installed\Customisation\Models\Customization::get('support_phone'); @endphp @if($supportEmail && $supportPhone) {{-- Both email and phone are set --}}
{{ __('If you need immediate assistance, please contact support at') }} {{ $supportEmail }} {{ __('or phone us on') }} {{ $supportPhone }}.
@elseif($supportEmail) {{-- Only email is set --}}
{{ __('If you need immediate assistance, please contact support at') }} {{ $supportEmail }}.
@elseif($supportPhone) {{-- Only phone is set --}}
{{ __('If you need immediate assistance, please phone us on') }} {{ $supportPhone }}.
@endif {{-- Live Chat Widget - Always embed if available (independent of email/phone) --}} @php $liveChatEnabled = app('extensions')->isInstalled('live-chat') && app('extensions')->isEnabled('live-chat'); $liveChatWidget = null; if ($liveChatEnabled) { try { $reverbConfigured = config('broadcasting.default') === 'reverb' && config('reverb.servers.reverb.host'); if ($reverbConfigured && class_exists('\App\Extensions\Installed\LiveChat\Models\ChatWidgetSetting')) { $widgetClass = \App\Extensions\Installed\LiveChat\Models\ChatWidgetSetting::class; $liveChatWidget = $widgetClass::where('enabled', true) ->orderByRaw('department_id IS NULL DESC') ->first(); } } catch (\Exception $e) { // Silently fail if widget class not found \Illuminate\Support\Facades\Log::warning('LiveChat widget check failed on 503 page: ' . $e->getMessage()); } } @endphp @if($liveChatWidget) @php $widgetGenerator = new \App\Extensions\Installed\LiveChat\Services\WidgetGenerator(); echo $widgetGenerator->generateEmbedCode($liveChatWidget); @endphp @endif