@php $t_grp=App\Models\MyApp::GROUPE_GIR;$t_modalite=App\Models\MyApp::GROUPE_MODALITE; @endphp @foreach($t_grp as $grp) @endforeach @foreach($t_grp as $grp) @endforeach @foreach($aggir as $variable) @if($variable->nom) @foreach($t_modalite as $modalite) @foreach($t_grp as $grp) @php $value=$allocataire_gir->getVariableValue($variable->code,$grp,$modalite,true); if(!isset($total[$grp])) $total[$grp]=0; $total[$grp]+=$value; @endphp @endforeach @endforeach @endif @endforeach @foreach($t_grp as $grp) @endforeach
RubriquesGroupe {{ $grp }}
Base Alloc.
{{ $variable->nom }}{{ $modalite }}{{ $variable->{"valeur_".strtolower($grp).strtolower($modalite) } }} {{ $value }}
TOTAL {{ $total[$grp] }}