@extends('layouts.dash') @section('title') Allocataires @stop @section('title_card') @stop @section('content')
@if (Session::has('message'))
{!! Session::get('message') !!}
@endif @if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif @if (Session::has('success'))
{!! \Session::get('success') !!}
@endif {{ html()->form('POST', url('/set_refus_'.strtolower($type_aide)))->open() }}

{{ $title }}

{!! html()->label('Catégorie','filtre_categorie') !!} {!! html()->select('filtre_categorie',["O"=>"Droits ouverts et acceptés","R"=>"Droits ouverts et refusés","F"=>"Droits fermés","ALL"=>"Tous"],isset($filtre_categorie)?$filtre_categorie:"") ->attributes(['class' => 'form-control','id' => 'filtre_categorie']) !!}
{!! html()->label('Filtre QF','filtre_qf') !!} {!! html()->select('filtre_qf',$filtres,isset($filtre_qf)?$filtre_qf:"") ->placeholder('Tous')->attributes(['class' => 'form-control','id' => 'filtre_qf']) !!}
{!! html()->label( 'Raison du Refus à appliquer','motif_refus') !!} {!! html()->select('motif_refus',$raisons_fso,null) ->placeholder('A définir') ->attributes(['id' => 'motif_refus','class' => 'form-control']) !!}
@if(count($t_lignes)>0)
dd
@endif
@if(App\Models\MyApp::hasSIPREDroit("montant_alloc")) @endif @foreach ($allocataires as $allocataire) @if(App\Models\MyApp::hasSIPREDroit("montant_alloc")) @endif @endforeach
Sel. Id Dossier
Famille
CPSWF Nom Date de naissance Age Conjoint NbPersonnes Ressources Droits QFCPSWFRefus Montant Prévisionnel
{!! $allocataire->IdPAD !!} @if($allocataire->id_famille) {!! $allocataire->IdPADFamille !!} @else Aucun @endif {!! $allocataire->IdCPSWFPAD !!} {!! $allocataire->nom_complet2 !!} {!! $allocataire->date_naissance !!} {!! $allocataire->age !!} {!! $allocataire->FamilleConjointNomComplet !!} {!! $allocataire->FamilleNbPersonnes !!} {!! $allocataire->FamilleMontantRessources !!} {!! $allocataire->getInfoDroit("FSO") !!} {!! $allocataire->QF !!} @if($allocataire->MontantRetraiteCPSWF) +Retraite CPSWF
@endif @if($allocataire->MontantAllocations) +Allocation CPSWF
@endif @if($allocataire->MontantSalaires) +Salarié pour la CPSWF@endif
{!! $allocataire->getMotifRefus("FSO") !!} {!! $allocataire->CalculMontantFSO !!}
{{ html()->form()->close() }}
@endsection @section('scripts') @endsection