@push('styles') @endpush
{{-- Page Header --}}

{{ __('Maintenance Mode') }}

{{ __('Take your application offline for scheduled updates and optimization.') }}

@csrf @method('PUT')
{{-- Left: Controls (Col-4) --}}
{{-- Status Card (Backup Styling) --}}
Storage Health
@if($is_down) Maintenance @else Operational @endif

@if($is_down) System Offline @else Systems Ready @endif

Public access control center.

{{-- Config Sections --}}
{{ __('Visual & Branding') }}
{{ __('Time & Access') }}
{{ __('Broadcast Warning') }}

{{ __('Alert all active users before shutting down the system. They will receive a real-time notification.') }}

@can('manage maintenance mode')
@endcan
{{-- Right: Live Preview (Col-8) --}}
{{-- Toolbar --}}
{{ url('/') }}
{{-- Viewport (Design from Image) --}}
{{-- Maintenance Pill --}}
{{ __('UNDER MAINTENANCE') }}
{{-- Logo Container --}}
@php $mnt_img = $settings['maintenance_mode_image'] ?? ''; $display_img = null; if (!empty($mnt_img)) { $display_img = str_starts_with($mnt_img, 'assets/') ? asset($mnt_img) : asset('storage/' . $mnt_img); } elseif (!empty($settings['app_logo'])) { $display_img = str_starts_with($settings['app_logo'], 'assets/') ? asset($settings['app_logo']) : asset('storage/' . $settings['app_logo']); } @endphp @if($display_img) Logo @else @endif
{{-- Content --}}

{{ $settings['maintenance_mode_title'] ?? 'biiproject.com' }}

{{ $settings['maintenance_mode_message'] ?? 'We are currently performing scheduled maintenance. We will be back shortly!' }}

{{-- Countdown Grid (Image Style) --}}
@foreach(['Days', 'Hours', 'Mins', 'Secs'] as $label)
00
{{ $label }}
@endforeach
@push('scripts') @endpush