find error 38
This commit is contained in:
@ -121,6 +121,8 @@
|
||||
$dateCore = $startDate->subDays(2);
|
||||
|
||||
|
||||
|
||||
|
||||
$ViewAccount = new ViewAccount;
|
||||
$data = [];
|
||||
$DataAccounts = [];
|
||||
@ -134,12 +136,10 @@
|
||||
$this->postInfoSurat($request ,$noSurat);
|
||||
$listAccount = $ViewAccount->getAccount($request['cus_no'],$arrAccount,$request['kode_cabang'], $dateCore)->get();
|
||||
$GetCustomer = $ViewAccount->getCustomer($request['cus_no'])->first();
|
||||
$MaturityDate = '';
|
||||
$product = '';
|
||||
$AAID= '';
|
||||
foreach ($listAccount as $key1 => $account) {
|
||||
//$Arrangement = $ViewAccount->getAAaccount($account->CUSTOMER_NO,$account->ACCOUNT_NUMBER);
|
||||
$Arrangement = $ViewAccount->getAAaccount($request['cus_no'] , $account->ACCOUNT_NUMBER)->first();
|
||||
|
||||
$months = '';
|
||||
|
||||
if($Arrangement != null && $Arrangement->TERM != null){
|
||||
@ -155,7 +155,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$DataAccounts[$key1]['ACCOUNT_NUMBER'] = $account->ACCOUNT_NUMBER;
|
||||
$DataAccounts[$key1]['OPENING_DATE'] = $account->OPENING_DATE;
|
||||
$DataAccounts[$key1]['BATCH_DATE'] = $account->BATCH_DATE;
|
||||
@ -168,13 +167,13 @@
|
||||
$DataAccounts[$key1]['MATURITY_DATE'] = $Arrangement->MATURITY_DATE ?? '' ;
|
||||
$DataAccounts[$key1]['ARRANGEMENT_ID'] = $Arrangement->ARRANGEMENT_ID ?? '';
|
||||
$DataAccounts[$key1]['FIXED_RATE'] = $Arrangement->FIXED_RATE ?? '';
|
||||
$DataAccounts[$key1]['TERM'] = $months ?? '';
|
||||
$DataAccounts[$key1]['TERM'] = $months;
|
||||
}
|
||||
|
||||
|
||||
$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();
|
||||
|
||||
$signer = Signer::where('id', $request['signer'])->where('status',1)->get();
|
||||
@ -194,17 +193,13 @@
|
||||
$data['infoSuratOld'] = $infoSuratOld;
|
||||
$data['infoSuratNew'] = $infoSuratNew;
|
||||
|
||||
$buah = array(
|
||||
'title' => "In Progress"
|
||||
);
|
||||
|
||||
//Inisialisasi DOMPDF
|
||||
$options = new Options();
|
||||
$options->set('isHtml5ParserEnabled', true);
|
||||
$options->set('isPhpEnabled', true);
|
||||
$options->set(['padding-top' => 39, 'padding-right' => 10, 'padding-bottom' => 20, 'padding-left' => 15]);
|
||||
$dompdf = new Dompdf($options);
|
||||
$html = View::make('konfirmasibank::exportPdf', ['data' => $buah])->render();
|
||||
$html = View::make('konfirmasibank::exportPdf', ['data' => $data])->render();
|
||||
// Konfigurasi DOMPDF
|
||||
|
||||
$dompdf->loadHtml($html);
|
||||
|
@ -1,91 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
/* Contoh style tambahan */
|
||||
|
||||
@page {
|
||||
margin-top: 3.5cm;
|
||||
margin-right: 1.5cm;
|
||||
margin-left: 1.5cm;
|
||||
}
|
||||
|
||||
/** Define the header rules **/
|
||||
header {
|
||||
position: fixed;
|
||||
top: 0cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
height: 6.5cm;
|
||||
|
||||
}
|
||||
|
||||
/** Define the footer rules **/
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0cm;
|
||||
left: 0cm;
|
||||
right: 0cm;
|
||||
}
|
||||
|
||||
/* body{
|
||||
margin-top: 2.5cm;
|
||||
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>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<h1>{{$data['title']}}</h>
|
||||
</div>
|
||||
<main>
|
||||
<article>
|
||||
<h2>Konfirmasi Bank</h2>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>
|
||||
</article>
|
||||
</main>
|
||||
<footer>
|
||||
<p>© 2024 My Website</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Reference in New Issue
Block a user