@extends("$module.main") @section('content')
Tiers
@if(!empty($tiers))
@if($module_key == 'credit') Demande de prêt @endif @if($module_key == 'demission') Demande de demission @endif
{{-- SITUATION DE PRET --}}
Prêt actif
@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 @endforeach @else @endif
# Réf prêt Mtt capital Date octroi Echeance Encours OBS
{{ $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
La liste est vide
{{-- END SITUATION DE PRET --}} {{-- COMPTE DE TIERS --}}
Compte actif
@if(count($comptes)>0) @foreach ($comptes as $compte) @endforeach @else @endif
Compte Code produit Sigle Libelle Date d'ouvertures Encours
{{ $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
La liste est vide
{{-- 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
Recherche
@csrf
@endsection @section('script') @endsection