Files
2023-04-03 15:52:47 +08:00

224 lines
7.0 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 {
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>
{{--
<div>
<div class="first-prgph1">
<h5> {{$caw['caw_name']}}<br>
{{$caw['alamat1']}}<br>
{{$caw['alamat2']}}<br>
No Tel: {{$caw['notel']}}<br>
No Faks: {{$caw['nofaks']}}
</h5>
</div>
</div>--}}
<body>
<header>
<div class="font"><u><b><h5>SENARAI LELONGAN MENGIKUT PELANGGAN</h5></b></u></div>
</header>
<footer>
<div class="pagenum-container"><span class="pagenum"></span></div>
</footer>
<div class="font">Batch Lelong: {{ $lelong_id }} </div>
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
<thead>
<tr>
<th>No</th>
<th align="left">No Kp</th>
<th align="left">No Telefon</th>
<th align="left">Alamat 1</th>
<th align="left">Alamat 2</th>
<th align="left">Alamat 3</th>
<th align="left">No Rujukan</th>
<th>JGB</th>
<th>Pembiayaan (RM)</th>
<th>Keuntungan 6 Bulan (RM)</th>
<th>Bayaran Telah Dibuat (RM)</th>
<th>Baki Lelong (simulasi) (RM)</th>
</tr>
</thead>
@foreach($customers as $customer)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{$customer->kpbaru ? $customer->kpbaru : $customer->kplama}}</td>
<td>{{$customer->telefon}}</td>
<td>{{$customer->alamat1}}</td>
<td>{{$customer->alamat2}}</td>
<td>{{$customer->alamat3}}</td>
<td style="white-space: nowrap;">@foreach($customer['gadai'] as $data)
{{$data->norujukan}}<br>
@endforeach
</td>
<td>@foreach($customer['gadai'] as $data)
{{$data->tempoh}}<br>
@endforeach
</td>
<td align = "right">@foreach($customer['gadai'] as $data)
{{number_format($data->bakipjm, 2, '.', ',')}}<br>
@endforeach
</td>
<td align = "right">@foreach($customer['gadai'] as $data)
{{number_format($data->bakiupah, 2, '.', ',')}}<br>
@endforeach
</td>
<td align = "right">@foreach($customer['gadai'] as $data)
{{$data->ktlhbyr}}<br>
@endforeach
</td>
<td align = "right"><b>@foreach($customer['gadai'] as $data)
{{$data->bakilelong}}<br>
@endforeach
</b>
</td>
</tr>
@endforeach
</table>
</div>
</tbody>
</table>
</body>