@@ -94,10 +98,13 @@ export default {
data() {
return {
keuntunganharian:0,
+ bajetkeuntungan:0,
percentkeuntungan:0,
penebusanharian:0,
+ bajetpenebusan:0,
percentpenebusan:0,
gadaianharian:0,
+ bajetgadai:0,
percentgadaian:0
};
},
@@ -114,6 +121,7 @@ export default {
}
}).then(response => {
this.gadaianharian = formatter.format(response.data[0].gadaiToday)
+ this.bajetgadaian = formatter.format(response.data[0].bajetharian)
this.percentgadaian = response.data[0].percentDiff
}).catch(error => {
console.log(error)
@@ -126,6 +134,7 @@ export default {
}
}).then(response => {
this.penebusanharian = formatter.format(response.data[0].tebusToday)
+ this.bajetpenebusan = formatter.format(response.data[0].bajetharian)
this.percentpenebusan = response.data[0].percentDiff
}).catch(error => {
console.log(error)
@@ -138,6 +147,7 @@ export default {
}
}).then(response => {
this.keuntunganharian = formatter.format(response.data[0].upahToday)
+ this.bajetkeuntungan = formatter.format(response.data[0].bajetharian)
this.percentkeuntungan = response.data[0].percentDiff
}).catch(error => {
console.log(error)
diff --git a/resources/js/routes.js b/resources/js/routes.js
index e7324ae..913a928 100644
--- a/resources/js/routes.js
+++ b/resources/js/routes.js
@@ -13,6 +13,10 @@ import Pendahuluanserahan from './Akaun/Pendahuluanserahan'
import OnlineHome from './Online/SearchSAG'
+import SenaraiBajet from './Bajet/Senaraibajet'
+import BajetKemaskini from './Bajet/KemaskiniBajet'
+
+
@@ -30,7 +34,11 @@ export default new VueRouter({
{ path: '/akaunhome/ansuran', component: Ansuran },
{ path: '/akaunhome/upah', component: Upah },
{ path: '/akaunhome/Tuntutbaki', component: Tuntutbaki },
- { path: '/akaunhome/Pendahuluanserahan', component: Pendahuluanserahan }
+ { path: '/akaunhome/Pendahuluanserahan', component: Pendahuluanserahan },
+
+ { path: '/bajet/kemaskini', component: SenaraiBajet },
+ { name: 'bajetkemaskini',path: '/bajet/kemaskini/:id', component: BajetKemaskini }
+
],
mode: 'history'
});
\ No newline at end of file
diff --git a/resources/views/bajet/home.blade.php b/resources/views/bajet/home.blade.php
index de24bb2..facca1f 100644
--- a/resources/views/bajet/home.blade.php
+++ b/resources/views/bajet/home.blade.php
@@ -36,7 +36,7 @@
- Tambah
+ Daftar