156 lines
4.4 KiB
PHP
156 lines
4.4 KiB
PHP
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
<style>
|
|
#sim {
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
font-size:10px;
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
#sim td {padding:3px 5px 3px 5px; padding-right:10px;}, #sim th {
|
|
border: 0px solid;
|
|
padding: 1px;
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
#sim tr:nth-child(even){}
|
|
|
|
#sim tr:hover {}
|
|
|
|
#sim th {
|
|
text-align: left;
|
|
border: 0px solid;
|
|
table-layout:auto;
|
|
color: black;
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.row {
|
|
margin-left:-5px;
|
|
margin-right:-5px;
|
|
}
|
|
|
|
.column {
|
|
float: left;
|
|
width: 100%;
|
|
padding: 5px;
|
|
}
|
|
|
|
/* Clearfix (clear floats) */
|
|
.row::after {
|
|
content: "";
|
|
clear: both;
|
|
display: table;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
width: 200%;
|
|
border: 0px solid #ddd;
|
|
}
|
|
|
|
td {
|
|
text-align: left;
|
|
padding: 16px;
|
|
}
|
|
|
|
th{
|
|
text-align: left;
|
|
padding: 16px;
|
|
background-color:gainsboro;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<table width="100%" border="0" id="sim">
|
|
<tr>
|
|
<td width="50%"><h3>Koperasi Permodalan Kelantan Berhad</h3></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2"><u><b>LAPORAN BARANG LELONG</b></u></td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
|
|
<thead>
|
|
<br>
|
|
|
|
<tr>
|
|
@foreach ($namacaw as $item)
|
|
<td>Cawangan : {{$item->caw_name}}</td>
|
|
@endforeach
|
|
</tr>
|
|
@php
|
|
$tarikh_mula = date('d-m-Y', strtotime($t_mula));
|
|
$tarikh_hingga = date('d-m-Y', strtotime($t_hingga));
|
|
@endphp
|
|
<tr>
|
|
<td>Tarikh Lelong : {{ $tarikh_mula }} Hingga {{ $tarikh_hingga }}</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" align="left">No</th>
|
|
<th width="10%" align="left">Lelong ID</th>
|
|
<th width="10%" align="left">Tarikh Lelong</th>
|
|
<th width="25%" align="left">No Rujukan</th>
|
|
<th width="25%" align="left">Marhun</th>
|
|
<th width="25%" align="left">Berat (gm)</th>
|
|
<th width="25%" align="left">Harga Asas</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
@foreach ($cawangan as $item)
|
|
<tr>
|
|
<td>{{ $loop->iteration }} </td>
|
|
<td>{{ $item['lelong_id'] }}</td>
|
|
@php
|
|
$t_lelong = date('d-m-Y', strtotime($item['tarikh_lelong']));
|
|
@endphp
|
|
<td>{{ $t_lelong }}</td>
|
|
<td>{{ $item['norujukan'] }}</td>
|
|
<td>{{ $item['marhun'] }}</td>
|
|
<td>{{ $item['berat'] }}</td>
|
|
<td>{{ $item['hargaasas'] }}</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
<tr>
|
|
<td colspan="5" align="left"><strong>Jumlah Keseluruhan</strong></td>
|
|
<td><strong>{{ number_format($total_berat, 2, '.', ',') }}</strong></td>
|
|
<td><strong>{{ number_format($total_hargaasas, 2, '.', ',') }}</strong></td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|