110 lines
2.9 KiB
PHP
110 lines
2.9 KiB
PHP
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
<script src="{{ asset('js/table2excel.js') }}"></script>
|
|
<style>
|
|
|
|
.letter{
|
|
font-family:'Times New Roman', Times, serif;
|
|
|
|
}
|
|
|
|
.row::after {
|
|
content: "";
|
|
clear: both;
|
|
display: table;
|
|
|
|
}
|
|
|
|
.first-prgph{
|
|
|
|
float: left;
|
|
width: 10%;
|
|
padding: 2px;
|
|
}
|
|
.first-prgph1{
|
|
|
|
float: left;
|
|
width: 30%;
|
|
padding-left: 50px;
|
|
}
|
|
.page-break {
|
|
page-break-before: always;
|
|
}
|
|
.name{
|
|
padding-top: 40px;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
<body>
|
|
|
|
<div class = "letter">
|
|
|
|
{{-- <div class="row">
|
|
<div class="first-prgph">
|
|
<img src="{{ asset('img/icon_pkb.png') }}" alt="PKB LOGO" width="100" height="100">
|
|
</div> --}}
|
|
|
|
<div class="first-prgph1">
|
|
<p> {{$caw['caw_name']}}<br>
|
|
{{$caw['alamat1']}}<br>
|
|
{{$caw['alamat2']}}<br>
|
|
No Tel: {{$caw['notel']}}<br>
|
|
No Faks: {{$caw['nofaks']}}
|
|
</p><br>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
|
|
|
|
<table width="100%" height="168" id="customers">
|
|
<thead>
|
|
<tr>
|
|
<th align="left">No</th>
|
|
<th align="left">No Rujukan</th>
|
|
<th align="left">Tempoh</th>
|
|
<th align="left">No KP</th>
|
|
<th align="left">Nama</th>
|
|
<th align="left">No.Telefon</th>
|
|
<th align="right">Pembiayaan (RM)</th>
|
|
<th align="right">Keuntungan 6 Bulan (RM)</th>
|
|
<th align="right">Bayaran Telah Dibuat (RM)</th>
|
|
<th align="right">Baki Lelong (simulasi) (RM)</th>
|
|
</tr>
|
|
</thead>
|
|
@foreach($gadai_all as $customer)
|
|
<tr>
|
|
{{-- dd($customer)}} --}}
|
|
<td >{{$loop->iteration}}</td>
|
|
<td>{{$customer->norujukan}}</td>
|
|
<td>{{$customer->tempoh}}</td>
|
|
<td>{{$customer->cust_info->nokp}}</td>
|
|
<td>{{$customer->cust_info->nama}}</td>
|
|
<td>{{$customer->cust_info->telefon ? '6'.$customer->cust_info->telefon : ""}}</td>
|
|
<td align="right">{{number_format($customer->bakipjm, 2, '.', ',')}}</td>
|
|
<td align="right">{{number_format($customer->bakiupah, 2, '.', ',')}}</td>
|
|
<td align="right">{{$customer->ktlhbyr}}</td>
|
|
<td align="right">{{$customer->bakilelong}}</td>
|
|
|
|
</tr>
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
var table2excel = new Table2Excel();
|
|
table2excel.export(document.querySelectorAll("#customers"),'senarai_notis');
|
|
setTimeout(function(){ window.close() }, 20);
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|