@extends('layouts.embed') @section('title') {{ $compte->name }} - Suivi des engagements @endsection @section('content') @if (!$is_embed)
@endif

@if ($configuration AND $configuration->title != null) {{ $configuration->title }} au {{ $today_date->day }} {{ $today_date->monthName }} {{ $today_date->year }} @else Suivi des engagements du mandat au {{ $today_date->day }} {{ $today_date->monthName }} {{ $today_date->year }} @endif

@if ($configuration AND !empty($configuration->header_text))

{{ $configuration->header_text }}

@endif
@php $previous = 0; @endphp @foreach ($graph_items as $item)
{{ $item['name'] }} : {{ round($item['percent']) }}%
@php $previous += $item['percent']; @endphp @endforeach
@foreach ($graph_items as $item)
@endforeach
@foreach ($thematiques as $thematique)
@if (!empty($thematique->image_path))
@endif

{{ $thematique->name }}

@foreach ($thematique->engagements as $engagement) @php $page = floor($loop->index / 5) + 1; @endphp @endforeach
@if (count($thematique->engagements) > 5) Voir plus d'engagements @endif
@endforeach
@if (!$is_embed)
@endif @endsection @section('js-script') @endsection