191 lines
7.3 KiB
PHP
191 lines
7.3 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col">
|
|
<div class="card">
|
|
<div class="card-header header-style">
|
|
<div class="card-header header-style">
|
|
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<div class="header-style-title">
|
|
SENARAI<br>
|
|
</div>
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
@foreach($collection_datakpi as $index1=>$liststaff)
|
|
@foreach($liststaff as $index2=>$staff)
|
|
{{-- {{dd($staff[0]['kodcaw'])}} --}}
|
|
<form id="exportpdf" action="{{route('janakpi.listdatakpidetailall2',['kodcaw' => $kodcaw])}}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="type" id="typedonwload" value="">
|
|
<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></form>
|
|
@endforeach
|
|
@endforeach
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
var tablenotislelong = $('#tablenotislelong').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 3,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[1, 'asc']],
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 99999,
|
|
dom: 'Bfrtip',
|
|
buttons: [
|
|
|
|
// {
|
|
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm export',
|
|
// target: "_blank",
|
|
// titleAttr: 'Export to Excel',
|
|
// text: '<h8><b>EXCEL</b></h8>',
|
|
// action: function ( e, dt, node, config ) {
|
|
// $('#typedonwload').val('excel');
|
|
// $("#exportpdf").submit();
|
|
// // window.open("_blank");
|
|
// }
|
|
// },
|
|
|
|
{
|
|
className: 'btn btn-outline-danger pl-4 pr-4 btn-sm export',
|
|
titleAttr: 'Export to PDF',
|
|
text: '<h8><b>PDF</b></h8>',
|
|
action: function ( e, dt, node, config ) {
|
|
$('#typedonwload').val('pdf');
|
|
$("#exportpdf").submit();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
});
|
|
|
|
$('.export').tooltip();
|
|
$( '.export').removeClass('dt-button');
|
|
|
|
|
|
|
|
</script>
|
|
@endsection
|