{{-- SITUATION DE PRET --}}
Prêt actif
@if(count($credits)>0) @php $i = 0; @endphp @foreach ($credits as $credit) @php $i++; $remb = key_exists($credit->id_pret, $remboursements) ? $remboursements[$credit->id_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->id_pret }} {{ App\Lib\Format::number($credit->mtt_capital) }} {{ key_exists($credit->id_pret, $remboursements) ? (new DateTime(($remboursements[$credit->id_pret])->date_octroi))->format(config('myahs.date_format')) : '' }} @if(key_exists($credit->id_pret, $echeances)) @php $echeance = $echeances[$credit->id_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 --}}