{{-- General information --}}

{{ __('bilan.general') }}

{{-- A. Wheel of the 7 dimensions --}}

{{ __('bilan.wheel_title') }}

{{ __('bilan.wheel_intro') }}

@foreach ($dimensions as $dimension) @php $assessmentId = $assessmentDimension->search($dimension->id); @endphp
@if (! $dimension->hidden && $assessmentId !== false)
@elseif ($dimension->hidden)

{{ __('bilan.hidden') }}

@endif
@endforeach
{{-- B. Documented elements --}}

{{ __('bilan.documented_title') }}

{{ __('bilan.documented_intro') }}

@foreach ($rows['documented'] ?? [] as $id => $row) @php $key = \App\Models\BilanEntry::find($id)?->content; @endphp

{{ __('bilan.documented.'.$key) }}

@endforeach
{{-- C. Gap analysis --}}

{{ __('bilan.gaps_title') }}

{{ __('bilan.gaps_intro') }}

@forelse ($rows['gaps'] ?? [] as $id => $row) @php $planned = $row['planned_value']; $actual = $row['actual_value']; $gap = ($planned !== null && $actual !== null) ? $actual - $planned : null; $rate = ($planned !== null && $actual !== null && (float) $planned != 0.0) ? $actual / $planned : null; @endphp

{{ __('bilan.gap') }} : {{ $gap === null ? '-' : number_format((float) $gap, 0, ',', ' ') }}

{{ __('bilan.rate') }} : {{ $rate === null ? '-' : round($rate * 100).' %' }}

@empty

{{ __('bilan.empty_gaps') }}

@endforelse {{ __('bilan.add_gap') }}

{{ __('bilan.five_whys_link') }}

{{-- Synthesis --}}

{{ __('bilan.synthesis_title') }}

{{ __('bilan.successes') }} @foreach ($rows['success'] ?? [] as $id => $row) @endforeach
{{ __('bilan.difficulties') }} @foreach ($rows['difficulty'] ?? [] as $id => $row)
@endforeach
{{ __('bilan.lessons', ['year' => $cycle->yearLabel()]) }} @foreach ($rows['lesson'] ?? [] as $id => $row) @endforeach
@foreach (['habit_keep', 'habit_drop'] as $type)
{{ __('bilan.'.$type) }} @foreach ($rows[$type] ?? [] as $id => $row)
@endforeach {{ __('bilan.add_habit') }}
@endforeach
{{ __('bilan.failure_causes') }} @foreach ($rows['failure_cause'] ?? [] as $id => $row) @endforeach