{{ $lokasi[0]['nama'] }}

LAPORAN SALDO PINJAMAN

{{ $periode }}
@php $th_col = ["no","no_sla","tanggal","keterangan","periode","kode_jenis","nama_jenis","kode_mitra","nama_mitra","no_dok","tgl_mulai","tgl_selesai","umur","tipe_rate","margin","basis","total_pinjaman","no_cair","no_tutup","sts_sch","bagi_hasil","pengembalian_pokok","total_angsuran","bayar_bagi_hasil","bayar_pokok","total_bayar","saldo"]; $th_width = ["30px","90px","80px","200px","80px","80px","150px","80px","150px","120px","80px","80px","80px","80px","80px","80px","90px","90px","90px","80px","90px","90px","90px","90px","90px","90px","90px"]; $idx_num = [16,20,21,22,23,24,25,26]; @endphp
@for ($c=0; $c < count($th_col); $c++) @php $col = str_replace("_"," ",$th_col[$c]); $col = ucwords($col); @endphp @endfor @php $no=$start + 1; $tot = []; foreach($idx_num as $idx){ $tot[$th_col[$idx]] = 0; } @endphp @for($x=0; $x < count($data); $x++) @php $line2 = $data[$x]; @endphp @for ($c=0; $c < count($th_col); $c++) @if(in_array($c, $idx_num)) @php $tot[$th_col[$c]] += floatval($line2[$th_col[$c]]); @endphp @elseif($c == "14") @else @endif @endfor @php $no++; @endphp @endfor @for ($c=16; $c < count($th_col); $c++) @if(in_array($c, $idx_num)) @else @endif @endfor
{{ $col }}
{{ App\Helper\SaiHelpers::number_format_decimal($line2[$th_col[$c]],$export_type) }} {{ App\Helper\SaiHelpers::number_format_decimal($line2[$th_col[$c]],$export_type) }}% {{ $line2[$th_col[$c]] }}
Total{{ App\Helper\SaiHelpers::number_format_decimal($tot[$th_col[$c]],$export_type) }}