@php $formatGoalTarget = function (mixed $value, ?string $unit): string { $number = rtrim(rtrim(number_format((float) $value, 2, ',', ' '), '0'), ','); return trim($number . ' ' . ($unit ?? '')); }; $progressWidth = function (mixed $value): string { return min(100, max(0, (float) $value)) . '%'; }; @endphp

{{ __('Configuration') }}

{{ __('Objectifs') }}

{{ __('Dashboard') }}
@if (session('status'))
{{ session('status') }}
@endif

{{ __('Liste') }}

{{ __('Objectifs configurés') }}

{{ __('Nouvel objectif') }}

{{ __('Règle à suivre') }}

{{ __('Un objectif définit une mesure, une période et une cible. Les filtres activité sont optionnels.') }}

@include('partials.goal-form', [ 'action' => route('goals.store'), 'method' => 'POST', 'submitLabel' => 'Ajouter', 'cancelUrl' => null, 'modalName' => 'goal-create', 'goal' => null, 'mode' => 'create', ])