@if (auth()->user()->user_role_id !== 7 && auth()->user()->user_role_id !== 1 ) @else
@endif
{{--
--}} @if (auth()->user()->user_role_id !== 7 && auth()->user()->user_role_id !== 1 ) @else
@endif
{{--
--}}

Paiements par période et type de frais

@php $currentClass = null; $rowspan = 0; $classTotalCA12 = 0; // Total CA_12 pour la classe $classTotalCA11 = 0; // Total CA_11 pour la classe @endphp @foreach ($datas as $key => $row) @php $isFirstRowForClass = $currentClass !== $row->classe; if ($isFirstRowForClass) { $currentClass = $row->classe; // Calcul des totaux pour la classe en cours $classTotalCA12 = $datas->where('classe', $row->classe)->sum('ca_12'); $classTotalCA11 = $datas->where('classe', $row->classe)->sum('ca_11'); } // Total par mode pour chaque ligne // $totalMode12 = $row->ca_12 + $row->recette_12 + $row->prevision_12; $totalMode12 = $row->recette_12 + $row->prevision_12; // $totalMode11 = $row->ca_11 + $row->recette_11 + $row->prevision_11; $totalMode11 = $row->recette_11 + $row->prevision_11; @endphp @if ($isFirstRowForClass) @endif {{-- --}} @if ($loop->first || $isFirstRowForClass) @endif {{-- --}} @if ($loop->first || $isFirstRowForClass) @endif @if ($loop->first || $isFirstRowForClass) @endif @endforeach
Dip/Niv/Filère Mode {{ getAnneeName($annee_passee_id) }} {{ getAnneeName($annee_id) }} Évolution
Recette Prévision Total/mode Total Recette Prévision Total/mode Total
{{ $row->classe }}{{ $row->ins_mode }}{{ number_format($row->ca_11, 0, ',', ' ') }}{{ number_format($row->recette_11, 0, ',', ' ') }} {{ number_format($row->prevision_11, 0, ',', ' ') }} {{ number_format($totalMode11, 0, ',', ' ') }} {{ number_format($classTotalCA11, 0, ',', ' ') }} {{ number_format($row->ca_12, 0, ',', ' ') }}{{ number_format($row->recette_12, 0, ',', ' ') }} {{ number_format($row->prevision_12, 0, ',', ' ') }} {{ number_format($totalMode12, 0, ',', ' ') }} {{ number_format($classTotalCA12, 0, ',', ' ') }} @if ($classTotalCA11 == 0) __ @else {{ number_format(($classTotalCA12-$classTotalCA11)*(100/$classTotalCA11), 2, ',', ' ') }} % @endif