You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
PHTML
50 lines
1.6 KiB
PHTML
6 years ago
|
<h2 style="text-align:center"><b> {{ $sitename }} </b></h2 >
|
||
|
<h3 style="text-align:center">Tabungan</h3>
|
||
|
<br>
|
||
|
<p><b>Nama :</b> {{ $siswa->nama }} <b>Kelas : </b> {{ $siswa->kelas->nama }}{{ isset($siswa->kelas->periode) ? '('.$siswa->kelas->periode->nama.')' : '' }}</p>
|
||
|
<p><b>Saldo : </b>IDR. {{ $saldo }}</p>
|
||
|
<table style="border: 1px solid black; width: 100%">
|
||
|
<tr style="border: 1px solid black;">
|
||
|
<th>No</th>
|
||
|
<th>Tanggal</th>
|
||
|
<th>KD</th>
|
||
|
<th>Jumlah</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="min-width:20px;text-align: center;">
|
||
|
1
|
||
|
</td>
|
||
|
<td style="min-width:200px;text-align: center;">
|
||
|
{{ $tabungan->created_at->format('d-m-Y') }}
|
||
|
</td>
|
||
|
<td style="min-width:20px;text-align: center;">
|
||
|
@if($tabungan->tipe == 'in')
|
||
|
Menabung
|
||
|
@else
|
||
|
Penarikan
|
||
|
@endif
|
||
|
</td>
|
||
|
<td style="min-width:200px;text-align: left;">
|
||
|
IDR. {{ format_idr($tabungan->jumlah) }}
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<style>
|
||
|
@media print {
|
||
|
tr.gray {
|
||
|
background-color: #ececec !important;
|
||
|
-webkit-print-color-adjust: exact;
|
||
|
}
|
||
|
th {
|
||
|
background-color: #dadada !important;
|
||
|
-webkit-print-color-adjust: exact;
|
||
|
}
|
||
|
}
|
||
|
</style>
|
||
|
<script>
|
||
|
window.print()
|
||
|
|
||
|
window.onafterprint = function(){
|
||
|
window.close()
|
||
|
}
|
||
|
</script>
|