MIF_E31222658/resources/views/admin/ranking/export.blade.php

52 lines
2.0 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{ $judul }}</title>
<style>
body { font-family: DejaVu Sans, sans-serif; font-size: 12px; }
.header { text-align: center; margin-bottom: 20px; }
.header h2 { margin: 0; padding: 0; font-size: 16px; }
.header p { margin: 5px 0 0 0; font-size: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border: 1px solid #000; padding: 5px; }
th { background-color: #f2f2f2; text-align: center; font-size: 10px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.page-break { page-break-after: always; }
</style>
</head>
<body>
<div class="header">
<h2>{{ $judul }}</h2>
<p>Tanggal Cetak: {{ now()->format('d/m/Y H:i:s') }}</p>
</div>
<table>
<thead>
<tr>
<th width="5%">No</th>
<th width="20%">Nama Mahasiswa</th>
<th width="15%">NIM</th>
<th width="15%">Program Studi</th>
<th width="15%">UKT Saat Ini</th>
<th width="15%">UKT Penyesuaian</th>
<th width="15%">Rekomendasi</th>
</tr>
</thead>
<tbody>
@foreach($mahasiswa as $key => $item)
<tr>
<td class="text-center">{{ $loop->iteration }}</td>
<td>{{ $item->pengajuan->mahasiswa->user->name ?? '-' }}</td>
<td>{{ $item->pengajuan->mahasiswa->nim ?? '-' }}</td>
<td>{{ $item->pengajuan->mahasiswa->program_studi ?? '-' }}</td>
<td class="text-right">Rp{{ number_format($item->pengajuan->ukt_saat_ini ?? 0, 0, ',', '.') }}</td>
<td class="text-right">Rp{{ number_format($item->ukt_penyesuaian ?? 0, 0, ',', '.') }}</td>
<td>{{ $item->rekomendasi_ukt }}</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>