Tambah Manual Book

This commit is contained in:
Pusdatin BPKD Jkt
2022-11-09 10:10:55 +07:00
parent a96f71d5e8
commit bfd375a87d
6 changed files with 19 additions and 3 deletions
+10
View File
@@ -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);
}
}
@@ -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
Binary file not shown.
@@ -2,5 +2,5 @@
<div class="float-right d-none d-sm-block">
<b>Version</b> 1.0
</div>
<strong>Copyright &copy; 2022 <a href="#" class="navy-link">Pusat Data dan Informasi BPKD Provinsi DKI Jakarta</a>.</strong> All rights reserved.
<strong>Copyright &copy; 2022 <a href="#" class="navy-link">Pusat Data dan Informasi Keuangan BPKD Provinsi DKI Jakarta</a>.</strong> All rights reserved.
</footer>
@@ -39,6 +39,11 @@
<i class="fa fa-user mr-2"></i>{{ strtoupper(Auth::user()->name)." | ROLE : ".strtoupper($role) }}</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
@php if(strtolower($role)!="skpd"){ @endphp
<a class="dropdown-item" title="Manual Book" href="{{ URL::to("/manual-book") }}" target="_blank">
<i class="fa fa-book mr-2"></i> Manual Book
</a>
@php } @endphp
<a class="dropdown-item modalButton" title="Ganti Kata Sandi" href="{{ route("users.changepass", Auth::user()->id) }}" ><i class="fa fa-key mr-2"></i> Ganti Kata Sandi</a>
<a class="dropdown-item" href="{{ route('logout') }}"><i class="fas fa-sign-out-alt mr-2"></i> Log Out</a>
</div>
+1
View File
@@ -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']);
});