@extends('layouts.admin') @section('content')
| Nama | History Pinjaman | Setoran/Bulan | Bunga | Setoran + Bunga | Sisa Pinjaman | Kelayakan | Cluster |
|---|---|---|---|---|---|---|---|
| {{ $n->nama }} | Rp. {{ number_format($n->history_pinjaman, 0, ',', '.') }} | Rp. {{ number_format($n->setoran_per_bulan, 0, ',', '.') }} | Rp. {{ number_format($n->bunga, 0, ',', '.') }} | Rp. {{ number_format($n->setoran_dan_bunga, 0, ',', '.') }} | Rp. {{ number_format($n->sisa_pinjaman, 0, ',', '.') }} | {{ $n->kelayakan }} | {{ $n->cluster == 0 ? 1 : ($n->cluster == 1 ? 0 : $n->cluster) }} |
| Nama Nasabah | Jarak ke Cluster 1 | Jarak ke Cluster 2 | Cluster Terpilih |
|---|---|---|---|
| {{ $nasabah[$index]->nama }} | {{ number_format($distance[0], 2) }} | {{ number_format($distance[1], 2) }} | Cluster {{ $iter['clusters'][$index] == 0 ? 1 : ($iter['clusters'][$index] == 1 ? 0 : $iter['clusters'][$index]) }} |
| Cluster | History Pinjaman | Setoran/Bulan | Bunga | Setoran + Bunga | Sisa Pinjaman |
|---|---|---|---|---|---|
| Cluster {{ $index - 1 + 1 == 0 ? 1 : ($index - 1 + 1 == 1 ? 0 : $index - 1 + 1) }} | @foreach ($centroid as $value){{ number_format($value, 2) }} | @endforeach