@@ -269,9 +269,9 @@
var date = new Date(bayaran['created_at']);
historybayarandatatable.row.add([
counter,
- date.toLocaleDateString(),
+ // date.toLocaleDateString(),
+ '
'+date.toLocaleDateString()+'',
"RM " + bayaran['duit_masuk'],
- '
Cetak'
]).draw();
counter = counter + 1;
});
diff --git a/resources/views/modal/historybayaran.blade.php b/resources/views/modal/historybayaran.blade.php
index 7c40282..4f6f040 100644
--- a/resources/views/modal/historybayaran.blade.php
+++ b/resources/views/modal/historybayaran.blade.php
@@ -3,7 +3,7 @@
+
+
- T
+
+ | No SAG |
+ : {{ $gadai['norujukan'] }} |
+
+
+ | Tarikh Bayar |
+ : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp |
+
+
+
+ | Tempoh Simpan |
+ : {{ $gadai['tempoh'] }} |
+
+
+
+
+
T
+
+
+
+
+
+
+
@@ -449,38 +524,40 @@ hr.new5 {
+
*Paparan terbaik resit menggunakan paparan web.
-
-
- | .................................................... |
- |
- .................................................... |
- |
- .................................................... |
- |
- .................................................... |
-
-
+{{--
+
+ | .................................................... |
+ |
+ .................................................... |
+ |
+ .................................................... |
+ |
+ .................................................... |
+
+
-| DiSemak |
- |
- Cagaran Di Keluarkan |
- |
- Cagaran Diterima |
- |
- Ar-Rahn {{ Auth::user()->name }} |
+ DiSemak |
+ |
+ Cagaran Di Keluarkan |
+ |
+ Cagaran Diterima |
+ |
+ Ar-Rahn {{ Auth::user()->name }} |
-
-
-
-
+
+
+
+
+
@@ -489,40 +566,74 @@ hr.new5 {
-
-| Salinan Pejabat |
-
-
-| RESIT BAYARAN |
+
+ | Salinan Pejabat |
+
+
+ | RESIT BAYARAN |
-
+
-
-| Marhun | : {{ $gadai['marhun'] }} | | | | No SAG | : {{ $gadai['norujukan'] }} |
- |
-
-| Nama | : {{ $customers_info['nama'] }} | | | | Tarikh Bayar | : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp |
- |
+
+ | Marhun |
+ : {{ $gadai['marhun'] }} |
+
+
+ | |
+ |
+ No SAG |
+ : {{ $gadai['norujukan'] }} |
+ |
+
+ | Nama |
+ : {{ $customers_info['nama'] }} |
+
+
+ | |
+ |
+ Tarikh Bayar |
+ : @php $time = new DateTime($penebusan['t_tebus']); $date = $time->format('d/m/Y'); echo $date; @endphp |
+ |
-
-| No K/P | : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp | | | | Tempoh Simpan | : {{ $gadai['tempoh'] }} |
- |
+
+ | No K/P |
+ : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp |
+
+
+ | |
+ |
+ Tempoh Simpan |
+ : {{ $gadai['tempoh'] }} |
+ |
-
-| Nama Wakil | : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp | | | | | |
- |
+
+ | Nama Wakil |
+ : @php if(sizeof($wakil) != 0){ echo $wakil['nama'];} else echo ''; @endphp |
+
+
+ | |
+ |
+ |
+ |
+ |
-
-| No K/P Wakil | : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp | | | | | |
-
+
+ | No K/P Wakil |
+ : @php if(sizeof($wakil) != 0) echo $wakil['nokp']; else echo ''; @endphp |
+
+ | |
+ |
+ |
+ |
+
@@ -558,26 +669,26 @@ hr.new5 {
-
- | .................................................... |
- |
+
| .................................................... |
- |
+ |
.................................................... |
- |
+ |
.................................................... |
-
-
+ |
+ .................................................... |
+
+
-| DiSemak |
- |
+ DiSemak |
+ |
Cagaran Di Keluarkan |
- |
+ |
Cagaran Diterima |
- |
+ |
Ar-Rahn {{ Auth::user()->name }} |
-
+
-
\ No newline at end of file
+
--}}
\ No newline at end of file
diff --git a/resources/views/resit/resittebusautotawarruq.blade.php b/resources/views/resit/resittebusautotawarruq.blade.php
index 03dce05..052b373 100644
--- a/resources/views/resit/resittebusautotawarruq.blade.php
+++ b/resources/views/resit/resittebusautotawarruq.blade.php
@@ -425,7 +425,7 @@ hr.new5 {
-
+{{--
@@ -562,4 +562,4 @@ hr.new5 {
-
\ No newline at end of file
+
--}}
\ No newline at end of file
diff --git a/resources/views/resit/resittebussebelum.blade.php b/resources/views/resit/resittebussebelum.blade.php
index 451287e..955f8b3 100644
--- a/resources/views/resit/resittebussebelum.blade.php
+++ b/resources/views/resit/resittebussebelum.blade.php
@@ -447,7 +447,7 @@ hr.new5 {
-
+{{--
@@ -570,4 +570,4 @@ hr.new5 {
-
+
--}}
diff --git a/resources/views/resit/resittebusseparuh.blade.php b/resources/views/resit/resittebusseparuh.blade.php
index bbfa8fb..61800b9 100644
--- a/resources/views/resit/resittebusseparuh.blade.php
+++ b/resources/views/resit/resittebusseparuh.blade.php
@@ -452,7 +452,7 @@ hr.new5 {
-
+{{--
@@ -587,4 +587,4 @@ hr.new5 {
-
\ No newline at end of file
+
--}}
\ No newline at end of file
diff --git a/resources/views/resit/resittebusseparuhbelum.blade.php b/resources/views/resit/resittebusseparuhbelum.blade.php
index 827ba3b..aba4a61 100644
--- a/resources/views/resit/resittebusseparuhbelum.blade.php
+++ b/resources/views/resit/resittebusseparuhbelum.blade.php
@@ -436,7 +436,7 @@ hr.new5 {
-
+{{--
@@ -562,4 +562,4 @@ hr.new5 {
-
\ No newline at end of file
+
--}}
\ No newline at end of file
From 79711d5078d6190f5119b2c17a375e7c6c8bd96a Mon Sep 17 00:00:00 2001
From: hafifierahman
Date: Mon, 21 Mar 2022 04:37:55 +0800
Subject: [PATCH 2/2] fix komen kak aida
---
app/Http/Controllers/HomeController.php | 16 +++-
.../views/includes/analisaportal.blade.php | 57 +-------------
.../bayaran/senaraibayaransag.blade.php | 30 +++++---
resources/views/includes/home.blade.php | 75 ++++++++++++++++++-
.../views/includes/main/navigation.blade.php | 2 +-
.../views/includes/rekod/rekodsag.blade.php | 38 +++++-----
.../views/modal/historybayaran.blade.php | 23 ++++++
resources/views/modal/marhun.blade.php | 17 ++++-
routes/web.php | 34 ++++++++-
9 files changed, 197 insertions(+), 95 deletions(-)
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index d79985f..bcba937 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -21,6 +21,20 @@ class HomeController extends Controller
*/
public function index()
{
- return view('includes.home');
+ $harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/')->json();
+
+ $hargaemasterdahulu = array();
+
+ foreach($harga_emas as $index=>$harga)
+ {
+ $hargaemassandaran = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/harga_emas/rekod/sandaran',['karat' => $harga['karat']])->json();
+
+ $percentnaik = (floatval($harga['harga']) - floatval($hargaemassandaran[1]['harga'])) / ($hargaemassandaran[1]['harga']) * 100;
+
+ array_push($hargaemasterdahulu,['karat' => $harga['karat'],'hargasemasa' => $harga['harga'], 'hargadahulu' => $hargaemassandaran[1]['harga'],'percent' => $percentnaik]);
+
+ }
+
+ return view('includes.home',compact('hargaemasterdahulu'));
}
}
diff --git a/resources/views/includes/analisaportal.blade.php b/resources/views/includes/analisaportal.blade.php
index c0671d3..bef3525 100644
--- a/resources/views/includes/analisaportal.blade.php
+++ b/resources/views/includes/analisaportal.blade.php
@@ -214,62 +214,7 @@