@extends('layouts.dash') @section('title') Versements @stop @section('title_card',"Versements") @section('subtitle_card',"") @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
{!! "Versement en préparation pour : ".$title !!}
@if((count($versements_prepas)>0) || ($nb_APA['W']>0 && $ile=="W") || ($nb_APA['F']>0 && $ile=="F") )
{!! html()->label('Ile  ','select_ile') !!} @if($type_aide!="APA") {!! html()->select('select_ile',App\Models\MyApp::ILES,isset($ile)?$ile:"")->placeholder('Toutes')->attributes(['class' => 'form-control','id' => 'select_ile']) !!} @else {!! html()->select('select_ile',["W"=>"Wallis","F"=>"Futuna",],isset($ile)?$ile:"W")->attributes(['class' => 'form-control','id' => 'select_ile']) !!} @endif
@if($type_aide=="FSO")
{!! html()->label('Filtre','select_filtre') !!} {!! html()->select('select_filtre',['MSUP'=>'Acceptés (Montant>0)','MZERO'=>'Refusés (Montant=0)'],isset($filtre)?$filtre:"") ->placeholder('Toutes')->attributes(['class' => 'form-control','id' => 'select_filtre']) !!}
@endif
@if($type_aide=="APA") Versements effectués par Ile (Wallis OU Futuna) @endif
@if($type_aide=="AAE") @endif @if($type_aide=="CSR") @endif @if($type_aide=="PAN") @endif @if($type_aide=="FSO") @endif @if($type_aide=="AGD") @endif @if($type_aide=="APH") @endif @if($type_aide=="APA") @endif @php $nb_versements_nd=0; $nb_montant_null_sansraison=0; $nb_montant_nonnull_avecraison=0; $nb_sansvillages=0; $lstalloc=""; @endphp @foreach ($versements_prepas as $versement_prepa) @php $montant_total=$versement_prepa->montant+$versement_prepa->montant_r; $nb_versements_nd+=(!$versement_prepa->mode_versement && $montant_total!=0)?1:0; $nb_montant_null_sansraison+=(($montant_total==0)&&(!$versement_prepa->motif_refus))?1:0; $nb_montant_nonnull_avecraison+=(($montant_total<>0)&&($versement_prepa->motif_refus))?1:0; $nb_sansvillages+=(!$versement_prepa->village || !$versement_prepa->id_village)?1:0; if(($montant_total==0)&&(!$versement_prepa->motif_refus)) $lstalloc.=(($lstalloc)?",":"").$versement_prepa->id_allocataire; @endphp @if($type_aide=="AAE") @endif @if($type_aide=="CSR") @endif @if($type_aide=="PAN") @endif @if($type_aide=="FSO") @endif @if($type_aide=="AGD") @endif @if($type_aide=="APH") @endif @endforeach
Allocataire Naissance Ile District VillageNbEnf
Soc/Tot
Prés/Abs Ressources CPSWFConjoint Conjoint
Ressources
QFEnfantsNbPers Ressources CPSWF QF RefusCommission Groupe GIR FragilitéCommission Taux Handicap FragilitéRefusBanque/ModePmt Titulaire Compte Rappel Prélèvement/Indus Montant Total Observations
{!! $versement_prepa->AllocataireIdPAD !!} {!! $versement_prepa->destinataire_nom." ".$versement_prepa->destinataire_prenom !!} @if(($type_aide=="AAE")||($type_aide=="PAN")) @if((!$versement_prepa->IsTitulaire)) Non titulaire avec une {{ App\Models\MyApp::TYPES_AIDES[$type_aide] }} @endif @endif {!! $versement_prepa->AllocataireDateNaissance !!} {!! $versement_prepa->ile !!} {!! $versement_prepa->district !!} {!! $versement_prepa->village !!}{!! $versement_prepa->nb_enf !!} {!! $versement_prepa->getAllocataireSituationWF() !!} {!! $versement_prepa->getAllMontantCPSWFHTML() !!} {!! $versement_prepa->ConjointNomComplet !!} {!! $versement_prepa->retraite_conjoint !!} {!! $versement_prepa->qf !!}{!! $versement_prepa->getEnfantsPANListe() !!}{!! $versement_prepa->nbpers_foyer !!} {!! $versement_prepa->getAllMontantCPSWFHTML() !!} {!! $versement_prepa->qf !!} {!! $versement_prepa->RaisonLibelle !!}{!! $versement_prepa->date_commission !!} {!! $versement_prepa->groupe_gir !!} {!! $versement_prepa->score_fragilite !!}{!! $versement_prepa->date_commission !!} {!! $versement_prepa->taux_handicap !!} {!! $versement_prepa->score_fragilite !!} @endif @if($type_aide=="APA") {!! $versement_prepa->RaisonLibelle !!} @if($versement_prepa->mode_versement=="NUM") NUMERAIRE{!! ($versement_prepa->procuration_nom)?" Avec procuration":"" !!} @if($versement_prepa->procuration_nom) {!! $versement_prepa->procuration_nom." ".$versement_prepa->procuration_prenom !!} @endif @endif @if($versement_prepa->mode_versement=="VIR") {!! $versement_prepa->BanqueNom !!} @endif @if(!$versement_prepa->mode_versement) AUCUN @endif @if($versement_prepa->mode_versement=="VIR") {!! $versement_prepa->titulaire !!} @endif @if($versement_prepa->mode_versement=="VIR") {!! $versement_prepa->compte !!} @endif {!! $versement_prepa->montant_r !!} {!! $versement_prepa->montant_prelevement !!} {!! $versement_prepa->montant !!} {!! $versement_prepa->montant_r+$versement_prepa->montant-$versement_prepa->montant_prelevement !!} @if($versement_prepa->hasIndusEncours) @if(($montant_prelevement=$versement_prepa->getMontantPrelevement($type_aide,date('Y-m-d')))>0) Indus avec prélèvement de {{ $montant_prelevement }}
@endif @endif {!! $versement_prepa->observations !!}
@else

Aucun fichier en préparation pour ce mois


@if($type_aide=="APA") @if($nb_APA['W']==0) Générer le fichier de versement pour Wallis @else Versements en-cours pour Wallis @endif @if($nb_APA['F']==0) Générer le fichier de versement pour Futuna @else Versements en-cours pour Futuna @endif @else Générer le fichier de versement @endif
@endif @if(count($versements_prepas)>0)
@if($user->hasRole("ADMINISTRATEUR") || $user->can("VER_".$type_aide."_VAL")) @if(($nb_versements_nd==0)&&($nb_montant_null_sansraison==0)&&($nb_montant_nonnull_avecraison==0)) @if($type_aide=="APA") Génération définitive du versement @else Génération définitive du versement @endif @else
    @if($nb_versements_nd>0)
  • Définir les modes de versements de {{ $nb_versements_nd }} allocataire{{ ($nb_versements_nd==1)?'':'s' }} pour pouvoir valider
  • @endif @if($nb_montant_null_sansraison>0 )
  • {{ $nb_montant_null_sansraison }} bénéficiaire{{ ($nb_montant_null_sansraison==1)?' a ':'s ont ' }} un montant à verser nul sans raisons, une raison doit être apportée au dossier : {{ $lstalloc }}
  • @endif @if($nb_montant_nonnull_avecraison>0 )
  • {{ $nb_montant_nonnull_avecraison }} bénéficiaires{{ ($nb_montant_null_sansraison==1)?' a ':'s ont ' }} un montant à verser non nul Avec une raisons de refus, la raison doit être annulée ou une regénération est à faire
  • @endif @if($nb_sansvillages>0 )
  • {{ $nb_sansvillages }} bénéficiaire{{ ($nb_sansvillages==1)?" n'a pas ":"s n'ont pas " }}de village
  • @endif @if($ile || $filtre)
  • Vous devez enlever les filtres pour pourvoir générer le versement
  • @endif
@if(!$ile && !$filtre) @endif @endif @endif @if($user->hasRole("ADMINISTRATEUR") || $user->can("VER_".$type_aide."_PRP")) @if($type_aide=="APA") Re-Générer la liste @else Re-Générer la liste @endif @endif
@endif
@endsection @section('styles') @stop @section('scripts0') @endsection