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

LAPORAN PEMBAYARAN PDD MAHASISWA

@php $th_col = ["no","no_bukti","nim","nama","jurusan","kelas","angkatan","bulan","keterangan","BPP","UP3","SDP2","Lainnya","total"]; $th_width = ["30px","100px","100px","200px","80px","80px","80px","80px","200px","100px","100px","100px","100px","100px"]; $idx_num = [9,10,11,12,13]; @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 @else @endif @endfor @php $no++; @endphp @endfor @for ($c=9; $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) }} {{ $line2[$th_col[$c]] }}
Total{{ App\Helper\SaiHelpers::number_format_decimal($tot[$th_col[$c]],$export_type) }}