fixing pagenumber
This commit is contained in:
@ -474,9 +474,17 @@
|
|||||||
$pages = array_filter($objects, function($v) {
|
$pages = array_filter($objects, function($v) {
|
||||||
return $v['t'] == 'page';
|
return $v['t'] == 'page';
|
||||||
});
|
});
|
||||||
|
|
||||||
$number = 1;
|
$number = 1;
|
||||||
|
$no = 0;
|
||||||
$noSurat = $infoSuratNew['no_surat'] ;
|
$noSurat = $infoSuratNew['no_surat'] ;
|
||||||
foreach($pages as $pageId => $page) {
|
foreach($pages as $pageId => $page) {
|
||||||
|
$nos = $page['info']['pageNum'];
|
||||||
|
$canvas->reopen_object($pageId + 1);
|
||||||
|
$canvas->text(502, 780, "Page : ". $nos, $font, 10, array(0,0,0));
|
||||||
|
$canvas->close_object();
|
||||||
|
$number++;
|
||||||
|
|
||||||
if(($pageId + 1) !== $firstPageId) {
|
if(($pageId + 1) !== $firstPageId) {
|
||||||
$canvas->reopen_object($pageId + 1);
|
$canvas->reopen_object($pageId + 1);
|
||||||
$canvas->text(350, 50, "Lanjutan Surat No : $noSurat", $font, 10, array(0,0,0));
|
$canvas->text(350, 50, "Lanjutan Surat No : $noSurat", $font, 10, array(0,0,0));
|
||||||
|
@ -54,15 +54,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.footer {
|
#footer {
|
||||||
width: 100%;
|
position: fixed;
|
||||||
text-align: center;
|
left: 20px;
|
||||||
position: fixed;
|
bottom: 0;
|
||||||
margin-top: 1cm;
|
text-align: center;
|
||||||
top: 23cm;
|
}
|
||||||
font-size: 12px;
|
#footer .page:after {
|
||||||
|
content: counter(page);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .header {
|
/* .header {
|
||||||
@ -72,7 +71,7 @@
|
|||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
font-size: 20px !important;
|
font-size: 20px !important;dsdas
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -83,14 +82,14 @@
|
|||||||
/* body:nth-child(1) .header {
|
/* body:nth-child(1) .header {
|
||||||
display: none;
|
display: none;
|
||||||
} */
|
} */
|
||||||
|
/*
|
||||||
.pagenum:before {
|
.pagenum:before {
|
||||||
content: counter(page);
|
content: counter(page);
|
||||||
}
|
} */
|
||||||
|
|
||||||
.flyleaf {
|
/* .flyleaf {
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -98,150 +97,31 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main>
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>Nomor : {{$data['infoSuratNew']['no_surat']}}</li>
|
||||||
|
<li>Tanggal : {{ $data['today'] }}</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 : {{ $data['batchDate'] }} </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<ul class="no-bullets">
|
<table style="width:100%;" class="space1" >
|
||||||
<li>Nomor : {{$data['infoSuratNew']['no_surat']}}</li>
|
<thead style="background-color: dimgrey" >
|
||||||
<li>Tanggal : {{ $data['today'] }}</li>
|
<tr>
|
||||||
</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 : {{ $data['batchDate'] }} </li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<table style="width:100%;" class="space1" >
|
|
||||||
<thead style="background-color: dimgrey" >
|
|
||||||
<tr>
|
|
||||||
<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:12%">Tgl Realisasi</th>
|
|
||||||
<th class="text-center space1" style="width:7%">Mata Uang</th>
|
|
||||||
<th class="text-center space1" style="width:16%">Saldo</th>
|
|
||||||
<th class="text-center space1" style="width:10%">Tenor</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:10%">Keterangan</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@if (count($data['DataAccounts'])>0 )
|
|
||||||
@php $i=1
|
|
||||||
@endphp
|
|
||||||
@foreach ($data['DataAccounts'] as $val)
|
|
||||||
<tr class="space1">
|
|
||||||
<td class="text-center space1">{{ $i++ }}</td>
|
|
||||||
<td class="text-left space1">{{ $val['SHORT_NAME'] }}</td>
|
|
||||||
<td class=" text-center space1"></td>
|
|
||||||
<td class=" text-center space1">{{ $val['CURRENCY'] }}</td>
|
|
||||||
<td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td>
|
|
||||||
<td class="text-center space1 ">{{ $val['TERM'] }}</td>
|
|
||||||
<td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td>
|
|
||||||
<td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td>
|
|
||||||
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@else
|
|
||||||
<tr class="">
|
|
||||||
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
<!-- Add more rows here if needed -->
|
|
||||||
</tbody>
|
|
||||||
</table><br>
|
|
||||||
|
|
||||||
<ul class="no-bullets">
|
|
||||||
<li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA NASABAH</li>
|
|
||||||
<li>POSISI : {{ $data['batchDate'] }} </li>
|
|
||||||
</ul>
|
|
||||||
<table class="space1" style="width:100%;page-break-inside: avoid;">
|
|
||||||
<thead style="background-color: dimgrey">
|
|
||||||
<tr class="space1">
|
|
||||||
<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:12%">Tgl Realisasi</th>
|
|
||||||
<th class="text-center space1" style="width:7%">Mata Uang</th>
|
|
||||||
<th class="text-center space1" style="width:16%">Saldo</th>
|
|
||||||
<th class="text-center" style="width:10%">Tenor</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:10%">Keterangan</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@if (count($data['DataPinjaman'])>0 OR count($data['DataRK'])>0)
|
|
||||||
@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['PRODUCT'] }}</td>
|
|
||||||
<td class="text-center space1 "></td>
|
|
||||||
<td class="text-center space1">{{ $pinjaman['CURRENCY'] }}</td>
|
|
||||||
<td class="text-right space1">{{$pinjaman['WORKING_BALANCE']}}</td>
|
|
||||||
<td class="text-center space1">{{ $pinjaman['TERM'] }} BLN</td>
|
|
||||||
<td class="text-center space1">{{ $pinjaman['FIXED_RATE'] }} %</td>
|
|
||||||
<td class="text-center space1">{{ $pinjaman['MATURITY_DATE'] }}</td>
|
|
||||||
<td class="text-center space1">{{ $pinjaman['ACCOUNT_NUMBER'] }}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if (count($data['DataRK']) > 0)
|
|
||||||
@php
|
|
||||||
$no = 0;
|
|
||||||
if (count( $data['DataPinjaman']) > 0) {
|
|
||||||
$no = count($data['DataPinjaman']) + 1 ;
|
|
||||||
}else{
|
|
||||||
$no = 1 ;
|
|
||||||
}
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@foreach ($data['DataRK'] as $rk => $dtRK)
|
|
||||||
<tr class="space1">
|
|
||||||
<td class="text-center space1">{{ $i++ }}</td>
|
|
||||||
<td class="space1">{{ $dtRK['SHORT_NAME'] }}</td>
|
|
||||||
<td class="text-center space1 "></td>
|
|
||||||
<td class="text-center space1">{{ $dtRK['CURRENCY'] }}</td>
|
|
||||||
<td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td>
|
|
||||||
<td class="text-center space1"></td>
|
|
||||||
<td class="text-center space1"></td>
|
|
||||||
<td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td>
|
|
||||||
<td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
@else
|
|
||||||
<tr class="space1">
|
|
||||||
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
</tbody>
|
|
||||||
</table><br>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="no-bullets" style="page-break-inside: avoid;">
|
|
||||||
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
|
||||||
<li>POSISI : {{ $data['batchDate'] }} </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="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>
|
||||||
<th class="text-center space1" style="width:12%">Tgl Realisasi</th>
|
<th class="text-center space1" style="width:12%">Tgl Realisasi</th>
|
||||||
@ -252,103 +132,217 @@
|
|||||||
<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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@if (count($data['DataLimit']) > 0 OR count($data['DataFasilitas']) > 0 )
|
@if (count($data['DataAccounts'])>0 )
|
||||||
@if (count($data['DataLimit']) > 0)
|
@php $i=1
|
||||||
@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);
|
|
||||||
//conver term
|
|
||||||
@endphp
|
@endphp
|
||||||
<tr class="space1">
|
@foreach ($data['DataAccounts'] as $val)
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="text-left space1">{{ $val['SHORT_NAME'] }}</td>
|
||||||
|
<td class=" text-center space1"></td>
|
||||||
|
<td class=" text-center space1">{{ $val['CURRENCY'] }}</td>
|
||||||
|
<td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td>
|
||||||
|
<td class="text-center space1 ">{{ $val['TERM'] }}</td>
|
||||||
|
<td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td>
|
||||||
|
<td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td>
|
||||||
|
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td>
|
||||||
|
|
||||||
<td class="text-center space1">{{ $i++ }}</td>
|
</tr>
|
||||||
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
@endforeach
|
||||||
<td class="text-center space1"></td>
|
@else
|
||||||
{{-- <td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td> --}}
|
<tr class="">
|
||||||
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
|
||||||
<td class="space1 text-right">
|
</tr>
|
||||||
{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
@endif
|
||||||
<td class="text-center space1">{{ $term }} BLN </td>
|
<!-- Add more rows here if needed -->
|
||||||
<td class="text-center space1">{{ $limitPecent }} %</td>
|
</tbody>
|
||||||
<td class="text-center space1">{{ $expiryDate->format('d-m-Y')}}</td>
|
</table><br>
|
||||||
<td class="text-center space1">
|
|
||||||
@if(count($noRek) > 1)
|
<ul class="no-bullets">
|
||||||
<ul class="no-bullets">
|
<li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA NASABAH</li>
|
||||||
@foreach ($noRek as $item)
|
<li>POSISI : {{ $data['batchDate'] }} </li>
|
||||||
<li style=" font-family: Times New Roman,Times, sans-serif;font-size:12px">{{$item}}</li>
|
</ul>
|
||||||
|
<table class="space1" style="width:100%;page-break-inside: avoid;">
|
||||||
|
<thead style="background-color: dimgrey">
|
||||||
|
<tr class="space1">
|
||||||
|
<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:12%">Tgl Realisasi</th>
|
||||||
|
<th class="text-center space1" style="width:7%">Mata Uang</th>
|
||||||
|
<th class="text-center space1" style="width:16%">Saldo</th>
|
||||||
|
<th class="text-center" style="width:10%">Tenor</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:10%">Keterangan</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@if (count($data['DataPinjaman'])>0 OR count($data['DataRK'])>0)
|
||||||
|
@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['PRODUCT'] }}</td>
|
||||||
|
<td class="text-center space1 "></td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman['CURRENCY'] }}</td>
|
||||||
|
<td class="text-right space1">{{$pinjaman['WORKING_BALANCE']}}</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman['TERM'] }} BLN</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman['FIXED_RATE'] }} %</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman['MATURITY_DATE'] }}</td>
|
||||||
|
<td class="text-center space1">{{ $pinjaman['ACCOUNT_NUMBER'] }}</td>
|
||||||
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
|
||||||
@else
|
|
||||||
{{ $limit->ACCOUNT}}
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if (count($data['DataRK']) > 0)
|
||||||
|
@php
|
||||||
|
$no = 0;
|
||||||
|
if (count( $data['DataPinjaman']) > 0) {
|
||||||
|
$no = count($data['DataPinjaman']) + 1 ;
|
||||||
|
}else{
|
||||||
|
$no = 1 ;
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@foreach ($data['DataRK'] as $rk => $dtRK)
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $dtRK['SHORT_NAME'] }}</td>
|
||||||
|
<td class="text-center space1 "></td>
|
||||||
|
<td class="text-center space1">{{ $dtRK['CURRENCY'] }}</td>
|
||||||
|
<td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td>
|
||||||
|
<td class="text-center space1"></td>
|
||||||
|
<td class="text-center space1"></td>
|
||||||
|
<td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td>
|
||||||
|
<td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<tr class="space1">
|
||||||
|
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
</tbody>
|
||||||
|
</table><br>
|
||||||
|
<ul class="no-bullets" style="page-break-inside: avoid;">
|
||||||
|
<li>FASILITAS LAIN YANG DITERIMA OLEH NASABAH</li>
|
||||||
|
<li>POSISI : {{ $data['batchDate'] }} </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="text-center space1" style="width:21%">Jenis Rekening</th>
|
||||||
|
<th class="text-center space1" style="width:12%">Tgl Realisasi</th>
|
||||||
|
<th class="text-center space1" style="width:7%">Mata Uang</th>
|
||||||
|
<th class="text-center space1" style="width:16%">Saldo</th>
|
||||||
|
<th class="text-center space1" style="width:10%">Tenor</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: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);
|
||||||
|
//conver term
|
||||||
|
@endphp
|
||||||
|
<tr class="space1">
|
||||||
|
|
||||||
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
|
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
||||||
|
<td class="text-center space1"></td>
|
||||||
|
{{-- <td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td> --}}
|
||||||
|
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
||||||
|
<td class="space1 text-right">
|
||||||
|
{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
||||||
|
<td class="text-center space1">{{ $term }} BLN </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">
|
||||||
|
<td class="text-center space1">{{ $no++ }}</td>
|
||||||
|
<td class="space1">{{ $fasilitas['jenis_fasilitas'] }}</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">{{ $fasilitas['mata_uang'] }}</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['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;">NIHIL</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="">
|
||||||
|
<table style="width:100%;" class=" no-border-table">
|
||||||
|
<td class="space1" style="width:20%;font-size:12px;border:none">
|
||||||
|
<ul class="no-bullets">
|
||||||
|
<li>{{ $data['DataSigner'][0]['deputy_director_name'] }}</li>
|
||||||
|
<li>Deputy Director</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td class="space1" style="width:30%;font-size:12px;border:none;">
|
||||||
|
<ul class="no-bullets" style="margin-left: 50px">
|
||||||
|
<li>{{ $data['DataSigner'][0]['executive_officer_name'] }}</li>
|
||||||
|
<li>Executive Officer</li>
|
||||||
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
</table>
|
||||||
@endif
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
@if (count($data['DataFasilitas']) > 0)
|
</body>
|
||||||
@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">
|
|
||||||
<td class="text-center space1">{{ $no++ }}</td>
|
|
||||||
<td class="space1">{{ $fasilitas['jenis_fasilitas'] }}</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">{{ $fasilitas['mata_uang'] }}</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['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;">NIHIL</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="">
|
|
||||||
<table style="width:100%;" class=" no-border-table">
|
|
||||||
<td class="space1" style="width:20%;font-size:12px;border:none">
|
|
||||||
<ul class="no-bullets">
|
|
||||||
<li>{{ $data['DataSigner'][0]['deputy_director_name'] }}</li>
|
|
||||||
<li>Deputy Director</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
<td class="space1" style="width:30%;font-size:12px;border:none;">
|
|
||||||
<ul class="no-bullets" style="margin-left: 50px">
|
|
||||||
<li>{{ $data['DataSigner'][0]['executive_officer_name'] }}</li>
|
|
||||||
<li>Executive Officer</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="footer">
|
|
||||||
Page <span class="pagenum" style="margin-top:100px"></span>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user