202 lines
9.8 KiB
PHP
202 lines
9.8 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">
|
|
{{$getnamastaff->namastaff}}<br>
|
|
</div>
|
|
Jawatan: {{$jawatan[0]['namajawatan']}}
|
|
@php $jawatan = $jawatan[0]['idjawatan']; @endphp
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<form id="exportpdf" action="{{route('janakpi.listdatakpidetail2',['nokpstaff'=> $getnamastaff->nokpstaff,'kodcaw' => $getnamastaff->kodcaw])}}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="type" id="typedonwload" value="">
|
|
<input type="hidden" name="jawatan" id="jawatan" value="{{$jawatan}}">
|
|
{{-- <input type="hidden" name="type" value="User"> --}}
|
|
<table class="table table-bordered text-center" id="tablenotislelong" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
|
|
@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>
|
|
<th>Hapus</th>
|
|
</tr>
|
|
@elseif($jawatan == '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>
|
|
<th>Hapus</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>
|
|
<th>Hapus</th>
|
|
</tr>
|
|
@elseif($jawatan == 'penilai')
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Tahun</th>
|
|
<th>Bulan</th>
|
|
<th>Bil. SAG Gadaian</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Hapus</th>
|
|
</tr>
|
|
@endif
|
|
</thead>
|
|
<tbody>
|
|
|
|
@foreach ($bycaw_all as $index=>$bid)
|
|
{{-- {{dd($bid['datakpi_info'][$index]['tahun'])}} --}}
|
|
@if($jawatan == 'pc')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['pc_bilpembiayaan']}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['pc_pembiayaan'], 2)}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['pc_pendapatan'], 2)}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['pc_pelangganbaru']}}</td>
|
|
<td> <a class="btn btn-danger btn-sm m-1" href="{{ route('janakpi.hapusdatakpi',['recno'=>$bid['datakpi_info'][$index]['id']]) }}" data-toggle="tooltip" data-placement="top" title="Maklumat">Hapus</a> </td>
|
|
</tr>
|
|
@elseif($jawatan == 'ppc')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['ppc_aging1'], 2)}}%</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['ppc_aging2'], 2)}}%</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['ppc_aging3'], 2)}}%</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['ppc_penebusan'], 2)}}</td>
|
|
<td> <a class="btn btn-danger btn-sm m-1" href="{{ route('janakpi.hapusdatakpi',['recno'=>$bid['datakpi_info'][$index]['id']]) }}" data-toggle="tooltip" data-placement="top" title="Maklumat">Hapus</a> </td>
|
|
|
|
</tr>
|
|
@elseif($jawatan == 'penilai')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['penilai_bilgadai']}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['penilai_pembiayaan'], 2)}}</td>
|
|
<td> <a class="btn btn-danger btn-sm m-1" href="{{ route('janakpi.hapusdatakpi',['recno'=>$bid['datakpi_info'][$index]['id']]) }}" data-toggle="tooltip" data-placement="top" title="Maklumat">Hapus</a> </td>
|
|
|
|
</tr>
|
|
@elseif($jawatan == 'teller')
|
|
<tr>
|
|
<td>{{$loop->iteration}}
|
|
<td>{{ $bid['datakpi_info'][$index]['tahun']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['bulan']}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['teller_bilgadai']}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['teller_pembiayaan'], 2)}}</td>
|
|
<td>{{ $bid['datakpi_info'][$index]['teller_biltebus']}}</td>
|
|
<td>{{ number_format($bid['datakpi_info'][$index]['teller_tebuspembiayaan'], 2)}}</td>
|
|
<td> <a class="btn btn-danger btn-sm m-1" href="{{ route('janakpi.hapusdatakpi',['recno'=>$bid['datakpi_info'][$index]['id']]) }}" data-toggle="tooltip" data-placement="top" title="Maklumat">Hapus</a> </td>
|
|
|
|
</tr>
|
|
@endif
|
|
@endforeach
|
|
</tbody>
|
|
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
</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
|