@if ($limit !== null)

{{ __('objectives.limit_notice', ['count' => $activeCount, 'max' => $limit]) }}

@endif @forelse ($rows['objectives'] ?? [] as $id => $row) @php $c = $computed[$id]; $ro = ! $editable->contains($id); $statusVariant = match ($c->status) { \App\Enums\ObjectiveStatus::Achieved, \App\Enums\ObjectiveStatus::OnTrack => 'ok', \App\Enums\ObjectiveStatus::Watch => 'warn', \App\Enums\ObjectiveStatus::Late => 'bad', default => 'neutral', }; @endphp

{{ __('objectives.objective_n', ['n' => $loop->iteration]) }}

{{ trim((string) ($row['title'] ?? '')) !== '' ? $row['title'] : __('objectives.untitled') }}

{{ $c->status->label() }} @if ($ro){{ __('plan.limits.read_only_badge') }}@endif
{{ $c->progress === null ? '-' : round($c->progress * 100).' %' }}
@if ($ro){{ __('objectives.read_only') }} {{ __('plan.limits.see_offers') }}@endif
{{ __('objectives.smart_title') }} @foreach (['specific', 'measurable', 'achievable', 'relevant', 'timebound'] as $criterion) @endforeach
{{-- Where I am: current value, progress, history --}}

{{ __('objectives.tracking') }}

{{ __('objectives.current_value') }} : {{ $c->current === null ? __('objectives.no_measure') : rtrim(rtrim(number_format((float) $c->current, 2, ',', ' '), '0'), ',') }}

{{ __('objectives.progress') }} : {{ $c->progress === null ? '-' : round($c->progress * 100).' %' }}

{{ __('objectives.expected') }} : {{ $c->expected === null ? '-' : round($c->expected * 100).' %' }}

@unless ($ro)
{{ __('objectives.record') }}
@error('value')

{{ $message }}

@enderror

{{ __('objectives.current_hint') }}

@endunless @if ($c->history->isNotEmpty())

{{ __('objectives.history') }}

    @foreach ($c->history as $m)
  • {{ App\Support\Dates::format($m->measured_on) }} : {{ rtrim(rtrim(number_format((float) $m->value, 2, ',', ' '), '0'), ',') }} @unless ($ro)@endunless
  • @endforeach
@endif
@empty

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

@endforelse @if ($limitReached || ! $canAdd) {{ __('objectives.limit_reached', ['max' => $limit]) }} {{ __('plan.limits.see_offers') }} @endif {{ __('objectives.add') }}