 |
SEKOLAH DASAR TARUNA BAKTI |
|
|
Jl.L.L.R.E. Martadinata No.52 Bandung 40115 |
|
|
Telp. (022) 4261571 |
|
|
Website: www.tarunabakti.or.id Email: tarbak52@gmail.com |
|
|
@php
$th_col = ["kode_tingkat","kode_kelas","nama_matpel","skode","nama_guru"];
$th_label_col = ["Tingkat","Kelas","Mata Pelajaran","Singkatan","Guru"];
$th_width = ["5%","10%","35%","20%","20%"];
$idx_num = [];
@endphp
@for ($c=0; $c < count($th_col); $c++)
@php
$col = $th_label_col[$c];
@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
{{ App\Helper\SaiHelpers::number_format_decimal($line2[$th_col[$c]],$export_type) }}
|
@else
{{ $line2[$th_col[$c]] }}
|
@endif
@endfor
@php
$no++;
@endphp
@endfor