find error 19
This commit is contained in:
@ -211,13 +211,13 @@
|
|||||||
$currentDate = Carbon::now();
|
$currentDate = Carbon::now();
|
||||||
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY');
|
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY');
|
||||||
|
|
||||||
//$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;
|
||||||
|
|
||||||
@ -845,4 +845,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -104,6 +104,126 @@
|
|||||||
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
|
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
|
||||||
<li>POSISI : {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} </li>
|
<li>POSISI : {{ Carbon\Carbon::parse($data['infoSuratNew']['tgl_req_surat'])->format('d-m-Y') }} </li>
|
||||||
</ul>
|
</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 (sizeof($data['DataPinjaman']))
|
||||||
|
@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%;">
|
<table class="space1" style="width:100%;">
|
||||||
<thead style="background-color: dimgrey">
|
<thead style="background-color: dimgrey">
|
||||||
<tr class="space1" >
|
<tr class="space1" >
|
||||||
@ -119,10 +239,71 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="space1">
|
@if (sizeof($data['DataLimit']))
|
||||||
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Data Yang Ditampilkan</td>
|
@if (sizeof($data['DataLimit']))
|
||||||
</tr>
|
@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 (sizeof($data['DataFasilitas']))
|
||||||
|
@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>
|
</tbody>
|
||||||
</table><br>
|
</table><br>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user