@if ($flash)
{{ $flash }}
@endif @if ($error)@endif

{{ __('smgv.closing.title') }} {{ $year }}

@if ($employees->isEmpty())

{{ __('smgv.noEmployees') }}

@else
@foreach (range(1, 12) as $m)@endforeach @foreach ($employees as $e) @php($es = $states->get($e->id, collect())->keyBy('month')) @foreach (range(1, 12) as $m) @php($s = $es->get($m)?->status ?? 'draft') @endforeach @endforeach
{{ __('smgv.employee') }}{{ __('smgv.monthsShort.'.$m) }}
{{ $e->name }}
@foreach (__('smgv.states') as $k => $l)@endforeach
@endif
@if ($emp)

{{ $emp->name }} · {{ __('smgv.months.'.$month) }} {{ $year }}

@if ($check) @if ($check['blocking'] === [])
{{ __('smgv.closing.ok') }}
@else
{{ __('smgv.closing.blocking') }}
    @foreach ($check['blocking'] as $b)
  • {{ __('smgv.warnings.'.$b) }}
  • @endforeach
@endif @if ($check['notices'] !== [])
{{ __('smgv.closing.notices') }}
    @foreach ($check['notices'] as $n)
  • {{ __('smgv.warnings.'.$n) }}
  • @endforeach
@endif @endif
@if (($state?->status ?? 'draft') !== 'closed') @endif {{ __('smgv.nav.monthly') }}
@if (($state?->status ?? 'draft') === 'closed')
@endif

{{ __('smgv.basis.tabs.history') }}

    @foreach ($closings as $c)
  • {{ __('smgv.closing.closedBy', ['name' => $admins[$c->closed_by_id] ?? '—', 'date' => $c->closed_at->timezone(config('qw.business_timezone'))->format('d.m.Y H:i'), 'rev' => $c->revision]) }} {{ __('smgv.closing.snapshot') }} {{ substr($c->checksum, 0, 16) }}… · {{ $c->rules_verified ? __('smgv.final') : __('smgv.draft') }}
  • @endforeach @foreach ($reopenings as $r)
  • {{ __('smgv.closing.reopen') }} · Rev. {{ $r->from_revision }} · {{ $admins[$r->reopened_by_id] ?? '—' }} · {{ $r->reopened_at->timezone(config('qw.business_timezone'))->format('d.m.Y H:i') }}{{ $r->reason }}
  • @endforeach @if ($closings->isEmpty() && $reopenings->isEmpty())
  • —
  • @endif
@endif