@php $t_grp=App\Models\MyApp::GROUPE_GIR;$t_modalite=App\Models\MyApp::GROUPE_MODALITE; @endphp
| Rubriques | @foreach($t_grp as $grp)Groupe {{ $grp }} | @endforeach||
|---|---|---|---|
| Base | Alloc. | @endforeach||
| {{ $variable->nom }} | @foreach($t_modalite as $modalite){{ $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{{ $variable->{"valeur_".strtolower($grp).strtolower($modalite) } }} | {{ $value }} | @endforeach
| TOTAL | @foreach($t_grp as $grp){{ $total[$grp] }} | @endforeach||