feat: inject cookie banner into both Filament panels via renderHook

Adds BODY_END renderHook in TenantPanelProvider and CentralPanelProvider
so the cookie consent banner appears on /app/* and /admin/* pages.
Alpine.js is already bundled by Livewire/Filament — no CDN needed.
Tenant panel uses tenant theme color; central panel uses indigo default.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 20:46:45 +00:00
parent c3e4b99d4b
commit ab0b30af11
2 changed files with 20 additions and 0 deletions
@@ -86,6 +86,16 @@ class CentralPanelProvider extends PanelProvider
</script>
HTML
)
->renderHook(
PanelsRenderHook::BODY_END,
fn (): string => Blade::render(<<<'BLADE'
@php
$tenant = null;
$themeColor = '#6366f1';
@endphp
@include('partials.cookie-banner')
BLADE)
)
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,