fixing blade export
This commit is contained in:
@ -470,6 +470,8 @@ class KonfirmasiBankController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $Arrangement = $Account->getPinjaman($request['cusNo'], $dateCoreAccount)->get();
|
// $Arrangement = $Account->getPinjaman($request['cusNo'], $dateCoreAccount)->get();
|
||||||
// DD($Arrangement);
|
// DD($Arrangement);
|
||||||
// try {
|
// try {
|
||||||
@ -490,26 +492,23 @@ class KonfirmasiBankController extends Controller
|
|||||||
$DataAccounts[$key1]['TERM'] = '';
|
$DataAccounts[$key1]['TERM'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($account->jenis_rekening == 'DEPOSITO') {
|
||||||
|
$tanggalMulai = Carbon::parse($account->tgl_mulai);
|
||||||
|
$tanggalJatuhTempo = Carbon::parse($account->jatuh_tempo);
|
||||||
|
$selisihHari = $tanggalMulai->diffInMonths($tanggalJatuhTempo);
|
||||||
|
$DataDepo[$key1]['ACCOUNT_NUMBER'] = $account->no_rek;
|
||||||
|
$DataDepo[$key1]['BATCH_DATE'] = $account->period;
|
||||||
|
$DataDepo[$key1]['CUSTOMER_NO'] = $account->cif;
|
||||||
|
$DataDepo[$key1]['SHORT_NAME'] = $account->jenis_rekening; //$depo->SHORT_NAME;
|
||||||
|
$DataDepo[$key1]['CURRENCY'] = $account->kode_mata_uang;
|
||||||
|
$DataDepo[$key1]['PRODUCT'] = $account->jenis_rekening;
|
||||||
|
$DataDepo[$key1]['COMPANY_NAME'] = $account->nama_cabang;
|
||||||
|
$DataDepo[$key1]['WORKING_BALANCE'] = $account->jumlah_nominal != null ? number_format(abs($account->jumlah_nominal), 2, ',', '.') : 'NIHIL';
|
||||||
|
$DataDepo[$key1]['MATURITY_DATE'] = $account->jatuh_tempo;
|
||||||
|
$DataDepo[$key1]['FIXED_RATE'] = $account->suku_bunga . ' %' ;
|
||||||
|
$DataDepo[$key1]['TERM'] = $selisihHari . ' BLN';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$listAccountDepo = DPK::where('cif',$request['cusNo'])->whereIn('no_rek', $arrAccount)->whereDate('period', $dateCoreDepo )->orderBy('jenis_rekening', 'DESC')->get();
|
|
||||||
|
|
||||||
foreach ($listAccountDepo as $keyDepo => $depo) {
|
|
||||||
$tanggalMulai = Carbon::parse($depo->tgl_mulai);
|
|
||||||
$tanggalJatuhTempo = Carbon::parse($depo->jatuh_tempo);
|
|
||||||
$selisihHari = $tanggalMulai->diffInMonths($tanggalJatuhTempo);
|
|
||||||
$DataDepo[$keyDepo]['ACCOUNT_NUMBER'] = $depo->no_rek;
|
|
||||||
$DataDepo[$keyDepo]['BATCH_DATE'] = $depo->period;
|
|
||||||
$DataDepo[$keyDepo]['CUSTOMER_NO'] = $depo->cif;
|
|
||||||
$DataDepo[$keyDepo]['SHORT_NAME'] = $depo->jenis_rekening; //$depo->SHORT_NAME;
|
|
||||||
$DataDepo[$keyDepo]['CURRENCY'] = $depo->kode_mata_uang;
|
|
||||||
$DataDepo[$keyDepo]['PRODUCT'] = $depo->jenis_rekening;
|
|
||||||
$DataDepo[$keyDepo]['COMPANY_NAME'] = $depo->nama_cabang;
|
|
||||||
$DataDepo[$keyDepo]['WORKING_BALANCE'] = $depo->jumlah_nominal != null ? number_format(abs($depo->jumlah_nominal), 2, ',', '.') : 'NIHIL';
|
|
||||||
$DataDepo[$keyDepo]['MATURITY_DATE'] = $depo->jatuh_tempo;
|
|
||||||
$DataDepo[$keyDepo]['FIXED_RATE'] = $depo->suku_bunga . ' %' ;
|
|
||||||
$DataDepo[$keyDepo]['TERM'] = $selisihHari . ' BLN';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -549,6 +548,8 @@ class KonfirmasiBankController extends Controller
|
|||||||
$letter = new Letters();
|
$letter = new Letters();
|
||||||
$infoSuratNew = $letter->where('no_cif', $request['cusNo'])->orderBy('id', 'DESC')->first();
|
$infoSuratNew = $letter->where('no_cif', $request['cusNo'])->orderBy('id', 'DESC')->first();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$data['DataAccounts'] = $DataAccounts;
|
$data['DataAccounts'] = $DataAccounts;
|
||||||
$data['DataLoan'] = $DataLoan;
|
$data['DataLoan'] = $DataLoan;
|
||||||
$data['DataDepo'] = $DataDepo ;
|
$data['DataDepo'] = $DataDepo ;
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!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>Export Konfrimasi Bank</title>
|
<title>Export Konfrimasi Bank</title>
|
||||||
<style>
|
<style>
|
||||||
@page {
|
@page {
|
||||||
margin-top: 3.5cm;
|
margin-top: 3.5cm;
|
||||||
margin-right: 1.5cm;
|
margin-right: 1.5cm;
|
||||||
@ -14,11 +15,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
.text-center{
|
.text-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-right{
|
.text-right {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,12 +28,14 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 12px; /* Ukuran font dalam piksel */
|
font-size: 12px;
|
||||||
|
/* Ukuran font dalam piksel */
|
||||||
}
|
}
|
||||||
|
|
||||||
p{
|
p {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 12px; /* Ukuran font dalam piksel */
|
font-size: 12px;
|
||||||
|
/* Ukuran font dalam piksel */
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-border-table {
|
.no-border-table {
|
||||||
@ -89,7 +92,7 @@
|
|||||||
/* body:nth-child(1) .header {
|
/* body:nth-child(1) .header {
|
||||||
display: none;
|
display: none;
|
||||||
} */
|
} */
|
||||||
/*
|
/*
|
||||||
.pagenum:before {
|
.pagenum:before {
|
||||||
content: counter(page);
|
content: counter(page);
|
||||||
} */
|
} */
|
||||||
@ -97,12 +100,10 @@
|
|||||||
/* .flyleaf {
|
/* .flyleaf {
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
} */
|
} */
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<ul class="no-bullets">
|
<ul class="no-bullets">
|
||||||
@ -110,7 +111,7 @@
|
|||||||
<li>Tanggal : {{ $data['today'] }}</li>
|
<li>Tanggal : {{ $data['today'] }}</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<ul class="no-bullets">
|
<ul class="no-bullets">
|
||||||
<table style="width:100%;border: none !important" class="space1 " >
|
<table style="width:100%;border: none !important" class="space1 ">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width:50%">Kepada Yth</td>
|
<td style="width:50%">Kepada Yth</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -120,16 +121,18 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="width:50%">{{$data['infoSuratNew']['alamat']}}</td>
|
<td style="width:50%">{{$data['infoSuratNew']['alamat']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr >
|
<tr>
|
||||||
<td style="width:50%">Email : {{$data['infoSuratNew']['email']}}</td>
|
<td style="width:50%">Email : {{$data['infoSuratNew']['email']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr >
|
<tr>
|
||||||
<td style="width:50%">Telp : {{$data['infoSuratNew']['tlp']}}</td>
|
<td style="width:50%">Telp : {{$data['infoSuratNew']['tlp']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<ul class="no-bullets">
|
<ul class="no-bullets">
|
||||||
<li> Sesuai dengan surat saudara Nomor {{$data['infoSuratNew']['no_req_surat']}} tanggal {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->locale('id')->isoFormat('DD MMMM YYYY') }} dengan ini kami sampaikan data – data nasabah sesuai permintaan saudara sebagai berikut : </li><br>
|
<li> Sesuai dengan surat saudara Nomor {{$data['infoSuratNew']['no_req_surat']}} tanggal
|
||||||
|
{{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->locale('id')->isoFormat('DD MMMM YYYY') }}
|
||||||
|
dengan ini kami sampaikan data – data nasabah sesuai permintaan saudara sebagai berikut : </li><br>
|
||||||
<li>Nama Nasabah : {{$data['DataCustomer']->SHORT_NAME}}</li>
|
<li>Nama Nasabah : {{$data['DataCustomer']->SHORT_NAME}}</li>
|
||||||
<li>Nomor CIF : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
|
<li>Nomor CIF : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
@ -138,8 +141,8 @@
|
|||||||
<li>POSISI : {{ $data['localDate'] }} </li>
|
<li>POSISI : {{ $data['localDate'] }} </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<table style="width:100%;" class="space1 " >
|
<table style="width:100%;" class="space1 ">
|
||||||
<thead style="background-color: dimgrey" >
|
<thead style="background-color: dimgrey">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center space1" style="width:5%">No</th>
|
<th class="text-center space1" style="width:5%">No</th>
|
||||||
<th class="text-center space1" style="width:21%">Jenis Rekening</th>
|
<th class="text-center space1" style="width:21%">Jenis Rekening</th>
|
||||||
@ -150,9 +153,12 @@
|
|||||||
<th class="text-center space1" style="width:8%">Suku Bunga</th>
|
<th class="text-center space1" style="width:8%">Suku Bunga</th>
|
||||||
<th class="text-center space1" style="width:11%">Tgl Jatuh Tempo</th>
|
<th class="text-center space1" style="width:11%">Tgl Jatuh Tempo</th>
|
||||||
<th class="text-center space1" style="width:10%">Keterangan</th>
|
<th class="text-center space1" style="width:10%">Keterangan</th>
|
||||||
</tr>
|
</t>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
|
if
|
||||||
|
|
||||||
@if (count($data['DataAccounts'])>0 )
|
@if (count($data['DataAccounts'])>0 )
|
||||||
@php
|
@php
|
||||||
$i=1
|
$i=1
|
||||||
@ -339,7 +345,7 @@
|
|||||||
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
||||||
<li>POSISI : {{ $data['localDate'] }} </li>
|
<li>POSISI : {{ $data['localDate'] }} </li>
|
||||||
</ul>
|
</ul>
|
||||||
<table class="space1"style="width:100%; page-break-inside: avoid;">
|
<table class="space1" style="width:100%; page-break-inside: avoid;">
|
||||||
<thead style="background-color: dimgrey">
|
<thead style="background-color: dimgrey">
|
||||||
<tr class="space1">
|
<tr class="space1">
|
||||||
<th class="text-center space1" style="width:5%">No</th>
|
<th class="text-center space1" style="width:5%">No</th>
|
||||||
@ -364,9 +370,11 @@
|
|||||||
<td class="text-center space1">{{ $no++ }}</td>
|
<td class="text-center space1">{{ $no++ }}</td>
|
||||||
<td class="space1">{{ $fasilitas['jenis_fasilitas'] }}</td>
|
<td class="space1">{{ $fasilitas['jenis_fasilitas'] }}</td>
|
||||||
<td class="text-center space1"></td>
|
<td class="text-center space1"></td>
|
||||||
{{-- <td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->start_date)->format('d-m-Y') }}</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="text-center space1">{{ $fasilitas['mata_uang'] }}</td>
|
||||||
<td class="space1 text-right"> {{ $fasilitas['saldo']}}</td></td>
|
<td class="space1 text-right"> {{ $fasilitas['saldo']}}</td>
|
||||||
|
</td>
|
||||||
<td class="text-center space1 ">{{ $fasilitas['jangka_waktu'] }}</td>
|
<td class="text-center space1 ">{{ $fasilitas['jangka_waktu'] }}</td>
|
||||||
<td class="text-center space1">{{ $fasilitas['fixed_rate'] }} %</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">{{ \Carbon\Carbon::parse($fasilitas['due_date'])->format('d-m-Y') }}</td>
|
||||||
@ -403,6 +411,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -173,21 +173,24 @@
|
|||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
@if (!$data['DataDepo'])
|
@if (count($data['DataDepo']) > 0)
|
||||||
@php
|
@php
|
||||||
$no= count($data['DataAccounts']);
|
$no= count($data['DataAccounts']);
|
||||||
@endphp
|
@endphp
|
||||||
|
@foreach ($data['DataDepo'] as $item)
|
||||||
<tr class="space1">
|
<tr class="space1">
|
||||||
<td class="text-center space1">{{ $no++ }}</td>
|
<td class="text-center space1">{{ $no++ }}</td>
|
||||||
<td class="text-left space1">{{ $val['SHORT_NAME'] }}</td>
|
<td class="text-left space1">{{ $item['SHORT_NAME'] }}</td>
|
||||||
<td class=" text-center space1"></td>
|
<td class=" text-center space1"></td>
|
||||||
<td class=" text-center space1">{{ $val['CURRENCY'] }}</td>
|
<td class=" text-center space1">{{ $item['CURRENCY'] }}</td>
|
||||||
<td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td>
|
<td class=" text-right space1">{{ $item['WORKING_BALANCE'] }}</td>
|
||||||
<td class="text-center space1 ">{{ $val['TERM'] }}</td>
|
<td class="text-center space1 ">{{ $item['TERM'] }}</td>
|
||||||
<td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td>
|
<td class="text-center space1 ">{{ $item['FIXED_RATE'] }}</td>
|
||||||
<td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td>
|
<td class="text-center space1 ">{{ $item['MATURITY_DATE'] }}</td>
|
||||||
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }} </td>
|
<td class="text-center space1">{{ $item['ACCOUNT_NUMBER'] }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
@else
|
@else
|
||||||
@php
|
@php
|
||||||
$no= count($data['DataAccounts']);
|
$no= count($data['DataAccounts']);
|
||||||
|
Reference in New Issue
Block a user