56 lines
1.8 KiB
PHP
56 lines
1.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Cetak Laporan</title>
|
|
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
|
|
<style>
|
|
body { font-size: 14px; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { padding: 8px; border: 1px solid #000; text-align: left; }
|
|
@media print {
|
|
.no-print { display: none; } /* Sembunyikan tombol cetak saat dicetak */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h3 class="text-center">Laporan Nasabah</h3>
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Nama</th>
|
|
<th>Golongan Pekerjaan</th>
|
|
<th>Status Pekerjaan</th>
|
|
<th>Jumlah Pinjaman</th>
|
|
<th>History Pinjaman</th>
|
|
<th>Tabungan Wajib</th>
|
|
<th>Kelayakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($nasabah as $n)
|
|
<tr>
|
|
<td>{{ $n->nama }}</td>
|
|
<td>{{ $n->golongan_pekerjaan }}</td>
|
|
<td>{{ $n->status_pekerjaan }}</td>
|
|
<td>Rp. {{ number_format($n->jumlah_pinjaman, 0, ',', '.') }}</td>
|
|
<td>{{ $n->history_pinjaman }}</td>
|
|
<td>Rp. {{ number_format($n->tabungan_simpanan_wajib, 0, ',', '.') }}</td>
|
|
<td>
|
|
<span class="badge {{ $n->kelayakan == 'Layak' ? 'bg-success' : 'bg-danger' }}">
|
|
{{ $n->kelayakan }}
|
|
</span>
|
|
</td> </tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<script>
|
|
window.print()
|
|
</script>
|
|
</body>
|
|
</html>
|