@php /** * Persistent notice while you are standing inside an archived workspace. * * Saving in an archive does nothing, so the one thing that must never * happen is a person typing an invoice in here and wondering why it * vanished. It sits above everything on every page, and says which of the * two states you are in: frozen, or briefly open with a clock running. */ $archiveTeam = Auth::user()?->currentTeam; $archiveOpen = $archiveTeam && \App\Support\ArchiveGuard::isUnlocked($archiveTeam); $archiveEndsAt = $archiveOpen ? \App\Support\ArchiveGuard::unlockedUntil($archiveTeam)->timezone(config('app.display_timezone', 'Africa/Harare')) : null; @endphp @if ($archiveTeam && \App\Support\ArchiveGuard::isArchived($archiveTeam))
{{ $archiveTeam->name }} @if ($archiveOpen) {{ __('is an archive that has been unlocked. Changes you make now are real, and it locks itself again at :time.', ['time' => $archiveEndsAt->format('H:i')]) }} @else {{ __('is an archive. You can read everything in it; nothing can be saved until an administrator unlocks it.') }} @endif