168 lines
5.9 KiB
PHP
168 lines
5.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> --}}
|
|
|
|
@foreach($collection_datakpi as $index1=>$liststaff)
|
|
@foreach($liststaff as $index2=>$staff)
|
|
{{-- {{dd($staff)}} --}}
|
|
<form id="exportpdf" action="{{route('janakpi.listdatakpidetailall2',['kodcaw' =>$kodcaw])}}" method="POST">
|
|
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
Nama: {{$staff[0]['namastaff']}} <br>
|
|
Jawatan: {{$index2}}<br>
|
|
@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-5bulan)</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>{{$loop->iteration}}
|
|
<td>{{ $detail['tahun']}}</td>
|
|
<td>{{ $detail['bulan']}}</td>
|
|
<td>{{ $detail['pc_bilpembiayaan']}}</td>
|
|
<td>{{ number_format($detail['pc_pembiayaan'], 2)}}</td>
|
|
<td>{{ number_format($detail['pc_pendapatan'], 2)}}</td>
|
|
<td>{{ $detail['pc_pelangganbaru']}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'ppc')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $detail['tahun']}}</td>
|
|
<td>{{ $detail['bulan']}}</td>
|
|
<td>{{ number_format($detail['ppc_aging1'], 2)}}%</td>
|
|
<td>{{ number_format($detail['ppc_aging2'], 2)}}%</td>
|
|
<td>{{ number_format($detail['ppc_aging3'], 2)}}%</td>
|
|
<td>{{ number_format($detail['ppc_penebusan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'penilai')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $detail['tahun']}}</td>
|
|
<td>{{ $detail['bulan']}}</td>
|
|
<td>{{ $detail['penilai_bilgadai']}}</td>
|
|
<td>{{ number_format($detail['penilai_pembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@elseif($index2 == 'teller')
|
|
@foreach($liststaff[$index2] as $index3=>$detail)
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $detail['tahun']}}</td>
|
|
<td>{{ $detail['bulan']}}</td>
|
|
<td>{{ $detail['teller_bilgadai']}}</td>
|
|
<td>{{ number_format($detail['teller_pembiayaan'], 2)}}</td>
|
|
<td>{{ $detail['teller_biltebus']}}</td>
|
|
<td>{{ number_format($detail['teller_tebuspembiayaan'], 2)}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
@endforeach
|
|
@endforeach
|
|
|
|
|
|
|
|
</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() }, 10);
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|