33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
<?php
|
|
header("Content-type: application/vnd.ms-excel");
|
|
header("Content-Disposition: attachment; filename={$table}.xls");
|
|
header("Pragma: no-cache");
|
|
//dd($records);
|
|
?>
|
|
|
|
<table border="1" width="100%">
|
|
<thead>
|
|
<tr style="text-align: center; font-weight:bold; vertical-align:middle;">
|
|
<th>No</th>
|
|
<th>Tahun</th>
|
|
<th>NPSN</th>
|
|
<th>Nama Sekolah</th>
|
|
<th>Wilayah</th>
|
|
<th>Kecamatan</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($kuesioner as $key => $row)
|
|
<tr style="vertical-align:middle;">
|
|
<td>{{ $key+1 }}</td>
|
|
<td>{{ @$row->tahun }}</td>
|
|
<td>{{ @$row->sekolah->npsn}}</td>
|
|
<td>{{ @$row->sekolah->nama_sekolah }}</td>
|
|
<td>{{ @$row->sekolah->kabupaten->name }}</td>
|
|
<td>{{ @$row->sekolah->kecamatan->name }}</td>
|
|
<td>{{ strip_tags(kuesionerLogStatus($row->KuesionerId)) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|