@extends(empty($main) ? 'credits.main' : $main) @section('content')
remboursements attendus de la période
{{-- --}}
@csrf
@php $i=0; @endphp @if(count($echeanciers )>0) @foreach ($echeanciers as $echeancier) @php $i++; $mtt_capital = $echeancier->cumul_remb - $echeancier->remb_reel; //Capital reste à remboruser $anticipe = $mtt_capital < $echeancier->capital ? ($echeancier->capital - $mtt_capital) : 0; $arriere = $mtt_capital > $echeancier->capital ? ($mtt_capital - $echeancier->capital) : 0; $interet = App\Lib\Echeancier::interet($echeancier->encours, $echeancier->date_dernier_oper, $echeancier->date_oper, $echeancier->taux_interet ); @endphp @endforeach @else @endif
# Date Folio Réf de prêt Nom et prénoms Téléphone Capital Encours Remb. période Anticipé Arriéré Capital Intérêt Mtt à payer
{{ (new DateTime($echeancier->date_oper))->format('d/m/Y') }} {{ $echeancier->id_tiers}} {{ $echeancier->pret_id}} {{ substr($echeancier->nom_tiers.' '.$echeancier->prenom_tiers, 0,40) }} {{$echeancier->phone}} {{ App\Lib\Format::number($echeancier->mtt_octroye) }} {{ App\Lib\Format::number($echeancier->encours) }} {{ App\Lib\Format::number($echeancier->capital) }} {{ App\Lib\Format::number($anticipe) }} {{ App\Lib\Format::number($arriere) }} {{ App\Lib\Format::number($mtt_capital) }} {{ App\Lib\Format::number($interet) }} {{ App\Lib\Format::number($mtt_capital + $interet) }}
La liste est vide. Veuillez sélectionner la période et cliquer sur le bouton Recherche
@if(!empty($echeanciers)) @endif
@endsection