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

LAPORAN SALDO PER MAHASISWA

@php $th_col = ["no","nim","nama","kode_kelas","kode_akt","kode_jur","nama_status","saw_n1","saw_n2","saw_n3","saw_n4","saw_total","debet_n1","debet_n2","debet_n3","debet_n4","debet_total","kredit_n1","kredit_n2","kredit_n3","kredit_n4","kredit_total","sak_n1","sak_n2","sak_n3","sak_n4","sak_total"]; $th_colname = ["NO","NIM","Nama","Kelas","Angkatan","Jurusan","Status","Saldo Awal","Tagihan","Pembayaran","Saldo Akhir"]; $th_colname2 = ["BPP","UP3","SPD2","PUL","Total","BPP","UP3","SPD2","PUL","Total","BPP","UP3","SPD2","PUL","Total","BPP","UP3","SPD2","PUL","Total"]; $th_width = ["30px","100px","200px","80px","80px","80px","80px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px","90px"]; $idx_num = [7,8,9,10,11,12,13,14,15,16,17,18,19,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 @if($c <= 6) @elseif($c > 6 && $c <= 10) @endif @endfor @for($c=0; $c < 20; $c++) @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 @else @endif @endfor @php $no++; @endphp @endfor @for ($c=9; $c < count($th_col); $c++) @if(in_array($c, $idx_num)) @else @endif @endfor
{{ $th_colname[$c] }}{{ $th_colname[$c] }}
{{ $th_colname2[$c] }}
{{ 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) }}