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>
23 lines
982 B
PHP
23 lines
982 B
PHP
{{-- Rendered at the very top of every page in the panel, on every install.
|
|
|
|
The failure this exists for runs in one direction only: mistaking a real
|
|
deployment for a throwaway copy, not the other way round. Nobody edits a
|
|
local clone carefully because they think it is production — the mistake
|
|
that costs something is the reverse. So `local` stays silent, and
|
|
anything else says so, loudly in the one case that matters. --}}
|
|
|
|
@unless (app()->environment('local'))
|
|
<div
|
|
role="status"
|
|
@class([
|
|
'w-full py-1 text-center text-xs font-semibold tracking-wide text-white uppercase',
|
|
'bg-danger-600' => app()->environment('production'),
|
|
'bg-warning-600' => ! app()->environment('production'),
|
|
])
|
|
>
|
|
{{ app()->environment('production')
|
|
? __('panel.environment.production')
|
|
: __('panel.environment.other', ['name' => app()->environment()]) }}
|
|
</div>
|
|
@endunless
|