@extends('layouts.dashboard') @section('content') @php /** * Maintenance mode — moved out of Settings → General into its own Configuration page. * Turning it on serves the storefront a branded 503; the dashboard stays reachable. */ @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp
@php $maintOn = setting('maintenance_enabled', '0') === '1'; @endphp

{{ t_raw('admin.settings.maintenance_heading') }}

{!! $maintOn ? t('common.enabled') : t('common.disabled') !!}
@csrf

{{ t_raw('admin.settings.hint_maintenance') }}

@php /* When the window closes. Stored as UTC, shown here on the operator's own clock so the field reads the same as the wall behind them. Leaving it empty is a real answer: maintenance then runs until it is switched off by hand, exactly as it behaved before there was a timer. */ $maintUntil = \App\Services\Maintenance::until(); $maintLocal = $maintUntil !== null ? (new DateTime('@' . $maintUntil)) ->setTimezone(new DateTimeZone((string) setting('timezone', date_default_timezone_get()))) ->format('Y-m-d\TH:i') : ''; @endphp

{{ t_raw('admin.settings.hint_maintenance_message') }}

@php /* /.qm-d2 */ @endphp @endsection