diff --git a/Entities/ViewAccount.php b/Entities/ViewAccount.php
index 65218a5..2fe17c5 100644
--- a/Entities/ViewAccount.php
+++ b/Entities/ViewAccount.php
@@ -68,9 +68,9 @@ class ViewAccount extends Model
$data = [];
$data = DB::connection("db2")->table("STG_DB.VW_ACCOUNTS")->select('*')->where('CUSTOMER_NO',$cus_no)->whereIn('ACCOUNT_NUMBER',$account)->get();
return $data;
-
}
+
public function getPinjaman($cus_no){
$data = [];
$data = DB::connection("db2")->table("STG_DB.VW_AA_ARRANGEMENT")->select('CUSTOMER','STREET','ADDRESS','SHORT_NAME','CO_CODE','PRODUCT_LINE','PRODUCT','CURRENCY','COMPANY_NAME',DB::raw('MAX(CATEGORY) AS CATEGORY'),DB::raw('MAX(BATCH_DATE) AS BATCH_DATE'),DB::raw('MAX(WORKING_BALANCE) AS WORKING_BALANCE'),DB::raw('MAX(OPENING_DATE) AS OPENING_DATE'),DB::raw('MAX(MATURITY_DATE) AS MATURITY_DATE'),DB::raw('MAX(MATURITY_DATE) AS MATURITY_DATE'), DB::raw('MAX(ARRANGEMENT_ID) AS ARRANGEMENT_ID'))->where('CUSTOMER',$cus_no)->groupBy('CUSTOMER','STREET','ADDRESS','SHORT_NAME','CO_CODE','PRODUCT_LINE','PRODUCT','CURRENCY','COMPANY_NAME')->get();
diff --git a/Http/Controllers/KonfirmasiBankController.php b/Http/Controllers/KonfirmasiBankController.php
index 776ba44..f425fca 100644
--- a/Http/Controllers/KonfirmasiBankController.php
+++ b/Http/Controllers/KonfirmasiBankController.php
@@ -148,7 +148,7 @@
$data['DataLimit'] = $ListLimits;
$currentDate = Carbon::now();
- $formattedDate = $currentDate->format('Y-m-d');
+ // $formattedDate = $currentDate->format('Y-m-d');
$html = View::make('konfirmasibank::exportPdf', ['data' => $data])->render();
@@ -162,7 +162,7 @@
$pdf->render();
// Keluarkan file PDF ke browser
- $pdf->stream('"Konfirmasi_bank_"'.$ListPinjaman[0]->SHORT_NAME.'"'. $formattedDate.'".pdf"');
+ $pdf->stream('"Konfirmasi_bank_"'.$ListPinjaman[0]->SHORT_NAME.'"'. $currentDate.'".pdf"');
}
diff --git a/Resources/views/exportPdf.blade.php b/Resources/views/exportPdf.blade.php
index 63f526a..d521efe 100644
--- a/Resources/views/exportPdf.blade.php
+++ b/Resources/views/exportPdf.blade.php
@@ -1,72 +1,61 @@
-
-
-
-
+
- Membuat Laporan PDF Dengan DOMPDF Laravel
-
-
+
+
+
+Konfirmasi Bank
-
-
-
- @php
- $route = explode('.', Route::currentRouteName());
- @endphp
-
-
-
-
-
-
- Nomor :
- Tanggal :
- |
-
-
- |
-
- BANK ARTHA GRAHA INTERNATIONAL
- Kawasan Niaga Terpadu Sudirman (SCBD)
- Jl. Jendral Sudirman Kav. 52 – 53 , Jakarta Indonesia
-
- Phone :
- Faxmail :
- |
-
-
-
-
-
Kepada Yth
-
Bp. ...
+
+
+
Kepada Yth
+
{{$data['DataPinjaman'][0]['SHORT_NAME']}}
{{$data['DataPinjaman'][0]['STREET']}}, {{$data['DataPinjaman'][0]['ADDRESS']}}
-
Sesuai dengan surat saudara Nomor …. tanggal … dengan ini kami smpaikan data – data nasbah sesuai permintaan saudara sebagai berikut :
+
Sesuai dengan surat saudara Nomor 150/KB-SENTRA1/II/2023 tanggal {{ date('Y/m/d') }} dengan ini kami smpaikan data – data nasbah sesuai permintaan saudara sebagai berikut :
-
-
+
-
+
diff --git a/Resources/views/pages/exportPdf.blade.php b/Resources/views/pages/exportPdf.blade.php
index 4980e3d..92b1c22 100644
--- a/Resources/views/pages/exportPdf.blade.php
+++ b/Resources/views/pages/exportPdf.blade.php
@@ -26,26 +26,7 @@
-
-
-
-
- Nomor :
- Tanggal :
- |
-
- |
-
- BANK ARTHA GRAHA INTERNATIONAL
- Kawasan Niaga Terpadu Sudirman (SCBD)
- Jl. Jendral Sudirman Kav. 52 – 53 , Jakarta Indonesia
-
- Phone :
- Faxmail :
- |
-
-
Kepada Yth
diff --git a/Resources/views/pages/index.blade.php b/Resources/views/pages/index.blade.php
index 9b1cf50..0fded58 100644
--- a/Resources/views/pages/index.blade.php
+++ b/Resources/views/pages/index.blade.php
@@ -56,7 +56,7 @@
class="path2">
Export Report
-
+
Fasilitas