@extends('layouts.user_type.auth') @section('pageActions') @endsection @section('maintenanceMode') @include('components.alert')
Maintenance settings
{{ $maintenanceSettings->total() }} settings
@forelse($maintenanceSettings as $index => $maintenance) @php $mmBlocks = array_keys(array_filter([ 'Create' => $maintenance->restrict_create, 'Update' => $maintenance->restrict_update, 'Delete' => $maintenance->restrict_delete, ])); @endphp @empty @endforelse
#MessageModeBlocksStatus
{{ str_pad($maintenanceSettings->firstItem()+$index,2,'0',STR_PAD_LEFT) }}
{{ \Illuminate\Support\Str::limit($maintenance->maintenance_message, 80) ?: 'No message' }}
@if($maintenance->is_maintenance_mode) Enabled @else Disabled @endif
@forelse($mmBlocks as $mmBlock) {{ $mmBlock }} @empty Nothing @endforelse
{{ ucfirst($maintenance->status) }}
@if($maintenance->status !== 'inactive')
@csrf @method('DELETE')
@endif
No maintenance settings
Plan downtime ahead so clients see a clear message instead of errors.
@include('components.pagination', ['paginator' => $maintenanceSettings])
Create Maintenance Mode
Choose what clients can’t do while maintenance is on.
@csrf
Restrict operations
@endsection