@php
$th_label = ["No","No Registrasi","Nama","Tahun Ajaran","Kode PP","Saldo Awal","Masuk","Keluar","Saldo Akhir"];
$th_col = ["no", "no_reg", "nama", 'kode_ta',"kode_pp", "so_awal", "debet", "kredit", "so_akhir"];
$th_width = ["3%","10%","31%","8%","8%","11%","11%","11%","11%"];
@endphp
@for ($c=0; $c < count($th_col); $c++)
@php
$col = $th_label[$c];
@endphp
@endfor
@php
$no=$start + 1;
@endphp
@for($x=0; $x < count($data); $x++)
@php
$line2 = $data[$x];
@endphp
@for ($c=0; $c < count($th_col); $c++)
@if($export_type == "excel")
@if($c == 1)
{{ "'".$line2[$th_col[$c]] }}
@else
{{ $line2[$th_col[$c]] }}
@endif
@else
@if($c >= 5)
{{ number_format($line2[$th_col[$c]],0,",",".") }}
@else
{{ $line2[$th_col[$c]] }}
@endif
@endif
|
@endfor
@php
$no++;
@endphp
@endfor