@php $imagePath = public_path('img/tarbak30x30.png'); @endphp
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 = ["skode","kode_sem","kode_kelas","kode_kd"]; $th_label_col = ["Mata Pelajaran","Semester","Kelas","Kompetensi Dasar"]; $th_width = ["10%","10%","15%","65%"]; $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 @else @endif @endfor @php $no++; @endphp @endfor
{{ $col }}
{{ App\Helper\SaiHelpers::number_format_decimal($line2[$th_col[$c]],$export_type) }} @if($c == 3) {{ $line2['kode_kd'].' '.$line2['nama_kd'] }} @else {{ $line2[$th_col[$c]] }} @endif