@if(config('worksites.enabled'))
    @foreach(['site','scanning','attendance'] as $index => $label)
  1. {{ $index + 1 }}. {{ __('scanning.'.$label) }}
  2. @endforeach
@endif

{{ __('worksites.title') }}

@if($worksitesAvailable && !config('worksites.enabled') && !$today['session'] && !$today['closed'])

{{ __('worksites.optionalSelection') }}

@endif @if($currentWorksite)

{{ $currentWorksite['name'] }}

{{ $currentWorksite['address'] }}

{{ __('worksites.'.($currentWorksite['mode'] === 'gps' ? 'verified' : 'manualStatus')) }}

@if($currentWorksite['mode'] === 'gps')

{{ __('worksites.verificationNote') }}

@endif
@endif @if($today['session'])

{{ __('worksites.'.($currentWorksite ? 'locked' : 'legacy')) }}

@elseif(!$worksitesAvailable) @elseif(($flowStep === 1 || (!config('worksites.enabled') && !$currentWorksite)) && !$today['closed'])
{{ __('worksites.title') }}
@forelse($worksiteOptions as $site) @empty

{{ __('worksites.empty') }}

@endforelse

{{ __('worksites.listHint') }}

{{ __('worksites.attendanceNote') }}

@elseif($currentWorksite && !config('worksites.enabled') && !$today['closed'])

{{ __('worksites.optionalConfirmed') }}

@elseif($currentWorksite && !$today['closed'])

{{ __('scanning.choose') }}

@if($scanStatus['mode'] === 'automatic' && !$today['dualJourney']) @if(($scanStatus['error'] ?? null) === 'WORKSITE_FORBIDDEN')@elseif(!$selectedGpsAvailable)@endif @if($scanStatus['ready'])

{{ __('scanning.verified') }}

@endif @endif @endif

{{ __('worksites.locating') }}

@if($worksiteError)@endif @if($error && !$actionsReady)@endif @if($lastAttendance)

{{ __('scanning.saved') }}

{{ $lastAttendance['site'] ?? __('scanning.legacy') }}

{{ $lastAttendance['action'] }} · {{ $lastAttendance['time'] }}

{{ $lastAttendance['mode'] }} · {{ $lastAttendance['gps'] }}

@if($lastAttendance['submitted'] ?? null)

{{ __('scanning.submittedAt') }} {{ $lastAttendance['submitted'] }}

@endif
@endif