fixing blade export

This commit is contained in:
KhatamNugraha
2024-07-12 10:05:12 +07:00
parent b2804891dd
commit 2d760ea517
3 changed files with 366 additions and 354 deletions

View File

@ -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);
$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); $selisihHari = $tanggalMulai->diffInMonths($tanggalJatuhTempo);
$DataDepo[$keyDepo]['ACCOUNT_NUMBER'] = $depo->no_rek; $DataDepo[$key1]['ACCOUNT_NUMBER'] = $account->no_rek;
$DataDepo[$keyDepo]['BATCH_DATE'] = $depo->period; $DataDepo[$key1]['BATCH_DATE'] = $account->period;
$DataDepo[$keyDepo]['CUSTOMER_NO'] = $depo->cif; $DataDepo[$key1]['CUSTOMER_NO'] = $account->cif;
$DataDepo[$keyDepo]['SHORT_NAME'] = $depo->jenis_rekening; //$depo->SHORT_NAME; $DataDepo[$key1]['SHORT_NAME'] = $account->jenis_rekening; //$depo->SHORT_NAME;
$DataDepo[$keyDepo]['CURRENCY'] = $depo->kode_mata_uang; $DataDepo[$key1]['CURRENCY'] = $account->kode_mata_uang;
$DataDepo[$keyDepo]['PRODUCT'] = $depo->jenis_rekening; $DataDepo[$key1]['PRODUCT'] = $account->jenis_rekening;
$DataDepo[$keyDepo]['COMPANY_NAME'] = $depo->nama_cabang; $DataDepo[$key1]['COMPANY_NAME'] = $account->nama_cabang;
$DataDepo[$keyDepo]['WORKING_BALANCE'] = $depo->jumlah_nominal != null ? number_format(abs($depo->jumlah_nominal), 2, ',', '.') : 'NIHIL'; $DataDepo[$key1]['WORKING_BALANCE'] = $account->jumlah_nominal != null ? number_format(abs($account->jumlah_nominal), 2, ',', '.') : 'NIHIL';
$DataDepo[$keyDepo]['MATURITY_DATE'] = $depo->jatuh_tempo; $DataDepo[$key1]['MATURITY_DATE'] = $account->jatuh_tempo;
$DataDepo[$keyDepo]['FIXED_RATE'] = $depo->suku_bunga . ' %' ; $DataDepo[$key1]['FIXED_RATE'] = $account->suku_bunga . ' %' ;
$DataDepo[$keyDepo]['TERM'] = $selisihHari . ' BLN'; $DataDepo[$key1]['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 ;

View File

@ -1,41 +1,44 @@
<!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;
margin-left: 1.5cm; margin-left: 1.5cm;
margin-bottom: 2cm; margin-bottom: 2cm;
} }
.text-center{ .text-center {
text-align: center; text-align: center;
} }
.text-right{ .text-right {
text-align: right; text-align: right;
} }
ul.no-bullets { ul.no-bullets {
list-style-type: none; list-style-type: none;
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 {
border-collapse: collapse; border-collapse: collapse;
} }
@ -55,23 +58,23 @@
} }
#footer { #footer {
position: fixed; position: fixed;
left: 20px; left: 20px;
bottom: 0; bottom: 0;
text-align: center; text-align: center;
} }
#footer .page:after { #footer .page:after {
content: counter(page); content: counter(page);
} }
/* .header { /* .header {
position: fixed; position: fixed;
top: -60px; top: -60px;
@ -85,324 +88,329 @@
line-height: 35px; line-height: 35px;
} */ } */
/* Hide header on first page */ /* Hide header on first page */
/* 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;
} */ } */
</style>
</style>
</head> </head>
<body> <body>
<main> <main>
<ul class="no-bullets"> <ul class="no-bullets">
<li>Nomor &nbsp; : {{$data['infoSuratNew']['no_surat']}}</li> <li>Nomor &nbsp; : {{$data['infoSuratNew']['no_surat']}}</li>
<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>
<td style="width:50%">Kepada Yth</td>
</tr>
<tr>
<td style="width:50%">{{$data['infoSuratNew']['nama_tujuan']}}</td>
</tr>
<tr>
<td style="width:50%">{{$data['infoSuratNew']['alamat']}}</td>
</tr>
<tr >
<td style="width:50%">Email : {{$data['infoSuratNew']['email']}}</td>
</tr>
<tr >
<td style="width:50%">Telp : {{$data['infoSuratNew']['tlp']}}</td>
</tr>
</table>
</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'])->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>Nomor CIF &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
</ul><br>
<ul class="no-bullets">
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
<li>POSISI : {{ $data['localDate'] }} </li>
</ul>
<table style="width:100%;" class="space1 " >
<thead style="background-color: dimgrey" >
<tr> <tr>
<th class="text-center space1" style="width:5%">No</th> <td style="width:50%">Kepada Yth</td>
<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%">Jangka Waktu</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> </tr>
</thead> <tr>
<tbody> <td style="width:50%">{{$data['infoSuratNew']['nama_tujuan']}}</td>
@if (count($data['DataAccounts'])>0 ) </tr>
@php <tr>
$i=1 <td style="width:50%">{{$data['infoSuratNew']['alamat']}}</td>
</tr>
<tr>
<td style="width:50%">Email : {{$data['infoSuratNew']['email']}}</td>
</tr>
<tr>
<td style="width:50%">Telp : {{$data['infoSuratNew']['tlp']}}</td>
</tr>
</table>
</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'])->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>Nomor CIF &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : {{$data['DataCustomer']->CUSTOMER_NO}}</li>
</ul><br>
<ul class="no-bullets">
<li>SIMPANAN NASABAH YANG BERSANGKUTAN PADA BANK</li>
<li>POSISI : {{ $data['localDate'] }} </li>
</ul>
@endphp <table style="width:100%;" class="space1 ">
@foreach ($data['DataAccounts'] as $val) <thead style="background-color: dimgrey">
<tr class="space1"> <tr>
<td class="text-center space1">{{ $i++ }}</td> <th class="text-center space1" style="width:5%">No</th>
<td class="text-left space1">{{ $val['SHORT_NAME'] }}</td> <th class="text-center space1" style="width:21%">Jenis Rekening</th>
<td class=" text-center space1"></td> <th class="text-center space1" style="width:12%">Tgl Realisasi</th>
<td class=" text-center space1">{{ $val['CURRENCY'] }}</td> <th class="text-center space1" style="width:7%">Mata Uang</th>
<td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td> <th class="text-center space1" style="width:16%">Saldo</th>
<td class="text-center space1 ">{{ $val['TERM'] }}</td> <th class="text-center space1" style="width:10%">Jangka Waktu</th>
<td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td> <th class="text-center space1" style="width:8%">Suku Bunga</th>
<td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td> <th class="text-center space1" style="width:11%">Tgl Jatuh Tempo</th>
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td> <th class="text-center space1" style="width:10%">Keterangan</th>
</tr> </t>
@endforeach </thead>
<tbody>
@if (count( $data['DataDepo']) > 0) if
@php @if (count($data['DataAccounts'])>0 )
$noDepo = 0; @php
if (count( $data['DataAccounts']) > 0) { $i=1
$noDepo = count($data['DataAccounts']) + 1 ;
}else{
$noDepo = 1 ;
}
@endphp
@foreach ($data['DataDepo'] as $keyDep => $depo)
<tr class="space1">
<td class="text-center space1">{{ $noDepo++ }}</td>
<td class="space1">DEPOSITO</td>
<td class="text-center space1 "></td>
<td class="text-center space1">{{ $depo['CURRENCY'] }}</td>
<td class="text-right space1">{{$depo['WORKING_BALANCE']}}</td>
<td class="text-center space1">{{ $depo['TERM'] }}</td>
<td class="text-center space1">{{ $depo['FIXED_RATE'] }} %</td>
<td class="text-center space1">{{ $depo['MATURITY_DATE'] }}</td>
<td class="text-center space1">{{ $depo['ACCOUNT_NUMBER'] }}</td>
</tr>
@endforeach
@else @endphp
@php @foreach ($data['DataAccounts'] as $val)
$no= count($data['DataAccounts']); <tr class="space1">
@endphp <td class="text-center space1">{{ $i++ }}</td>
<tr class="space1"> <td class="text-left space1">{{ $val['SHORT_NAME'] }}</td>
<td class="text-center space1">{{ $no+1 }}</td> <td class=" text-center space1"></td>
<td class="text-left space1">DEPOSITO</td> <td class=" text-center space1">{{ $val['CURRENCY'] }}</td>
<td class=" text-center space1"></td> <td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td>
<td class=" text-center space1"></td> <td class="text-center space1 ">{{ $val['TERM'] }}</td>
<td class=" text-center space1">NIHIL</td> <td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td>
<td class="text-center space1 "></td> <td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td>
<td class="text-center space1 "></td> <td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td>
<td class="text-center space1 "></td> </tr>
<td class="text-center space1"></td> @endforeach
</tr>
@endif @if (count( $data['DataDepo']) > 0)
@php
$noDepo = 0;
if (count( $data['DataAccounts']) > 0) {
$noDepo = count($data['DataAccounts']) + 1 ;
}else{
$noDepo = 1 ;
}
@endphp
@foreach ($data['DataDepo'] as $keyDep => $depo)
<tr class="space1">
<td class="text-center space1">{{ $noDepo++ }}</td>
<td class="space1">DEPOSITO</td>
<td class="text-center space1 "></td>
<td class="text-center space1">{{ $depo['CURRENCY'] }}</td>
<td class="text-right space1">{{$depo['WORKING_BALANCE']}}</td>
<td class="text-center space1">{{ $depo['TERM'] }}</td>
<td class="text-center space1">{{ $depo['FIXED_RATE'] }} %</td>
<td class="text-center space1">{{ $depo['MATURITY_DATE'] }}</td>
<td class="text-center space1">{{ $depo['ACCOUNT_NUMBER'] }}</td>
</tr>
@endforeach
@else
@php
$no= count($data['DataAccounts']);
@endphp
<tr class="space1">
<td class="text-center space1">{{ $no+1 }}</td>
<td class="text-left space1">DEPOSITO</td>
<td class=" text-center space1"></td>
<td class=" text-center space1"></td>
<td class=" text-center space1">NIHIL</td>
<td class="text-center space1 "></td>
<td class="text-center space1 "></td>
<td class="text-center space1 "></td>
<td class="text-center space1"></td>
</tr>
@endif
{{-- @if ($data['dataAADepo'] == null) {{-- @if ($data['dataAADepo'] == null)
@php @php
$no= count($data['DataAccounts']); $no= count($data['DataAccounts']);
@endphp @endphp
<tr class="space1"> <tr class="space1">
<td class="text-center space1">{{ $no+1 }}</td> <td class="text-center space1">{{ $no+1 }}</td>
<td class="text-left space1">DEPOSITO</td> <td class="text-left space1">DEPOSITO</td>
<td class=" text-center space1"></td> <td class=" text-center space1"></td>
<td class=" text-center space1"></td> <td class=" text-center space1"></td>
<td class=" text-center space1">NIHIL</td> <td class=" text-center space1">NIHIL</td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
</tr> </tr>
@endif --}} @endif --}}
@else @else
<tr class=""> <tr class="">
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td> <td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
</tr> </tr>
@endif @endif
<!-- Add more rows here if needed --> <!-- Add more rows here if needed -->
</tbody> </tbody>
</table><br> </table><br>
<ul class="no-bullets"> <ul class="no-bullets">
<li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA NASABAH</li> <li>PINJAMAN YANG DIBERIKAN OLEH BANK KEPADA 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>
<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>
<th class="text-center space1" style="width:7%">Mata Uang</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:16%">Saldo</th>
<th class="text-center space1" style="width:10%">Jangka Waktu</th> <th class="text-center space1" style="width:10%">Jangka Waktu</th>
<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> </tr>
</thead> </thead>
<tbody style="page-break-inside: avoid;"> <tbody style="page-break-inside: avoid;">
@if (count($data['DataPinjaman'])>0 OR count($data['DataRK'])>0 OR $data['totalOutstanding'] != 'NIHIL' ) @if (count($data['DataPinjaman'])>0 OR count($data['DataRK'])>0 OR $data['totalOutstanding'] != 'NIHIL' )
@if (count($data['DataPinjaman'])>0) @if (count($data['DataPinjaman'])>0)
@php $i=1; @php $i=1;
$saldo = ''; $saldo = '';
@endphp @endphp
@foreach ($data['DataPinjaman'] as $key1 => $pinjaman) @foreach ($data['DataPinjaman'] as $key1 => $pinjaman)
<tr class="space1"> <tr class="space1">
<td class="text-center space1">{{ $i++ }}</td> <td class="text-center space1">{{ $i++ }}</td>
<td class="space1">{{ $pinjaman['PRODUCT'] }}</td> <td class="space1">{{ $pinjaman['PRODUCT'] }}</td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1">{{ $pinjaman['CURRENCY'] }}</td> <td class="text-center space1">{{ $pinjaman['CURRENCY'] }}</td>
<td class="text-right space1">{{$pinjaman['WORKING_BALANCE']}}</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['TERM'] }} BLN</td>
<td class="text-center space1">{{ $pinjaman['FIXED_RATE'] }} %</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['MATURITY_DATE'] }}</td>
<td class="text-center space1">{{ $pinjaman['ACCOUNT_NUMBER'] }}</td> <td class="text-center space1">{{ $pinjaman['ACCOUNT_NUMBER'] }}</td>
</tr> </tr>
@endforeach @endforeach
@endif @endif
@if (count($data['DataRK']) > 0) @if (count($data['DataRK']) > 0)
@php @php
$no = 0; $no = 0;
if (count( $data['DataPinjaman']) > 0) { if (count( $data['DataPinjaman']) > 0) {
$no = count($data['DataPinjaman']) + 1 ; $no = count($data['DataPinjaman']) + 1 ;
}else{ }else{
$no = 1 ; $no = 1 ;
} }
@endphp @endphp
@foreach ($data['DataRK'] as $rk => $dtRK) @foreach ($data['DataRK'] as $rk => $dtRK)
<tr class="space1"> <tr class="space1">
<td class="text-center space1">{{ $no++ }}</td> <td class="text-center space1">{{ $no++ }}</td>
<td class="space1">{{ $dtRK['SHORT_NAME'] }}</td> <td class="space1">{{ $dtRK['SHORT_NAME'] }}</td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1">{{ $dtRK['CURRENCY'] }}</td> <td class="text-center space1">{{ $dtRK['CURRENCY'] }}</td>
<td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td> <td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td>
<td class="text-center space1">{{$dtRK['TERM']}} BLN</td> <td class="text-center space1">{{$dtRK['TERM']}} BLN</td>
<td class="text-center space1">{{$dtRK['FIXED_RATE']}} %</td> <td class="text-center space1">{{$dtRK['FIXED_RATE']}} %</td>
<td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td> <td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td>
<td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td> <td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td>
</tr> </tr>
@endforeach @endforeach
@endif @endif
@if ($data['totalOutstanding'] != 'NIHIL') @if ($data['totalOutstanding'] != 'NIHIL')
@php @php
$no = 0; $no = 0;
if (count( $data['DataPinjaman']) > 0) { if (count( $data['DataPinjaman']) > 0) {
$no = count($data['DataPinjaman']) + 1 ; $no = count($data['DataPinjaman']) + 1 ;
}else if(count( $data['DataRK']) > 0){ }else if(count( $data['DataRK']) > 0){
$no = count($data['DataRK']) + 1 ; $no = count($data['DataRK']) + 1 ;
}else{ }else{
$no = 1; $no = 1;
} }
@endphp @endphp
<tr class="space1"> <tr class="space1">
<td class="text-center space1">{{ $no++ }}</td> <td class="text-center space1">{{ $no++ }}</td>
<td class="space1">ANJAK PIUTANG</td> <td class="space1">ANJAK PIUTANG</td>
<td class="text-center space1 "></td> <td class="text-center space1 "></td>
<td class="text-center space1">{{$data['loanCcy']}}</td> <td class="text-center space1">{{$data['loanCcy']}}</td>
<td class="text-right space1">{{$data['totalOutstanding']}}</td> <td class="text-right space1">{{$data['totalOutstanding']}}</td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
<td class="text-center space1"></td> <td class="text-center space1"></td>
</tr> </tr>
@endif @endif
@else @else
<tr class="space1"> <tr class="space1">
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td> <td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
</tr> </tr>
@endif @endif
</tbody> </tbody>
</table><br> </table><br>
<ul class="no-bullets" style="page-break-inside: avoid;"> <ul class="no-bullets" style="page-break-inside: avoid;">
<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>
<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>
<th class="text-center space1" style="width:7%">Mata Uang</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:16%">Saldo</th>
<th class="text-center space1" style="width:10%">Jangka Waktu</th> <th class="text-center space1" style="width:10%">Jangka Waktu</th>
<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> </tr>
</thead> </thead>
<tbody style="page-break-inside: avoid;"> <tbody style="page-break-inside: avoid;">
@if (count($data['DataFasilitas']) > 0 ) @if (count($data['DataFasilitas']) > 0 )
@php @php
$no = 0; $no = 0;
@endphp @endphp
@foreach ($data['DataFasilitas'] as $fasilitas) @foreach ($data['DataFasilitas'] as $fasilitas)
<tr class="space1"> <tr class="space1">
<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 class="text-center space1">{{ $fasilitas['mata_uang'] }}</td> </td> --}}
<td class="space1 text-right"> {{ $fasilitas['saldo']}}</td></td> <td class="text-center space1">{{ $fasilitas['mata_uang'] }}</td>
<td class="text-center space1 ">{{ $fasilitas['jangka_waktu'] }}</td> <td class="space1 text-right"> {{ $fasilitas['saldo']}}</td>
<td class="text-center space1">{{ $fasilitas['fixed_rate'] }} %</td> </td>
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas['due_date'])->format('d-m-Y') }}</td> <td class="text-center space1 ">{{ $fasilitas['jangka_waktu'] }}</td>
<td class="text-center space1">{{ $fasilitas['nomor_rekening'] }}</td> <td class="text-center space1">{{ $fasilitas['fixed_rate'] }} %</td>
</tr> <td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas['due_date'])->format('d-m-Y') }}</td>
@endforeach <td class="text-center space1">{{ $fasilitas['nomor_rekening'] }}</td>
@else </tr>
<tr class="space1"> @endforeach
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td> @else
</tr> <tr class="space1">
@endif <td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
</tbody> </tr>
</table><br> @endif
</tbody>
</table><br>
<p>Demikian data ini kami sampaikan agar dapat digunakan sebagaimana mestinya</p> <br><br><br><br> <p>Demikian data ini kami sampaikan agar dapat digunakan sebagaimana mestinya</p> <br><br><br><br>
<div style="width:300px" class> <div style="width:300px" class>
<table style="width:100%;" class=""> <table style="width:100%;" class="">
<table style="width:100%;" class=" no-border-table"> <table style="width:100%;" class=" no-border-table">
<td class="space1" style="width:20%;font-size:12px;border:none"> <td class="space1" style="width:20%;font-size:12px;border:none">
<ul class="no-bullets"> <ul class="no-bullets">
<li>{{ $data['DataSigner'][0]['deputy_director_name'] }}</li> <li>{{ $data['DataSigner'][0]['deputy_director_name'] }}</li>
<li>Deputy Director</li> <li>Deputy Director</li>
</ul> </ul>
</td> </td>
<td class="space1" style="width:30%;font-size:12px;border:none;"> <td class="space1" style="width:30%;font-size:12px;border:none;">
<ul class="no-bullets" style="margin-left: 50px"> <ul class="no-bullets" style="margin-left: 50px">
<li>{{ $data['DataSigner'][0]['executive_officer_name'] }}</li> <li>{{ $data['DataSigner'][0]['executive_officer_name'] }}</li>
<li>Executive Officer</li> <li>Executive Officer</li>
</ul> </ul>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</main> </main>
</body> </body>
</html> </html>

View File

@ -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
<tr class="space1"> @foreach ($data['DataDepo'] as $item)
<td class="text-center space1">{{ $no++ }}</td> <tr class="space1">
<td class="text-left space1">{{ $val['SHORT_NAME'] }}</td> <td class="text-center space1">{{ $no++ }}</td>
<td class=" text-center space1"></td> <td class="text-left space1">{{ $item['SHORT_NAME'] }}</td>
<td class=" text-center space1">{{ $val['CURRENCY'] }}</td> <td class=" text-center space1"></td>
<td class=" text-right space1">{{ $val['WORKING_BALANCE'] }}</td> <td class=" text-center space1">{{ $item['CURRENCY'] }}</td>
<td class="text-center space1 ">{{ $val['TERM'] }}</td> <td class=" text-right space1">{{ $item['WORKING_BALANCE'] }}</td>
<td class="text-center space1 ">{{ $val['FIXED_RATE'] }}</td> <td class="text-center space1 ">{{ $item['TERM'] }}</td>
<td class="text-center space1 ">{{ $val['MATURITY_DATE'] }}</td> <td class="text-center space1 ">{{ $item['FIXED_RATE'] }}</td>
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }} </td> <td class="text-center space1 ">{{ $item['MATURITY_DATE'] }}</td>
</tr> <td class="text-center space1">{{ $item['ACCOUNT_NUMBER'] }} </td>
</tr>
@endforeach
@else @else
@php @php
$no= count($data['DataAccounts']); $no= count($data['DataAccounts']);