{{-- Breakdown of one objective --}}

{{ __('actions.breakdown_title') }}

{{ __('actions.breakdown_intro') }}

@if (count($objectiveOptions) === 0)

{{ __('actions.breakdown_empty') }}

@else @foreach ($rows['breakdowns'] ?? [] as $id => $row) @php $level = \App\Models\ObjectiveBreakdown::find($id)?->level; @endphp @endforeach @endif
{{-- Action plan --}}

{{ __('actions.plan_title') }}

@if ($limit !== null)

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

@endif
@forelse ($visibleIds as $id) @php $row = $rows['actions'][$id]; $c = $computed[$id]; $ro = ! $editable->contains($id); $alertVariant = match ($c->alert) { \App\Enums\AlertCode::Done, \App\Enums\AlertCode::OnTrack => 'ok', \App\Enums\AlertCode::DoneLate, \App\Enums\AlertCode::EndDateMissing, \App\Enums\AlertCode::DueSoon => 'warn', \App\Enums\AlertCode::Overdue => 'bad', default => 'neutral', }; @endphp

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

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

{{ $row['due_on'] ? __('actions.summary_due', ['date' => App\Support\Dates::format(\Illuminate\Support\Carbon::parse($row['due_on']))]) : __('actions.no_due') }}

{{ $c->alert->label() }} @if ($ro){{ __('plan.limits.read_only_badge') }}@endif
@if ($ro){{ __('actions.read_only') }} {{ __('plan.limits.see_offers') }}@endif
@if ($c->duration !== null)

{{ __('actions.duration', ['days' => $c->duration]) }}

@endif
@empty

{{ count($rows['actions'] ?? []) ? __('actions.empty_filtered') : __('actions.empty') }}

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