{{ __('maintenance.title') }}

{{ __('maintenance.subtitle') }}

{{-- Windows list --}}
@if ($windows->isEmpty())

{{ __('maintenance.empty') }}

@else
@foreach ($windows as $w) @php $tone = ['draft' => 'info', 'upcoming' => 'provisioning', 'active' => 'warning', 'completed' => 'active', 'cancelled' => 'suspended'][$w['state']] ?? 'info'; @endphp @endforeach
{{ __('maintenance.col_window') }} {{ __('maintenance.col_when') }} {{ __('maintenance.col_impact') }} {{ __('maintenance.col_state') }} {{ __('maintenance.col_actions') }}
{{ $w['title'] }} {{ $w['starts_at']->isoFormat('DD.MM. HH:mm') }} – {{ $w['ends_at']->isoFormat('HH:mm') }} {{ __('maintenance.impact', ['hosts' => $w['hosts'], 'customers' => $w['affected']]) }} {{ __('maintenance.state_'.$w['state']) }}
@if ($w['is_draft']) @endif @if ($w['cancellable']) @endif
@endif
{{-- Create form --}}

{{ __('maintenance.new_title') }}

@error('startsAt')

{{ $message }}

@enderror
@error('endsAt')

{{ $message }}

@enderror

{{ __('maintenance.field_hosts') }}

@error('hostIds')

{{ $message }}

@enderror
@foreach ($datacenters as $dc) @php $dcHosts = $hosts->where('datacenter', $dc->code); @endphp @if ($dcHosts->isNotEmpty())

{{ $dc->name }}

@foreach ($dcHosts as $host) @endforeach
@endif @endforeach
{{ __('maintenance.save_draft') }} {{ __('maintenance.publish_notify') }}

{{ __('maintenance.mail_note') }}