215 lines
7.8 KiB
PHP
215 lines
7.8 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:5px;}, #sim th {
|
|
border: 0px solid;
|
|
padding: 0px;
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
#sim tr:nth-child(even){}
|
|
|
|
#sim tr {
|
|
border-bottom: 1px black;
|
|
}
|
|
#sim th {
|
|
border: 1px black;
|
|
text-align: center;
|
|
}
|
|
|
|
#sim2 th {
|
|
text-align: center;
|
|
border: 0px solid ;
|
|
table-layout:auto;
|
|
color: black;
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.row {
|
|
margin-right:-5px;
|
|
margin-right:-5px;
|
|
}
|
|
|
|
.column {
|
|
float: right;
|
|
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: right; */
|
|
padding: 16px;
|
|
border: 1px solid;
|
|
}
|
|
|
|
th{
|
|
text-align: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
|
|
}
|
|
|
|
.font{
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
font-size:12px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<style>
|
|
/** Define now the real margins of every page in the PDF **/
|
|
body {
|
|
margin-top: 1cm;
|
|
/* margin-left: 2cm; */
|
|
/* margin-right: 2cm; */
|
|
margin-bottom: 2cm;
|
|
}
|
|
|
|
/** Define the header rules **/
|
|
header {
|
|
position: fixed;
|
|
top: -1cm;
|
|
left: 0cm;
|
|
right: 0cm;
|
|
height: 0cm;
|
|
/** Extra personal styles **/
|
|
/* background-color: #eaeaea; */
|
|
color: black;
|
|
text-align: center;
|
|
line-height: 1.5cm;
|
|
}
|
|
|
|
/** Define the footer rules **/
|
|
footer {
|
|
position: fixed;
|
|
bottom: 0cm;
|
|
left: 0cm;
|
|
right: 0cm;
|
|
height: 2cm;
|
|
|
|
/** Extra personal styles **/
|
|
/* background-color: #eaeaea; */
|
|
color: black;
|
|
text-align: center;
|
|
line-height: 1.5cm;
|
|
}
|
|
footer .pagenum:before {
|
|
content: counter(page);
|
|
}
|
|
|
|
.font{
|
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
|
font-size:12px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<body>
|
|
<header>
|
|
<div class="font"><u><b><h5>LAPORAN LELONGAN KESELURUHAN</h5></b></u></div>
|
|
</header>
|
|
<footer>
|
|
<div class="pagenum-container"><span class="pagenum"></span></div>
|
|
</footer>
|
|
<div class="font">
|
|
Dari: @php $trkh_dari = date('d-m-Y', strtotime($tarikh_dari)); @endphp {{$trkh_dari}}
|
|
Hingga: @php $trkh_hingga = date('d-m-Y', strtotime($tarikh_hingga)); @endphp {{$trkh_hingga}}<br><br>
|
|
</div>
|
|
|
|
|
|
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
{{-- <th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th> --}}
|
|
<th>Bil</th>
|
|
<th>Kod Cawangan</th>
|
|
<th>Cawangan</th>
|
|
<th>Bil Lelong</th>
|
|
<th>Berat (gm)</th>
|
|
<th>Nilai Marhun Asal(RM)</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Keuntungan (RM)</th>
|
|
<th>Harga Jual (RM)</th>
|
|
<th>Caj Lelong (RM)</th>
|
|
<th>Baki Lelong (RM)</th>
|
|
<th>Rugi Lelong (RM)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php $count = 1; @endphp
|
|
@foreach($senarai as $send)
|
|
@if($send['bil_lelong'] > 0)
|
|
|
|
<tr>
|
|
{{-- <td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}" class="checkbox"></td> --}}
|
|
<td>{{ $count++ }}</td>
|
|
<td>{{ $send['kodcaw'] }}</td>
|
|
<td style="white-space: nowrap;">{{ $send['caw_name'] }}</td>
|
|
<td align="center">{{ number_format($send['bil_lelong'], 0) }} </td>
|
|
<td align="center">{{ number_format($send['total_berat'], 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_nilaimarhun'], 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_pembiayaan'], 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_bakiupah'] , 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_hargajual'] , 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_cajlelong'] , 2) }} </td>
|
|
<td align="right">{{ number_format($send['total_baki'] , 2) }} </td>
|
|
<td align="right">({{ number_format($send['total_rugi'] , 2) }}) </td>
|
|
|
|
{{-- <td>
|
|
<a href=" {{ route('analisa.tempbycawsimulasi', [$send['kodcaw'],$t_gadai1,$fasa]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
|
</td>--}}
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3"><b>JUMLAH KESELURUHAN</b></td>
|
|
<td align="center"><b>{{ number_format($jum_billelong, 0) }}</b></td>
|
|
<td align="center"><b>{{ number_format($jum_berat, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_nilaimarhun, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_pembiayaan, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_bakiupah, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_hargajual, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_cajlelong, 2) }}</b></td>
|
|
<td align="right"><b>{{ number_format($jum_baki, 2) }}</b></td>
|
|
<td align="right"><b>({{ number_format($jum_rugi, 2) }})</b></td>
|
|
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|