@section('site_title', formatTitle([__('Edit'), __('Monitor'), 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.monitors') : route('monitors'), 'title' => __('Monitors')], ['title' => __('Edit')], ]])

{{ __('Edit') }}

{{ __('Monitors') }}
@include('monitors.partials.menu')
@if ($errors->has('paused')) @endif @include('shared.message')
@csrf @if(request()->is('admin/*')) @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
@if ($errors->has('interval')) {{ $errors->first('interval') }} @endif
@cannot('sslMonitoring', ['App\Models\User']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('ssl_alert_days')) {{ $errors->first('ssl_alert_days') }} @endif {{ __('The number of days before SSL certificate expiration to receive an alert.') }}
@cannot('domainMonitoring', ['App\Models\User']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('domain_alert_days')) {{ $errors->first('domain_alert_days') }} @endif {{ __('The number of days before domain name expiration to receive an alert.') }}
@if ($errors->has('alert_text_lookup')) {{ $errors->first('alert_text_lookup') }} @endif
@if ($errors->has('alerts')) {{ $errors->first('alerts') }} @endif
{!! __('Learn more at :url.', ['url' => 'Sending messages using incoming webhooks - Slack']) !!}
{!! __('Learn more at :url.', ['url' => 'Create Incoming Webhooks - Microsoft Teams']) !!}
{!! __('Learn more at :url.', ['url' => 'Intro to Webhooks - Discord']) !!}
{!! __('Learn more at :url.', ['url' => 'Incoming webhooks - Flock']) !!}
{!! __(':api_token and :chat_id must be separated by a space.', ['api_token' => 'api:token', 'chat_id' => 'chat_id']) !!} {!! __('Learn more at :url.', ['url' => 'Telegram Bot API']) !!}
@php if (old('alerts')) { $alertsList = old('alerts'); } elseif($monitor->alerts) { $alertsList = json_decode(json_encode($monitor->alerts), true); } else { $alertsList = []; } @endphp @foreach($alertsList as $id => $alerts)
@if ($errors->has('alerts.'.$id.'.key')) {{ $errors->first('alerts.'.$id.'.key') }} @endif
@if ($errors->has('alerts.'.$id.'.value')) {{ $errors->first('alerts.'.$id.'.value') }} @endif
@endforeach
@if ($errors->has('request_method')) {{ $errors->first('request_method') }} @endif
@if ($errors->has('request_headers')) {{ $errors->first('request_headers') }} @endif
@php if (old('request_headers')) { $requestHeadersList = old('request_headers'); } elseif($monitor->request_headers) { $requestHeadersList = json_decode(json_encode($monitor->request_headers), true); } else { $requestHeadersList = []; } @endphp @foreach($requestHeadersList as $id => $requestHeaders)
@if ($errors->has('request_headers.'.$id.'.key')) {{ $errors->first('request_headers.'.$id.'.key') }} @endif
@if ($errors->has('request_headers.'.$id.'.value')) {{ $errors->first('request_headers.'.$id.'.value') }} @endif
@endforeach
@if ($errors->has('request_auth_username')) {{ $errors->first('request_auth_username') }} @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('request_auth_password')) {{ $errors->first('request_auth_password') }} @endif
@if ($errors->has('cache_buster')) {{ $errors->first('cache_buster') }} @endif {{ __('Appends a unique string at the end of the URL so that every request is unique.') }}
@if ($errors->has('maintenance_start_at')) {{ $errors->first('maintenance_start_at') }} @endif
@if ($errors->has('maintenance_end_at')) {{ $errors->first('maintenance_end_at') }} @endif
{{ __('The maintenance period during which no monitor checks or alerts will be performed.') }}
@if(request()->is('admin/*'))
{{ $monitor->user->name }} {{ $monitor->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.error', ['class' => 'fill-current width-4 height-4'])
{{ __('Incidents') }} {{ number_format($monitor->incidents->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')])
@include('icons.podcasts', ['class' => 'fill-current width-4 height-4'])
{{ __('Status pages') }} {{ number_format($monitor->statusPages->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