{!! html()->label("Ressources de l'allocataire",'',) !!} @if($mode=="show") @endif @foreach($ressources as $ressource) @php $fini=($ressource->DateFinUS<=date('Y-m-d') && ($ressource->DateFin)) ; if(!isset($total)) $total=0; $style_montant="color:darkblue;font-weight:bold;"; if(!$fini) $total+=$ressource->montant; else $style_montant="color:grey;font-style:italic;"; @endphp @if($mode=="show") @endif @endforeach @if($mode=="show") @endif
Type Source Date de Fin Observations Montant
{{ $ressource->Type }} {{ $ressource->source }} {{ $ressource->DateFin }} {{ $ressource->observations }} {{ $ressource->montant }}
TOTAL au {{ date('d/m/Y') }} {{ isset($total)?$total:0 }}
{!! html()->label( 'Montant Retraite CPSWF','montant_retraite_cpswf') !!} @if(App\Models\MyApp::hasSIPREDroit("montant_retraite")) @if($allocataire->MontantRetraiteCPSWF)
Bénéficie d'une Retraite CPSWF
@endif @else
Accès non accordé par la CPSWF
@endif
{!! html()->label( 'Montant Allocations CPSWF','montant_allocations_cpswf') !!} @if(App\Models\MyApp::hasSIPREDroit("montant_alloc"))
@if($allocataire->MontantAllocations)
Bénéficie d'une Allocation CPSWF
@endif
@else
Accès non accordé par la CPSWF
@endif