{{-- Top cards --}}
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach
{{-- Workspaces --}}

{{ __('Workspaces') }}

{{ __('Live workspaces first, archives underneath.') }}

@forelse ($teams as $team) @empty @endforelse
{{ __('Workspace') }} {{ __('State') }} {{ __('Archived') }} {{ __('Unlock window') }} {{ __('Users') }} {{ __('Actions') }}
{{ \Illuminate\Support\Str::of($team->name)->substr(0, 1)->upper() }}

{{ $team->name }}

@if ($team->id === $currentTeamId) {{ __('You are here') }} @endif
@if (! $team->isArchived()) {{ __('Live') }} @elseif ($team->isUnlocked()) {{ __('Unlocked') }} @else {{ __('Archive, read-only') }} @endif {{ $team->archived_at?->timezone($displayTimezone)->format('j M Y') ?? '—' }} @if ($team->isUnlocked()) {{ __('Locks at :time', ['time' => $team->unlockWindowEndsAt()->timezone($displayTimezone)->format('H:i')]) }} {{ trans_choice('{1} 1 minute left|[2,*] :count minutes left', $team->unlockMinutesLeft(), ['count' => $team->unlockMinutesLeft()]) }} @if ($team->unlockedBy) · {{ $team->unlockedBy->name }} @endif @elseif ($team->isArchived() && $team->unlockedBy) {{ __('Last opened by :who', ['who' => $team->unlockedBy->name]) }} @else — @endif {{ $team->users_count }}
@if ($team->id !== $currentTeamId) @endif @if (! $team->isArchived()) @else @if ($team->isUnlocked()) @else @endif @endif
{{-- History --}}

{{ __('Archive history') }}

{{ __('Every archive, unlock and relock, with the reason given at the time.') }}

@forelse ($history as $event) @empty @endforelse
{{ __('When') }} {{ __('Workspace') }} {{ __('What') }} {{ __('Who') }} {{ __('Reason') }}
{{ $event->created_at?->timezone($displayTimezone)->format('j M Y, H:i') }} {{ $event->team?->name ?? '—' }} {{ $event->label() }} {{ $event->user?->name ?? __('Unknown') }} {{ $event->reason ?? '—' }}
{{-- Archive a workspace --}} {{ __('Archive :workspace', ['workspace' => $target?->name ?? __('workspace')]) }}

{{ __('Everyone keeps their access to read it. Nobody, including you, will be able to change anything in it until it is unlocked or made live again.') }}

{{ __('Cancel') }} {{ __('Archive workspace') }} {{ __('Archiving…') }}
{{-- Unlock an archive --}} {{ __('Unlock :workspace', ['workspace' => $target?->name ?? __('archive')]) }}

{{ __('The archive becomes writable for the window you set, then locks itself again with nobody having to do anything. The other administrators are told at once.') }}

{{ __('Up to :max minutes.', ['max' => $maxMinutes]) }}

{{ __('Cancel') }} {{ __('Unlock') }} {{ __('Unlocking…') }}