250 lines
9.1 KiB
PHP
250 lines
9.1 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>
|
|
|
|
<body>
|
|
<header>
|
|
<div class="font"><u><b><h5>DATA KPI : {{$namacaw->caw_name}}</h5></b></u></div>
|
|
</header>
|
|
<footer>
|
|
<div class="pagenum-container"><span class="pagenum"></span></div>
|
|
</footer>
|
|
|
|
@foreach($collection_datakpi as $index1=>$liststaff)
|
|
@foreach($liststaff as $index2=>$staff)
|
|
<br>
|
|
<div class="font"> Nama: {{$staff[0]['namastaff']}} <br>
|
|
Jawatan: {{$index2}}</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">
|
|
|
|
@if($index2 == 'pc')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Bilangan SAG</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Pendapatan (RM)</th>
|
|
<th>Pelanggan Baru</th>
|
|
</tr>
|
|
@elseif($index2 == 'ppc')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Aging (1-6bulan)</th>
|
|
<th>Aging (>6-12bulan)</th>
|
|
<th>Aging (>12bulan)</th>
|
|
<th>Penebusan (RM)</th>
|
|
</tr>
|
|
@elseif($index2 == 'teller')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Bil. SAG Gadaian</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Bil. SAG Penebusan</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
</tr>
|
|
@elseif($index2 == 'penilai')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Bil. SAG Gadaian</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
</tr>
|
|
@endif
|
|
|
|
</thead>
|
|
<tbody>
|
|
@if($index2 == 'pc')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td align = 'center'>{{$loop->iteration}}
|
|
<td align = 'center'>{{ $detail['tahun']}}</td>
|
|
<td align = 'center'>{{ $detail['bulan']}}</td>
|
|
<td align = 'center'>{{ number_format($detail['pc_bilpembiayaan'], 0)}}</td>
|
|
<td align = 'right'>{{ number_format($detail['pc_pembiayaan'], 2)}}</td>
|
|
<td align = 'right'>{{ number_format($detail['pc_pendapatan'], 2)}}</td>
|
|
<td align = 'center'>{{ $detail['pc_pelangganbaru']}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'ppc')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td align = 'center'>{{$loop->iteration}}
|
|
<td align = 'center'>{{ $detail['tahun']}}</td>
|
|
<td align = 'center'>{{ $detail['bulan']}}</td>
|
|
<td align = 'center'>{{ number_format($detail['ppc_aging1'], 2)}}%</td>
|
|
<td align = 'center'>{{ number_format($detail['ppc_aging2'], 2)}}%</td>
|
|
<td align = 'center'>{{ number_format($detail['ppc_aging3'], 2)}}%</td>
|
|
<td align = 'right'>{{ number_format($detail['ppc_penebusan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'penilai')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td align = 'center'>{{$loop->iteration}}
|
|
<td align = 'center'>{{ $detail['tahun']}}</td>
|
|
<td align = 'center'>{{ $detail['bulan']}}</td>
|
|
<td align = 'center'>{{ $detail['penilai_bilgadai']}}</td>
|
|
<td align = 'right'>{{ number_format($detail['penilai_pembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'teller')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td align = 'center'>{{$loop->iteration}}
|
|
<td align = 'center'>{{ $detail['tahun']}}</td>
|
|
<td align = 'center'>{{ $detail['bulan']}}</td>
|
|
<td align = 'center'>{{ $detail['teller_bilgadai']}}</td>
|
|
<td align = 'right'>{{ number_format($detail['teller_pembiayaan'], 2)}}</td>
|
|
<td align = 'center'>{{ $detail['teller_biltebus']}}</td>
|
|
<td align = 'right'>{{ number_format($detail['teller_tebuspembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
@endforeach
|
|
@endforeach
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|