@if(!empty($tiers))
{{-- SITUATION DE PRET --}}
Prêt actif
# |
Réf prêt |
Mtt capital |
Date octroi |
Echeance |
Encours |
OBS |
|
@if(count($credits)>0)
@php
$i = 0;
@endphp
@foreach ($credits as $credit)
@php
$i++;
$remb = key_exists($credit->ref_pret, $remboursements) ?
$remboursements[$credit->ref_pret]:null;
$encours = !empty($remb->encours) ? $remb->encours : 0;
$retard = 0;
@endphp
{{ $i }} |
{{ $credit->ref_pret }} |
{{ App\Lib\Format::number($credit->mtt_capital) }} |
{{ key_exists($credit->ref_pret, $remboursements) ?
(new DateTime(($remboursements[$credit->ref_pret])->date_octroi))->format(config('myahs.date_format')) : '' }}
|
@if(key_exists($credit->ref_pret, $echeances))
@php $echeance = $echeances[$credit->ref_pret]; @endphp
{{ !empty($echeance) ? (new DateTime($echeance))->format(config('myahs.date_format')) : '' }}
@endif
|
{{ App\Lib\Format::number($encours) }} |
@if($encours == 0 && $retard == 0)
Echus
@endif
@if($encours > 0 && $retard == 0)
Normal
@endif
@if($encours > 0 && $retard == 1)
Retard
@endif
|
|
@endforeach
@else
La liste est vide
|
@endif
{{-- END SITUATION DE PRET --}}
{{-- COMPTE DE TIERS --}}
Compte actif
|
Compte |
Code produit |
Sigle |
Libelle |
Date d'ouvertures |
Encours |
|
@if(count($comptes)>0)
@foreach ($comptes as $compte)
|
{{ $compte->id_compte }} |
{{ $compte->produit_id }} |
{{ $compte->sigle }} |
{{ $compte->libelle }} |
{{ (new DateTime($compte->date_creation))->format(Config('myahs.date_format')) }} |
@if(key_exists($compte->id_compte, $ep_soldes))
{{ App\Lib\Format::number($ep_soldes[$compte->id_compte])}}
@else
-
@endif
|
|
@endforeach
@else
La liste est vide
|
@endif
{{-- END COMPTE TIERS --}}
@else
@php
$text_info = "Cette page permet d'effectuer la recherche rapide d'un tiers à l'aide de son identifiant et d'afficher toutes les informations sur son compte ainsi que ses prêts.";
if($module_key == 'demission'){
$text_info = "Veuillez chercher le membre pour procéder sa demssion.";
}
@endphp
{{$text_info}}
@endif