Files
landing-api/resources/views/filament/pages/site-maintenance.blade.php
Josep Piguillem 3897113313 Initial commit: Pireon Admin — headless admin panel and public API
Laravel 13 + Filament 5 admin panel and REST API for a non-profit developer
collective, backed by the Pireon OAuth identity server. The public site is a
separate, server-rendered application consuming /api/public/v1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 17:55:27 +02:00

60 lines
2.4 KiB
PHP

<x-filament-panels::page>
{{-- Current state, stated plainly. Whether the public site is down is the
one thing this page must never leave ambiguous. --}}
@if ($this->isEnabled())
<div class="rounded-xl border border-danger-300 bg-danger-50 p-4 dark:border-danger-700/50 dark:bg-danger-500/10">
<div class="flex items-start gap-3">
<x-filament::icon
icon="heroicon-o-exclamation-triangle"
class="mt-0.5 h-5 w-5 shrink-0 text-danger-600 dark:text-danger-400"
/>
<div class="space-y-1">
<p class="font-semibold text-danger-800 dark:text-danger-300">
{{ __('maintenance.status_down') }}
</p>
<p class="text-sm text-danger-700 dark:text-danger-400">
@if ($this->startedAt())
{{ __('maintenance.since', ['time' => $this->startedAt()]) }}
@endif
@if ($this->endsAt())
· {{ __('maintenance.lifts_at', ['time' => $this->endsAt()]) }}
@endif
</p>
<p class="text-sm text-danger-700 dark:text-danger-400">
{{ __('maintenance.panel_unaffected') }}
</p>
</div>
</div>
</div>
@else
<div class="rounded-xl border border-success-300 bg-success-50 p-4 dark:border-success-700/50 dark:bg-success-500/10">
<div class="flex items-center gap-3">
<x-filament::icon
icon="heroicon-o-check-circle"
class="h-5 w-5 shrink-0 text-success-600 dark:text-success-400"
/>
<p class="font-semibold text-success-800 dark:text-success-300">
{{ __('maintenance.status_up') }}
</p>
</div>
</div>
@endif
{{ $this->form }}
<div class="text-sm text-gray-500 dark:text-gray-400">
<p>{{ __('maintenance.bypass_hint') }}</p>
</div>
@unless ($this->canToggle())
<div class="rounded-lg border border-gray-200 p-4 text-sm text-gray-500 dark:border-white/10 dark:text-gray-400">
{{ __('maintenance.no_permission') }}
</div>
@endunless
</x-filament-panels::page>