{{--
    Shown on every page of a TEST environment so no one mistakes the isolated
    testing copy for the live tenant. The amber colour and the "Last refreshed
    from Live" stamp make it obvious both what this is and how stale it is.
--}}
<div class="fi-test-environment-banner bg-warning-600 text-white text-sm shadow-sm">
    <div class="mx-auto flex max-w-7xl items-center justify-center gap-x-3 gap-y-1 px-4 py-2">
        <x-filament::icon icon="heroicon-m-beaker" class="h-4 w-4 shrink-0" />

        <span class="font-medium">
            TEST ENVIRONMENT
            @if ($parentName)
                — isolated copy of {{ $parentName }}
            @endif
        </span>

        <span class="opacity-80">
            @if ($lastSyncedAt)
                Last refreshed from Live: {{ $lastSyncedAt->format('d M Y, h:i A') }}
            @else
                Never synced from Live — {{ $tenant->url() }}
            @endif
        </span>
    </div>
</div>