@if ($selected)
{{ $selected->yearLabel() }}
{{ __('closing.period', ['from' => App\Support\Dates::format($selected->starts_on), 'to' => App\Support\Dates::format($selected->ends_on)]) }}
{{ __('closing.read_only') }}
@if (trim((string) $selected->declaration) !== '')
{{ __('closing.declaration') }}
{{ $selected->declaration }}
@endif
@php $o = $data['objectives']; $a = $data['actions']; @endphp
@foreach ([['dashboard.objectives_attained', $o['attained'].' / '.$o['active']], ['dashboard.average_progress', App\Support\Percent::whole($o['average_progress']).' %'], ['dashboard.actions_done', $a['done'].' / '.$a['total']], ['dashboard.action_rate', App\Support\Percent::whole($a['rate']).' %']] as [$k, $v])
{{ __($k) }}
@endforeach
{{ __('closing.objectives') }}
@foreach ($data['objective_rows'] as $row)
{{ trim($row['objective']->title) !== '' ? $row['objective']->title : __('objectives.untitled') }}
{{ $row['progress'] === null ? '-' : App\Support\Percent::whole($row['progress']).' %' }}
{{ $row['status']->label() }}
@endforeach
@if ($assessments->isNotEmpty())
{{ __('closing.dimensions_title') }}
| {{ __('closing.dimension') }} | {{ __('closing.start') }} | {{ __('closing.end') }} |
@foreach (($assessments['bilan'] ?? collect()) as $b)
| {{ $b->dimension->labelFor(auth()->user()) }} | {{ $b->score ?? '-' }} | {{ ($assessments['end'] ?? collect())->firstWhere('life_dimension_id', $b->life_dimension_id)?->score ?? '-' }} |
@endforeach
@endif
@else
@forelse ($cycles as $c)
{{ __('closing.period', ['from' => App\Support\Dates::format($c->starts_on), 'to' => App\Support\Dates::format($c->ends_on)]) }}
@if ($openIds->contains($c->id))
{{ __('closing.open') }}
@else
{{ __('closing.locked') }}
@endif
@empty
{{ __('closing.archive_empty') }}
@endforelse
@if ($cycles->count() > $openIds->count()){{ __('closing.archive_locked') }}
@endif
@endif