Files
lelong/resources/views/pdf/gadaibycawpdf.blade.php
T
2022-08-17 08:59:20 +08:00

147 lines
4.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: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>
<div class="row">
{{-- <div class="first-prgph"><img src="http://lelong.test/img/icon_pkb.png" alt="PKB LOGO" width="100" height="100"><br></div> --}}
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
<thead>
<br>
<tr>
<td>Tarikh Lelong:@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
$t_lelongs = $myDateTime->format('d-m-Y');
echo($t_lelongs);
@endphp</td>
<td>Tarikh Gadai Sehingga:@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_gadais->t_gadai );
$t_lelong_sehingga = $myDateTime->format('d-m-Y');
echo($t_lelong_sehingga);
@endphp</td>
<td>Anggaran Tarikh Daftar Lelong : </b>{{ $t_anggaran }}</td>
<td>Bilangan Surat : </b>{{ $bil_lelongcaw[0]['bil_lelong'] }}</td>
</thead>
</table>
</div>
<br>
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
<thead>
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>No Kad Pengenalan</th>
<th>Tempoh</th>
<th>Berat (gm)</th>
<th>Pembiayaan (RM)</th>
<th>Baki Pembiayaan (RM)</th>
<th>Keuntungan 6 Bulan (RM)</th>
<th>Keuntungan Telah Bayar (RM)</th>
</tr>
</thead>
@foreach($getsurat as $surat)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
</tr>
@endforeach
</table>
</div>
</tbody>
</table>