Files
kaunter/resources/views/print/laporan_komoditi.blade.php
T
2021-02-25 05:24:23 +08:00

105 lines
2.4 KiB
PHP

<style>
#header {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#header td{
padding:4px;
font-size:10px;
}
#header tr:nth-child(even){background-color: #ffffff;}
#header tr:hover {background-color: #ddd;}
#header th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
#scan {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#scan td, #scan th {
padding: 8px;
font-size:11px;
}
#scan tr:nth-child(even){background-color: #ffffff;}
#scan tr:hover {background-color: #ddd;}
#scan th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
padding:4px;
color:black;
}
#sign {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#sign td, #sign th {
padding: 8px;
font-size:11px;
text-align: center;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
window.print();
window.onfocus=function(){ window.close();}
});
</script>
<table id="header">
<tr>
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
</tr>
</table>
<table id="scan">
<tr>
<th colspan ="5"><b>LAPORAN JUAL BELI KOMODITI</b></th>
</tr>
</table>
<table id="sign">
<thead>
<th>Bil</th>
<th>No Sijil</th>
<th>Tarikh</th>
<th>Masa</th>
<th>Nilai Komoditi</th>
<th>Transaksi Oleh</th>
<th>Transaksi</th>
</thead>
<tbody>
@foreach($rekod as $index=>$komoditi)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $komoditi['nosijil'] }}</td>
<td>{{ $komoditi['date_purchase'] }}</td>
<td>{{ $komoditi['time_purchase'] }}</td>
<td>{{ number_format($komoditi['unit_komuditi'],2) }}</td>
<td>{{ $komoditi['transaction_by'] }}</td>
<td>{{ $komoditi['transaction_type'] }}</td>
</tr>
@endforeach
</tbody>
</table>