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>
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
{{-- Rendered under the sign-in form.
|
|
|
|
Two things belong here and nowhere else: whatever the identity server had
|
|
to say about a redirect that failed (those routes still exist), and the
|
|
language picker — the one place it is needed before there is a user whose
|
|
preference we could read. --}}
|
|
|
|
@if (session('error'))
|
|
<div
|
|
role="alert"
|
|
class="mb-6 rounded-lg border border-danger-300 bg-danger-50 p-4 text-sm text-danger-700 dark:border-danger-700/50 dark:bg-danger-500/10 dark:text-danger-400"
|
|
>
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
|
|
<div class="flex items-center justify-center gap-3 border-t border-gray-200 pt-6 dark:border-white/10">
|
|
@foreach (config('locales.supported') as $code => $meta)
|
|
<a
|
|
href="{{ route('locale.switch', $code) }}"
|
|
@class([
|
|
'text-xs transition',
|
|
'font-semibold text-primary-600 dark:text-primary-400' => app()->getLocale() === $code,
|
|
'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200' => app()->getLocale() !== $code,
|
|
])
|
|
>
|
|
{{ $meta['flag'] }} {{ $meta['native'] }}
|
|
</a>
|
|
@endforeach
|
|
</div>
|