@section('site_title', formatTitle([__('Edit'), __('Status page'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => request()->is('admin/*') ? route('admin.dashboard') : route('dashboard'), 'title' => request()->is('admin/*') ? __('Admin') : __('Home')], ['url' => request()->is('admin/*') ? route('admin.status_pages') : route('status_pages'), 'title' => __('Status pages')], ['title' => __('Edit')], ]])

{{ __('Edit') }}

{{ __('Status page') }}
@include('status-pages.partials.menu')
@include('shared.message')
@csrf @if(request()->is('admin/*')) @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ str_replace(['http://', 'https://'], '', route('status_pages.show', ['id' => '/'])) }}/
@if ($errors->has('slug')) {{ $errors->first('slug') }} @endif {{ __('The URL slug of the status page.') }}
@if (old('monitor_ids') !== null && is_array(old('monitor_ids'))) @foreach (old('monitor_ids') as $monitorId) @endforeach @else @foreach ($statusPage->monitors->pluck('id')->toArray() as $monitorId) @endforeach @endif
@if ($errors->has('monitor_ids')) {{ $errors->first('monitor_ids') }} @endif
@if ($statusPage->logo)
@endif
@if ($errors->has('logo')) {{ $errors->first('logo') }} @endif @if ($errors->has('remove_logo')) {{ $errors->first('remove_logo') }} @endif
@if ($statusPage->logo)
@endif
@if ($statusPage->favicon)
@endif
@if ($errors->has('favicon')) {{ $errors->first('favicon') }} @endif @if ($errors->has('remove_favicon')) {{ $errors->first('remove_favicon') }} @endif
@if ($statusPage->favicon)
@endif
@if ($errors->has('website_url')) {{ $errors->first('website_url') }} @endif {{ __('The primary website URL.') }}
@if ($errors->has('contact_url')) {{ $errors->first('contact_url') }} @endif {{ __('The contact URL.') }} {!! __('Supports :mailto and :tel.', ['mailto' => 'mailto:contact@example.com', 'tel' => 'tel:+0123456789']) !!}
privacy == 1 && old('privacy') == null || old('privacy') == 1) checked @endif>
privacy == 0 && old('privacy') == null || old('privacy') == 0 && old('privacy') != null) checked @endif>
privacy == 2 && old('privacy') == null || old('privacy') == 2) checked @endif>
@include('icons.visibility_off', ['class' => 'width-4 height-4 fill-current text-muted'])@include('icons.visibility', ['class' => 'width-4 height-4 fill-current text-muted d-none'])
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('privacy')) {{ $errors->first('privacy') }} @endif
@if ($errors->has('meta_title')) {{ $errors->first('meta_title') }} @endif
@if ($errors->has('meta_description')) {{ $errors->first('meta_description') }} @endif
noindex && old('noindex') == null || old('noindex')) checked @endif>
@cannot('statusPageCustomization', ['App\Models\User']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('domain')) {{ $errors->first('domain') }} @endif {!! __('The DNS of the domain must include an A record pointing to :ip, or a CNAME record pointing to :domain.', ['ip' => '' . getHostIp() . '', 'domain' => '' . parse_url(config('app.url'), PHP_URL_HOST) . '']) !!}
@cannot('statusPageCustomization', ['App\Models\User']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('custom_css')) {{ $errors->first('custom_css') }} @endif {{ __('Only works when a custom domain is set.') }}
@cannot('statusPageCustomization', ['App\Models\User']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('custom_js')) {{ $errors->first('custom_js') }} @endif {{ __('Only works when a custom domain is set.') }}
@if(request()->is('admin/*'))
{{ $statusPage->user->name }} {{ $statusPage->user->name }} @include((__('lang_dir') == 'rtl' ? 'icons.chevron-left' : 'icons.chevron-right'), ['class' => 'flex-shrink-0 width-3 height-3 fill-current ' . (__('lang_dir') == 'rtl' ? 'mr-auto' : 'ml-auto')])
@include('icons.monitor-heart', ['class' => 'fill-current width-4 height-4'])
{{ __('Monitors') }} {{ number_format($statusPage->monitors->count(), 0, __('.'), __(',')) }} @include((__('lang_dir') == 'rtl' ? 'icons.chevron-left' : 'icons.chevron-right'), ['class' => 'flex-shrink-0 width-3 height-3 fill-current ' . (__('lang_dir') == 'rtl' ? 'mr-auto' : 'ml-auto')])
@endif