@extends('admin.layouts.master-soyuz') @section('title', __('Maintenance Mode')) @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading'){{ __('Maintenance Mode') }}@endslot @slot('menu1'){{ __('Maintenance Mode') }}@endslot @endcomponent @php $isOn = isset($data) && $data->status == 1; $myIp = Request::ip(); @endphp
{{-- Status banner --}}
@if($isOn)@else@endif

{{ $isOn ? __('Maintenance mode is ACTIVE') : __('Site is LIVE') }}

{{ $isOn ? __('The storefront is hidden from public visitors. Super Admins and whitelisted IPs still have access.') : __('Your storefront is publicly accessible. Toggle maintenance mode below to take it offline temporarily.') }}

{{ __('Your IP') }}
{{ $myIp }}
@if ($errors->any()) @endif @if(session()->has('added')) @endif
@csrf
{{-- LEFT: form --}}
{{ __('Configuration') }}
{{-- Toggle --}}
{{ __('Enable Maintenance Mode') }}
{{ __('Toggle to take the storefront offline. Admins keep full access.') }}
{{-- Allowed IPs --}}
{{ __('Visitors from these IPs will see the live site even when maintenance is on. Type an IP and press Enter / comma / space to add.') }} @if(!in_array($myIp, $data->allowed_ips ?? [])) @endif @error('allowed_ips')
{{ $message }}
@enderror
{{-- Message --}}
{{ __('HTML allowed. Visitors see this in place of the storefront.') }} @error('message')
{{ $message }}
@enderror
{{-- RIGHT: info panel --}}
{{ __('How maintenance works') }}
  • {{ __('Storefront responds with HTTP 503') }}
  • {{ __('Super Admins always bypass') }}
  • {{ __('Whitelisted IPs see the live site') }}
  • {{ __('Admin login & dashboard remain reachable') }}
  • {{ __('To preview, open the site in an incognito window') }}
@if($isOn)
{{ __('Preview maintenance page') }}

{{ __('Open in private window to see what your visitors will see.') }}

{{ __('Open storefront') }}
@endif
@endsection @section('custom-script') @endsection