Progress: {{ round($goalStats['avgPercentComplete']) }}%
On Track
{{ $goalStats['goalsOnTrack'] }}At Risk
{{ $goalStats['goalsAtRisk'] }}Miss
{{ $goalStats['goalsMiss'] }}
@php
$canvasSvc = app()->make(Goalcanvas::class);
$canvasItems = $canvasSvc->getCanvasItemsById($canvasRow["id"]);
@endphp
@endforeach
@endif
@if (!is_countable($canvasItems) || count($canvasItems) == 0)
Metric: {{$row["description"] }}
@php $percentDone = $row["goalProgress"]; $metricTypeFront = ''; $metricTypeBack = ''; if ($row["metricType"] == "percent") { $metricTypeBack = '%'; } elseif ($row["metricType"] == "currency") { $metricTypeFront = __("language.currency"); } @endphp
@if (!empty($statusLabels))
@endif
@if (!empty($relatesLabels))
@endif
@if ($row['milestoneHeadline'] != '')
@endif
@endif
@endforeach
No goals on this board yet. Open the board to start adding goals
@endif
@foreach ($canvasItems as $row)
@php
$filterStatus = $filter['status'] ?? 'all';
$filterRelates = $filter['relates'] ?? 'all';
@endphp
@if ($row['box'] === $elementName && ($filterStatus == 'all' || $filterStatus == $row['status']) && ($filterRelates == 'all' || $filterRelates == $row['relates']))
@php
$comments = app()->make(Comments::class);
$nbcomments = $comments->countComments(moduleId: $row['id']);
@endphp
@if ($login::userIsAtLeast($roles::$editor))
@endif
@if ($login::userIsAtLeast($roles::$editor))
@endif
Goal: {{ $row["title"] }}
Metric: {{$row["description"] }}
@php $percentDone = $row["goalProgress"]; $metricTypeFront = ''; $metricTypeBack = ''; if ($row["metricType"] == "percent") { $metricTypeBack = '%'; } elseif ($row["metricType"] == "currency") { $metricTypeFront = __("language.currency"); } @endphp
{{ sprintf(__("text.percent_complete"), $percentDone) }}
Start:
{{ $metricTypeFront . $row["startValue"] . $metricTypeBack }}
{{ $metricTypeFront . $row["startValue"] . $metricTypeBack }}
{{ __('label.current') }}:
{{ $metricTypeFront . $row["currentValue"] . $metricTypeBack }}
{{ $metricTypeFront . $row["currentValue"] . $metricTypeBack }}
{{ __('label.goal') }}:
{{ $metricTypeFront . $row["endValue"] . $metricTypeBack }}
{{ $metricTypeFront . $row["endValue"] . $metricTypeBack }}
{{ $nbcomments }}
{{ __("label.loading_milestone") }}
{!! file_get_contents(ROOT . "/dist/images/svg/undraw_design_data_khdb.svg") !!}
{{ __("headlines.goal.analysis") }}
{!! __("text.goal.helper_content") !!} @if ($login::userIsAtLeast($roles::$editor))
{{ __("links.icon.create_new_board") }} @endif