diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index dc1ff7f..b0c8cc3 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -48,4 +48,14 @@ class HomeController extends Controller echo $decryptedContent; }, 'file.jpg'); } + + public function downloadManual() + { + $file = "manual_aplikasi_sidata.pdf"; + $headers = [ + 'Content-Type' => 'application/pdf', + 'Content-Disposition' => 'attachment;filename='.$file + ]; + return response()->download($file , $file, $headers); + } } diff --git a/app/Http/Controllers/RealisasiBelanjaController.php b/app/Http/Controllers/RealisasiBelanjaController.php index 4314c5c..61d1a92 100644 --- a/app/Http/Controllers/RealisasiBelanjaController.php +++ b/app/Http/Controllers/RealisasiBelanjaController.php @@ -370,7 +370,7 @@ class RealisasiBelanjaController extends Controller $dataTotal = DB::select(DB::raw("SELECT COUNT(ID) as JML FROM ($sqlStr) x")); $data = DB::select(DB::raw("SELECT a.*,b.jml,NVL(c.jml_spd,0) AS jml_spd FROM (".$sqlStr.$filter.") a LEFT JOIN ( - SELECT I_IDRSK, SUM(V_REALISASI) AS jml + SELECT I_IDRSK, SUM(REALISASI_1) AS jml FROM NEWSIPKD.VW_REALISASI_BELANJA_PERBULAN WHERE C_ANGG_TAHUN = $ta GROUP BY I_IDRSK diff --git a/public/manual_aplikasi_sidata.pdf b/public/manual_aplikasi_sidata.pdf new file mode 100644 index 0000000..f2a73c7 Binary files /dev/null and b/public/manual_aplikasi_sidata.pdf differ diff --git a/resources/views/partials/bottom_menu.blade.php b/resources/views/partials/bottom_menu.blade.php index 95a1375..dc84c31 100644 --- a/resources/views/partials/bottom_menu.blade.php +++ b/resources/views/partials/bottom_menu.blade.php @@ -2,5 +2,5 @@
Version 1.0
- Copyright © 2022 Pusat Data dan Informasi BPKD Provinsi DKI Jakarta. All rights reserved. + Copyright © 2022 Pusat Data dan Informasi Keuangan BPKD Provinsi DKI Jakarta. All rights reserved. \ No newline at end of file diff --git a/resources/views/partials/top_menu.blade.php b/resources/views/partials/top_menu.blade.php index cb11cf6..3561535 100644 --- a/resources/views/partials/top_menu.blade.php +++ b/resources/views/partials/top_menu.blade.php @@ -39,8 +39,13 @@ {{ strtoupper(Auth::user()->name)." | ROLE : ".strtoupper($role) }} diff --git a/routes/web.php b/routes/web.php index 55f4baa..64d9cbf 100644 --- a/routes/web.php +++ b/routes/web.php @@ -144,4 +144,5 @@ Route::group(['middleware' => 'auth'], function () { Route::get('/{kode}/download', [LaporanFileController::class,'download']); }); Route::resource('laporan-file', LaporanFileController::class); + Route::get('manual-book', [HomeController::class, 'downloadManual']); }); \ No newline at end of file