From 15c4c799455bb0f82f8e85e05facda07c165c4cf Mon Sep 17 00:00:00 2001 From: Amirah22 <94591077+Amirah22@users.noreply.github.com> Date: Mon, 24 Jan 2022 09:55:15 +0800 Subject: [PATCH] new commit export simulasi to pdf --- app/Http/Controllers/SimulasiController.php | 7 + resources/views/pdf/simrpt2.blade.php | 170 ++++++++++++++++++ .../views/simulasi/showsimulasi.blade.php | 5 +- routes/web.php | 1 + 4 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 resources/views/pdf/simrpt2.blade.php diff --git a/app/Http/Controllers/SimulasiController.php b/app/Http/Controllers/SimulasiController.php index aeba9a3f..d3e600d2 100644 --- a/app/Http/Controllers/SimulasiController.php +++ b/app/Http/Controllers/SimulasiController.php @@ -462,6 +462,13 @@ class SimulasiController extends Controller { } + + public function export(Request $request) + { + + $pdf = PDF::loadView('pdf.simrpt2'); + return $pdf->download('Taraf.pdf'); + } } \ No newline at end of file diff --git a/resources/views/pdf/simrpt2.blade.php b/resources/views/pdf/simrpt2.blade.php new file mode 100644 index 00000000..b8b266af --- /dev/null +++ b/resources/views/pdf/simrpt2.blade.php @@ -0,0 +1,170 @@ + + + +
PERMODALAN KELANTAN BERHAD |
+ |
| LAPORAN SIMULASI SEMUA CAWANGAN | +|
| Tarikh Lelong: |
| Jbg: |
| Caj Lelong: |
| Harga Emas Asas: |
| Bilangan Lelong: | +Nilai Marhun Keseluruhan: | +Pembiayaan Keseluruhan: | +Keuntungan Keseluruhan: | +Rugi Lelong Keseluruhan: | +Baki Lelong Keseluruhan: | +Caj Lelong Keseluruhan: | +
|---|
| No. | + +Cawangan | +Bil Marhun(paket) | +No Rujukan | +Berat(gm) | +Margin Pinjaman | +Harga Asas(RM) + | Nilai Marhun(RM) | +Pembiayaan(RM) | +Keuntungan(RM) | +Baki Lelong(RM) | +Rugi Lelong(RM) | +Caj Lelong(RM) | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + | + | + | + | + | + | + | |
| Jumlah Keseluruhan | ++ | + | + | + | + | + | + + | |||||
JUMLAH BERAT MENGIKUT MUTU (KESELURUHAN) |
+
+ |||||||||
|---|---|---|---|---|---|---|---|---|---|
| MUTU | +24Kgb | +24K | +23K | +22K | +21K | +20K | +18K | +14K | +9K | + +
| BERAT(gm) | ++ | + | + | + | + | + | + | + + + | |
+ \ No newline at end of file diff --git a/resources/views/simulasi/showsimulasi.blade.php b/resources/views/simulasi/showsimulasi.blade.php index 064f05f4..c8b22245 100644 --- a/resources/views/simulasi/showsimulasi.blade.php +++ b/resources/views/simulasi/showsimulasi.blade.php @@ -13,7 +13,8 @@