@php $num = fn ($v): string => rtrim(rtrim(number_format((float) $v, 2), '0'), '.'); @endphp
{{ __('Per officer and period, from each Performance Agreement. A target counts once someone other than the officer approves it; after that it is revised, never overwritten.') }}
| {{ __('Officer') }} | {{ __('Measure') }} | {{ __('Period') }} | {{ __('Target') }} | {{ __('In force') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|
| {{ $t->user?->name ?? __('Not available') }} | {{ __($metrics[$t->metric] ?? $t->metric) }} @if (in_array($t->metric, $notMeasured, true)) {{ __('Actual not measured yet') }} @endif | {{ __($periods[$t->period] ?? ucfirst($t->period)) }} | {{ $num($t->value) }}{{ $t->metric === 'crm_record_completeness' ? '%' : '' }} @if ($t->revision > 1) {{ __('Revision :n', ['n' => $t->revision]) }} @endif | {{ $t->effective_from->format('j M Y') }} {{ __('to') }} {{ $t->effective_to?->format('j M Y') ?? __('open') }} |
@if ($row['status'] === 'draft')
|
@php($approvable = $row['status'] === 'draft' ? $t : $row['pendingRevision'])
@if ($approvable)
@can('approve', $approvable)
@endcan
@endif
@if ($canSet && ! $row['pendingRevision'] && ! $row['ended'])
@endif
@if ($t->revision > 1 || $row['pendingRevision'])
@endif
@if ($canSet && $row['status'] === 'draft')
@endif
@if ($row['pendingRevision'] && $canSet)
@endif
|
|
|
||||||
{{ __('The current target of :value stays in force until this revision is approved. Approving it closes the current one the day before the revision starts.', ['value' => $num($revising->value)]) }}
@endif{{ __('In force :from to :to. Set by :name.', ['from' => $version->effective_from->format('j M Y'), 'to' => $version->effective_to?->format('j M Y') ?? __('open'), 'name' => $version->creator?->name ?? __('Not available')]) }}
@if ($version->revision_note){{ $version->revision_note }}
@endif