247 lines
9.5 KiB
PHP
247 lines
9.5 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>
|
|
<div class="font">Nama: {{$getnamastaff->namastaff}}<br>
|
|
Jawatan: {{$jawatan1[0]['namajawatan']}}<br> </div><br>
|
|
@php $jawatan = $jawatan1[0]['idjawatan']; @endphp
|
|
|
|
|
|
<table cellspacing="0" cellpadding="5" style="float:right;" border="0" width="100%" height="80" align="left" id="sim">
|
|
<thead>
|
|
@if($jawatan == '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($jawatan == 'ppc')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Aging (1-5bulan)</th>
|
|
<th>Aging (6-12bulan)</th>
|
|
<th>Aging (>12bulan)</th>
|
|
<th>Penebusan (RM)</th>
|
|
</tr>
|
|
@elseif($jawatan == 'teller')
|
|
{{-- @php $checking = $getnamastaff->namastaff; @endphp --}}
|
|
{{-- <a class="btn btn-success btn-sm m-1" href="{{ route('janakpi.checkpenilai',['nokpstaff'=>$getnamastaff->nokpstaff,'jawatan' => 'penilai']) }}" data-toggle="tooltip" data-placement="top" title="Maklumat">Data KPI Penilai</a> --}}
|
|
<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($jawatan == 'penilai')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Bil. SAG Gadaian</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
</tr>
|
|
@endif
|
|
</thead>
|
|
@foreach ($bycaw_all as $index=>$bid)
|
|
{{-- {{dd($bid['datakpi_info'][$index]['tahun'])}} --}}
|
|
@if($jawatan == 'pc')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['pc_bilpembiayaan']}}</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['pc_pembiayaan'], 2)}}</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['pc_pendapatan'], 2)}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['pc_pelangganbaru']}}</td>
|
|
</tr>
|
|
@elseif($jawatan == 'ppc')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td align="center">{{ number_format($bid['datakpi_info'][$index]['ppc_aging1'], 2)}}%</td>
|
|
<td align="center">{{ number_format($bid['datakpi_info'][$index]['ppc_aging2'], 2)}}%</td>
|
|
<td align="center">{{ number_format($bid['datakpi_info'][$index]['ppc_aging3'], 2)}}%</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['ppc_penebusan'], 2)}}</td>
|
|
</tr>
|
|
@elseif($jawatan == 'penilai')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['penilai_bilgadai']}}</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['penilai_pembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@elseif($jawatan == 'teller')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['teller_bilgadai']}}</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['teller_pembiayaan'], 2)}}</td>
|
|
<td align="center">{{ $bid['datakpi_info'][$index]['teller_biltebus']}}</td>
|
|
<td align="right">{{ number_format($bid['datakpi_info'][$index]['teller_tebuspembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|