revert view
This commit is contained in:
@ -116,84 +116,82 @@
|
|||||||
abort(403, 'Sorry !! You are Unauthorized to view any master data !');
|
abort(403, 'Sorry !! You are Unauthorized to view any master data !');
|
||||||
}
|
}
|
||||||
|
|
||||||
// $arrAccount = explode("," , $request['acc_no']);
|
$arrAccount = explode("," , $request['acc_no']);
|
||||||
// $startDate = Carbon::parse($request['startDate']);
|
$startDate = Carbon::parse($request['startDate']);
|
||||||
// $dateCore = $startDate->subDays(2);
|
$dateCore = $startDate->subDays(2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $ViewAccount = new ViewAccount;
|
$ViewAccount = new ViewAccount;
|
||||||
// $data = [];
|
$data = [];
|
||||||
// $DataAccounts = [];
|
$DataAccounts = [];
|
||||||
// $ListPinjaman = [];
|
$ListPinjaman = [];
|
||||||
// $ListLimits = [];
|
$ListLimits = [];
|
||||||
// $DataAA = [];
|
$DataAA = [];
|
||||||
// $fasilitas = [];
|
$fasilitas = [];
|
||||||
|
|
||||||
// //get No Surat
|
//get No Surat
|
||||||
// $noSurat = $this->generateNomorSurat();
|
$noSurat = $this->generateNomorSurat();
|
||||||
// $this->postInfoSurat($request ,$noSurat);
|
$this->postInfoSurat($request ,$noSurat);
|
||||||
// $listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
||||||
// $GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
$GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
||||||
// foreach ($listAccount as $key1 => $account) {
|
foreach ($listAccount as $key1 => $account) {
|
||||||
// //$Arrangement = $ViewAccount->getAAaccount($account->CUSTOMER_NO,$account->ACCOUNT_NUMBER);
|
//$Arrangement = $ViewAccount->getAAaccount($account->CUSTOMER_NO,$account->ACCOUNT_NUMBER);
|
||||||
// $Arrangement = $ViewAccount->getAAaccount($request['cus_no'] , $account->ACCOUNT_NUMBER)->first();
|
$Arrangement = $ViewAccount->getAAaccount($request['cus_no'] , $account->ACCOUNT_NUMBER)->first();
|
||||||
|
|
||||||
// $months = '';
|
$months = '';
|
||||||
|
|
||||||
// if($Arrangement != null && $Arrangement->TERM != null){
|
if($Arrangement != null && $Arrangement->TERM != null){
|
||||||
// $arrTerm = substr($Arrangement->TERM,-1);
|
$arrTerm = substr($Arrangement->TERM,-1);
|
||||||
// if($arrTerm[1] = 'Y'){
|
if($arrTerm[1] = 'Y'){
|
||||||
// $monthsInYear = 12;
|
$monthsInYear = 12;
|
||||||
// $months = int($arrTerm[0]) * $monthsInYear;
|
$months = int($arrTerm[0]) * $monthsInYear;
|
||||||
// // $term = $days;
|
// $term = $days;
|
||||||
// }elseif ($arrTerm[1] = 'D') {
|
}elseif ($arrTerm[1] = 'D') {
|
||||||
// $averageDaysInMonth = 30.44;
|
$averageDaysInMonth = 30.44;
|
||||||
// $months = int($arrTerm[0]) / $averageDaysInMonth;
|
$months = int($arrTerm[0]) / $averageDaysInMonth;
|
||||||
// // return $days;
|
// return $days;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// $DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
$DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||||
// $DataAccounts[$key1]['OPENING_DATE'] = $account->OPENING_DATE;
|
$DataAccounts[$key1]['OPENING_DATE'] = $account->OPENING_DATE;
|
||||||
// $DataAccounts[$key1]['BATCH_DATE'] = $account->BATCH_DATE;
|
$DataAccounts[$key1]['BATCH_DATE'] = $account->BATCH_DATE;
|
||||||
// $DataAccounts[$key1]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
$DataAccounts[$key1]['CUSTOMER_NO'] = $account->CUSTOMER_NO;
|
||||||
// $DataAccounts[$key1]['SHORT_NAME'] = $account->SHORT_NAME;
|
$DataAccounts[$key1]['SHORT_NAME'] = $account->SHORT_NAME;
|
||||||
// $DataAccounts[$key1]['CURRENCY'] = $account->CURRENCY;
|
$DataAccounts[$key1]['CURRENCY'] = $account->CURRENCY;
|
||||||
// $DataAccounts[$key1]['PRODUCT'] = $Arrangement->PRODUCT ?? '';
|
$DataAccounts[$key1]['PRODUCT'] = $Arrangement->PRODUCT ?? '';
|
||||||
// $DataAccounts[$key1]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
$DataAccounts[$key1]['COMPANY_NAME'] = $account->COMPANY_NAME;
|
||||||
// $DataAccounts[$key1]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
$DataAccounts[$key1]['WORKING_BALANCE'] = $account->WORKING_BALANCE;
|
||||||
// $DataAccounts[$key1]['MATURITY_DATE'] = $Arrangement->MATURITY_DATE ?? '' ;
|
$DataAccounts[$key1]['MATURITY_DATE'] = $Arrangement->MATURITY_DATE ?? '' ;
|
||||||
// $DataAccounts[$key1]['ARRANGEMENT_ID'] = $Arrangement->ARRANGEMENT_ID ?? '';
|
$DataAccounts[$key1]['ARRANGEMENT_ID'] = $Arrangement->ARRANGEMENT_ID ?? '';
|
||||||
// $DataAccounts[$key1]['FIXED_RATE'] = $Arrangement->FIXED_RATE ?? '';
|
$DataAccounts[$key1]['FIXED_RATE'] = $Arrangement->FIXED_RATE ?? '';
|
||||||
// $DataAccounts[$key1]['TERM'] = $months;
|
$DataAccounts[$key1]['TERM'] = $months;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
// $ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $dateCore )->get();
|
$ListPinjaman =$ViewAccount->getPinjaman($request['cus_no'],$arrAccount , $dateCore )->get();
|
||||||
// $ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
|
|
||||||
|
|
||||||
// $fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
|
$ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
|
||||||
|
$fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
|
||||||
|
|
||||||
// $signer = Signer::where('id', $request['signer'])->where('status',1)->get();
|
$signer = Signer::where('id', $request['signer'])->where('status',1)->get();
|
||||||
// $currentDate = Carbon::now();
|
$currentDate = Carbon::now();
|
||||||
// $tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY');
|
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY');
|
||||||
// $letter = new Letters;
|
$letter = new Letters;
|
||||||
// $infoSuratNew = $letter->where('no_cif',$request['cus_no'])->orderBy('created_at','desc')->first();
|
$infoSuratNew = $letter->where('no_cif',$request['cus_no'])->orderBy('created_at','desc')->first();
|
||||||
// $infoSuratOld = $letter->where('no_cif',$request['cus_no'])->orderBy('created_at','asc')->first();
|
$infoSuratOld = $letter->where('no_cif',$request['cus_no'])->orderBy('created_at','asc')->first();
|
||||||
|
|
||||||
// $data['DataAccounts'] = $DataAccounts;
|
$data['DataAccounts'] = $DataAccounts;
|
||||||
// $data['DataPinjaman'] = $ListPinjaman;
|
$data['DataPinjaman'] = $ListPinjaman;
|
||||||
// $data['DataLimit'] = $ListLimits;
|
$data['DataLimit'] = $ListLimits;
|
||||||
// $data['DataFasilitas'] = $fasilitas;
|
$data['DataFasilitas'] = $fasilitas;
|
||||||
// $data['DataSigner'] = $signer;
|
$data['DataSigner'] = $signer;
|
||||||
// $data['DataCustomer'] = $GetCustomer ?? '';
|
$data['DataCustomer'] = $GetCustomer ?? '';
|
||||||
// $data['localDate'] = $tanggalIndonesia;
|
$data['localDate'] = $tanggalIndonesia;
|
||||||
// $data['infoSuratOld'] = $infoSuratOld;
|
$data['infoSuratOld'] = $infoSuratOld;
|
||||||
// $data['infoSuratNew'] = $infoSuratNew;
|
$data['infoSuratNew'] = $infoSuratNew;
|
||||||
|
|
||||||
// $data = ['title' => "KonfirmasiBank "];
|
|
||||||
|
|
||||||
//Inisialisasi DOMPDF
|
//Inisialisasi DOMPDF
|
||||||
$options = new Options();
|
$options = new Options();
|
||||||
@ -201,7 +199,7 @@
|
|||||||
$options->set('isPhpEnabled', true);
|
$options->set('isPhpEnabled', true);
|
||||||
$options->set(['padding-top' => 39, 'padding-right' => 10, 'padding-bottom' => 20, 'padding-left' => 15]);
|
$options->set(['padding-top' => 39, 'padding-right' => 10, 'padding-bottom' => 20, 'padding-left' => 15]);
|
||||||
$dompdf = new Dompdf($options);
|
$dompdf = new Dompdf($options);
|
||||||
$html = View::make('konfirmasibank::exportPdf')->render();
|
$html = View::make('konfirmasibank::exportPdf', ['data' => $data])->render();
|
||||||
// Konfigurasi DOMPDF
|
// Konfigurasi DOMPDF
|
||||||
|
|
||||||
$dompdf->loadHtml($html);
|
$dompdf->loadHtml($html);
|
||||||
@ -648,4 +646,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,30 +1,333 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>PDF Title</title>
|
<style>
|
||||||
<style>
|
/* Contoh style tambahan */
|
||||||
body {
|
|
||||||
font-family: Arial, sans-serif;
|
@page {
|
||||||
|
margin-top: 3.5cm;
|
||||||
|
margin-right: 1.5cm;
|
||||||
|
margin-left: 1.5cm;
|
||||||
}
|
}
|
||||||
.container {
|
|
||||||
width: 80%;
|
/** Define the header rules **/
|
||||||
margin: 0 auto;
|
header {
|
||||||
padding: 20px;
|
position: fixed;
|
||||||
|
top: 0cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
|
height: 6.5cm;
|
||||||
|
|
||||||
}
|
}
|
||||||
h1 {
|
|
||||||
color: #333;
|
/** Define the footer rules **/
|
||||||
|
footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0cm;
|
||||||
|
left: 0cm;
|
||||||
|
right: 0cm;
|
||||||
}
|
}
|
||||||
p {
|
|
||||||
color: #666;
|
/* body{
|
||||||
}
|
margin-top: 2.5cm;
|
||||||
</style>
|
margin-bottom: 100px;
|
||||||
|
} */
|
||||||
|
|
||||||
|
/* .content {
|
||||||
|
padding-top:3.90cm;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.space1 {
|
||||||
|
border: 1px solid black;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-table {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tr-custom{
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
font-size: 12px; /* Ukuran font dalam piksel */
|
||||||
|
font-weight: normal; /* Ketebalan font (normal) */
|
||||||
|
color: #333; /* Warna teks */
|
||||||
|
line-height: normal;
|
||||||
|
line-break: loose;
|
||||||
|
}
|
||||||
|
.no-border-table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-border-table, .no-border-table th, .no-border-table td,.no-border-table tr {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
ul.no-bullets {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
font-size: 12px; /* Ukuran font dalam piksel */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<title>Konfirmasi Bank</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="content">
|
||||||
<h1>PDF Content</h1>
|
<ul class="no-bullets">
|
||||||
<p>This is a sample PDF generated using Dompdf in Laravel.</p>
|
<li>Nomor : {{$data['infoSuratOld']['no_surat']}}</li>
|
||||||
</div>
|
<li>Tanggal : {{ Carbon\Carbon::parse($data['infoSuratOld']['tgl_surat'])->format('d-m-Y') }}</li>
|
||||||
|
</ul><br>
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>Kepada Yth</li>
|
||||||
|
<li>{{$data['infoSuratNew']['nama_tujuan']}}</li>
|
||||||
|
<li>{{$data['infoSuratNew']['alamat']}}</li>
|
||||||
|
<li>Email : {{$data['infoSuratNew']['email']}}</li>
|
||||||
|
<li>Telp : {{$data['infoSuratNew']['tlp']}}</li>
|
||||||
|
</ul><br>
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li> Sesuai dengan surat saudara Nomor {{$data['infoSuratNew']['no_req_surat']}} tanggal {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} dengan ini kami sampaikan data – data nasabah sesuai permintaan saudara sebagai berikut : </li><br>
|
||||||
|
<li>Nama Nasabah : {{$data['DataCustomer']->SHORT_NAME}}</li>
|
||||||
|
<li>Nomor CIF : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
|
||||||
|
</ul><br>
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
|
||||||
|
<li>POSISI : {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} </li>
|
||||||
|
</ul>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="text-center space1" style="width:5%">No</th>
|
||||||
|
<th class="space1" style="width:15%">Jenis Rekening</th>
|
||||||
|
<th class="space1" style="width:15%">Tgl Realisasi</th>
|
||||||
|
{{-- <th class="space1" style="width:12%">Jenis Rekening</th> --}}
|
||||||
|
<th class="space1" style="width:7%">Mata Uang</th>
|
||||||
|
<th class="space1" style="width:15%">Saldo</th>
|
||||||
|
<th class="space1" style="width:10%">Jangka Waktu</th>
|
||||||
|
<th class="space1" style="width:8%">Suku Bunga</th>
|
||||||
|
{{-- <th class="space1" style="width:8%">Tgl Realisasi</th> --}}
|
||||||
|
<th class="space1" style="width:15%">Tgl Jatuh Tempo</th>
|
||||||
|
<th class="space1" style="width:10%">Keterangan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@if (count($data['DataAccounts'])>0)
|
||||||
|
@php $i=1
|
||||||
|
@endphp
|
||||||
|
@foreach ($data['DataAccounts'] as $val)
|
||||||
|
|
||||||
|
@php
|
||||||
|
|
||||||
|
$months ="";
|
||||||
|
if ($val['TERM'] != '') {
|
||||||
|
$arrData = substr($val['TERM'],-1);
|
||||||
|
if($arrData = 'Y'){
|
||||||
|
$monthsInYear = 12;
|
||||||
|
$months = intval(substr($val['TERM'], 0, -1)) * $monthsInYear;
|
||||||
|
// $term = $days;
|
||||||
|
}elseif ($arrData = 'D') {
|
||||||
|
$averageDaysInMonth = 30.44;
|
||||||
|
$months = intval(substr($val['TERM'], 0, -1)) / $averageDaysInMonth;
|
||||||
|
// return $days;
|
||||||
|
}else{
|
||||||
|
$months = intval($val['TERM']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $val['SHORT_NAME'] }}</td>
|
||||||
|
<td class="space1 text-center">{{ $val['OPENING_DATE'] }}</td>
|
||||||
|
{{-- <td class="space1">{{ $val['SHORT_NAME'] }}</td> --}}
|
||||||
|
<td class="space1 text-center">{{ $val['CURRENCY'] }}</td>
|
||||||
|
<td class="space1 text-center">{{ ($val['WORKING_BALANCE'] != 0.00) ? number_format($val['WORKING_BALANCE'],2,',','.') : 'NIHIL'}} </td>
|
||||||
|
<td class="text-center space1">{{ round(intval($months)) ? 0 : '' }} </td>
|
||||||
|
<td class="text-center space1">{{ intval($val['FIXED_RATE']) / 100 }} %</td>
|
||||||
|
{{-- <td class="text-center space1">{{ $val['OPENING_DATE'] }}</td> --}}
|
||||||
|
<td class="text-center space1">{{ $val['MATURITY_DATE'] }}</td>
|
||||||
|
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Data Yang Ditampilkan</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA NASABAH</li>
|
||||||
|
<li>POSISI : {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} </li>
|
||||||
|
</ul>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="text-center space1" style="width:5%">No</th>
|
||||||
|
<th class="space1" style="width:15%">Jenis Rekening</th>
|
||||||
|
<th class="space1" style="width:15%">Tgl Realisasi</th>
|
||||||
|
{{-- <th class="space1" style="width:12%">Jenis Rekening</th> --}}
|
||||||
|
<th class="space1" style="width:7%">Mata Uang</th>
|
||||||
|
<th class="space1" style="width:15%">Saldo</th>
|
||||||
|
<th class="space1" style="width:10%">Jangka Waktu</th>
|
||||||
|
<th class="space1" style="width:8%">Suku Bunga</th>
|
||||||
|
{{-- <th class="space1" style="width:8%">Tgl Realisasi</th> --}}
|
||||||
|
<th class="space1" style="width:15%">Tgl Jatuh Tempo</th>
|
||||||
|
<th class="space1" style="width:10%">Keterangan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@if (count($data['DataPinjaman'])>0)
|
||||||
|
@php $i=1;
|
||||||
|
$saldo = '';
|
||||||
|
@endphp
|
||||||
|
@foreach ($data['DataPinjaman'] as $key1 => $pinjaman)
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $pinjaman->CATEGORY_NAME }}</td>
|
||||||
|
<td class="text-center space1 ">{{$pinjaman->START_DATE }}</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman->CURRENCY }}</td>
|
||||||
|
<td class="text-center space1"> {{ ($pinjaman->WORKING_BALANCE != 0.00) ? number_format($pinjaman->WORKING_BALANCE,2,',','.') : 'NIHIL'}}</td>
|
||||||
|
@if (substr($pinjaman->TERM,-1) == 'D')
|
||||||
|
<td class="text-center space1">{{ round(intval(substr($pinjaman->TERM, 0, -1)) / 30) }} </td>
|
||||||
|
@elseif(substr($pinjaman->TERM,-1) == 'Y')
|
||||||
|
<td class="text-center space1">{{ round(intval(substr($pinjaman->TERM, 0, -1)) * 12) }} </td>
|
||||||
|
@else
|
||||||
|
<td class="text-center space1">{{ $pinjaman->TERM }}</td>
|
||||||
|
@endif
|
||||||
|
<td class="text-center space1">{{ intval($pinjaman->FIXED_RATE) / 100 }} %</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman->MATURITY_DATE }}</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman->ACCOUNT_NUMBER }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Data Pinjaman Yang Ditampilkan</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
||||||
|
<li>POSISI : {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} </li>
|
||||||
|
</ul>
|
||||||
|
<table class="space1" style="width:100%;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1" >
|
||||||
|
<th class="text-center space1" style="width:5%">No</th>
|
||||||
|
<th class="space1" style="width:15%">Jenis Rekening</th>
|
||||||
|
<th class="space1" style="width:15%">Tgl Realisasi</th>
|
||||||
|
<th class="space1" style="width:7%">Mata Uang</th>
|
||||||
|
<th class="space1" style="width:15%">Saldo</th>
|
||||||
|
<th class="space1" style="width:10%">Jangka Waktu</th>
|
||||||
|
<th class="space1" style="width:8%">Suku Bunga</th>
|
||||||
|
<th class="space1" style="width:15%">Tgl Jatuh Tempo</th>
|
||||||
|
<th class="space1" style="width:10%">Keterangan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@if (count($data['DataLimit']) > 0 OR count($data['DataFasilitas']) > 0 )
|
||||||
|
@if (count($data['DataLimit']) > 0)
|
||||||
|
@php $i=1 @endphp
|
||||||
|
@foreach ($data['DataLimit'] as $limit)
|
||||||
|
@php
|
||||||
|
$approvalDate = \Carbon\Carbon::parse($limit->APPROVAL_DATE);
|
||||||
|
$expiryDate = \Carbon\Carbon::parse($limit->EXPIRY_DATE);
|
||||||
|
$term = $expiryDate->diffInMonths($approvalDate);
|
||||||
|
$limitPecent = intval($limit->LIMIT_PERCENTAGE) / 100 ;
|
||||||
|
$noRek = explode(']', $limit->ACCOUNT);
|
||||||
|
@endphp
|
||||||
|
<tr class="space1">
|
||||||
|
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
||||||
|
<td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td>
|
||||||
|
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
||||||
|
<td class="space1">{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
||||||
|
<td class="text-center space1">{{ $term }} </td>
|
||||||
|
<td class="text-center space1">{{ $limitPecent }} %</td>
|
||||||
|
<td class="text-center space1">{{ $expiryDate->format('d-m-Y')}}</td>
|
||||||
|
<td class="text-center space1">
|
||||||
|
@if(count($noRek) > 1)
|
||||||
|
<ul class="no-bullets">
|
||||||
|
@foreach ($noRek as $item)
|
||||||
|
<li style=" font-family: Times New Roman,Times, sans-serif;font-size:12px">{{$item}}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
@else
|
||||||
|
{{ $limit->ACCOUNT}}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if (count($data['DataFasilitas']) > 0)
|
||||||
|
@php
|
||||||
|
$no = 0;
|
||||||
|
if (count( $data['DataLimit']) > 0) {
|
||||||
|
$no = count($data['DataLimit']) + 1 ;
|
||||||
|
}else{
|
||||||
|
$no = 1 ;
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($data['DataFasilitas'] as $fasilitas)
|
||||||
|
<tr class="space1" style="background-color: antiquewhite">
|
||||||
|
<td class="text-center space1">{{ $no++ }}</td>
|
||||||
|
<td class="space1">{{ $fasilitas->jenis_fasilitas }}</td>
|
||||||
|
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->start_date)->format('d-m-Y') }}</td>
|
||||||
|
<td class="text-center space1">{{ $fasilitas->mata_uang }}</td>
|
||||||
|
<td class="space1">{{ $fasilitas->saldo }}</td>
|
||||||
|
<td class="text-center space1 ">{{ $fasilitas->jangka_waktu }}</td>
|
||||||
|
<td class="text-center space1">{{ $fasilitas->fixed_rate }} %</td>
|
||||||
|
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->due_date)->format('d-m-Y') }}</td>
|
||||||
|
<td class="text-center space1">{{ $fasilitas->nomor_rekening }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Fasilitas </td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
|
||||||
|
<p>Demikian data ini kami sampaikan agar dapat digunakan sebagaimana mestinya</p> <br><br><br><br>
|
||||||
|
|
||||||
|
<div style="width:300px" class>
|
||||||
|
<table style="width:100%;" class="space1 no-border-table">
|
||||||
|
<tr class="space1" style="height:350px">
|
||||||
|
<td class="space1" style="width:20%;font-size:12px;" >
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>{{$data['DataSigner'][0]['deputy_director_name']}}</li>
|
||||||
|
<li>Deputy Director</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td class="space1" style="width:20%;font-size:12px;" >
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>{{$data['DataSigner'][0]['executive_officer_name']}}</li>
|
||||||
|
<li>Executive Officer</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user