@extends('layouts.app') @section('title', 'Maintenance windows') @section('content')

Maintenance windows

Suppress alerting on devices that are being worked on, and tell customers in advance.

← NOC
@forelse ($windows as $window) @php $inProgress = $window->starts_at->isPast() && $window->ends_at->isFuture(); $isDone = $window->ends_at->isPast(); $deviceCount = is_array($window->device_ids) ? count($window->device_ids) : 0; @endphp @empty @endforelse
WindowTypeStartsEnds DevicesSuppressionStatus
{{ $window->title }} @if ($window->description)
{{ Str::limit($window->description, 90) }}
@endif
{{ title_case_words($window->type) }} {{ $window->starts_at->format('j M Y H:i') }} {{ $window->ends_at->format('j M Y H:i') }} {{ $deviceCount }} @if ($window->suppress_alerts)alerts muted@endif @if ($window->notify_customers)customers notified@endif @unless ($window->suppress_alerts || $window->notify_customers) none @endunless {{ title_case_words($window->status) }} @if ($inProgress)in progress@endif @if (! $isDone && $window->status !== 'completed')
@csrf
@endif
@include('components.empty-state', [ 'title' => 'No maintenance scheduled', 'message' => 'Plan a window before taking equipment down for work.', ])
@if ($windows->hasPages()) {{ $windows->links('partials.pagination') }} @endif
{{-- Schedule modal --}} @endsection