@@ -85,7 +85,7 @@ export default {
timer: 8000,
});
- document.getElementById("formstokauditbackdate").submit();
+ document.getElementById("formaging").submit();
},
Urlredirect: function() {
return window.route('cetak.aging')
diff --git a/resources/js/app.js b/resources/js/app.js
index c76cbaf..b89c723 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -126,18 +126,18 @@ Vue.use(require('vue-pusher'), {
}
});
-Vue.prototype.$api1 = 'http://api.arrahn/'
+Vue.prototype.$api1 = 'http://localhost:8000/'
Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content');
Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content');
let initial = 'KB2';
-let initialhostname = 'http://api.arrahn/';
+let initialhostname = 'http://localhost:8000/';
const store = new Vuex.Store({
state: {
$kodcaw: 'KB2',
- $hostname: 'http://api.arrahn/'
+ $hostname: 'http://localhost:8000/'
},
plugins: [createPersistedState()],
mutations: {
diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue
index bd55359..e401083 100644
--- a/resources/js/components/Cawangan.vue
+++ b/resources/js/components/Cawangan.vue
@@ -84,7 +84,7 @@
case 'JLI':
case 'ARP':
case '020303':{
- this.sethostname('http://api.arrahn')
+ this.sethostname('http://localhost:8000/')
break;
}
case '010621':
@@ -114,7 +114,7 @@
this.sethostname('http://api3.arrahn')
break;
}
- default: this.sethostname('http://api.arrahn')
+ default: this.sethostname('http://localhost:8000')
break;
}
}
diff --git a/resources/views/akaun/laporan_aging.blade.php b/resources/views/akaun/laporan_aging.blade.php
index b96aff0..7418d5c 100644
--- a/resources/views/akaun/laporan_aging.blade.php
+++ b/resources/views/akaun/laporan_aging.blade.php
@@ -1,200 +1,241 @@
-
@@ -207,22 +248,23 @@
-
-| TEMPOH | BIL GADAIAN | JUM PINJAMAN (RM) | PERATUSAN % |
-
+
+ | TEMPOH |
+ BIL GADAIAN |
+ JUM PEMBIAYAAN (RM) |
+
+ @php$jumlahcount = 0;$jumlahsum = 0; @endphp
+ @foreach($aging[0]['count'] as $index=>$ag)
+ @php
+ $jumlahcount += $ag; $jumlahsum += $aging[0]['sum'][$index];
+ @endphp
+
+ | TEMPOH {{ ($index == 12) ? '12 >' : $index+1 }}
+ BULAN |
+ {{ number_format($ag) }} |
+ {{ number_format($aging[0]['sum'][$index],2) }} |
+
+ @endforeach
+
+ | |
+ |
+ |
+ |
+
-
+
-
- | 1 BULAN | @foreach($data as $index=>$var) {{$var['a']}}@endforeach | @foreach($data as $index=>$var) {{ number_format($var['b'],2)}}@endforeach |
-
- @foreach($data as $index=>$var) @foreach($data2 as $in=>$vr){{ round(($var['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-
-
-
-
-
-| 2 BULAN | @foreach($data_2 as $index_2=>$var2) {{$var2['a']}}@endforeach | @foreach($data_2 as $index_2=>$var2) {{ number_format($var2['b'],2)}}@endforeach |
- @foreach($data_2 as $index=>$var2) @foreach($data2 as $in=>$vr){{ round(($var2['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-
-| 3 BULAN | @foreach($data_3 as $index_3=>$var3) {{$var3['a']}}@endforeach | @foreach($data_3 as $index_2=>$var2) {{ number_format($var3['b'],2)}}@endforeach |
- @foreach($data_3 as $index=>$var3) @foreach($data2 as $in=>$vr){{ round( ($var3['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-| 4 BULAN | @foreach($data_4 as $index_4=>$var4) {{$var4['a']}}@endforeach | @foreach($data_4 as $index_4=>$var4) {{ number_format($var4['b'],2)}}@endforeach |
- @foreach($data_4 as $index=>$var4) @foreach($data2 as $in=>$vr){{ round(($var4['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach |
-
-
-
-
-
-| 5 BULAN | @foreach($data_5 as $index_5=>$var5) {{$var5['a']}}@endforeach | @foreach($data_5 as $index_5=>$var5) {{ number_format($var5['b'],2)}}@endforeach |
- @foreach($data_5 as $index=>$var5) @foreach($data2 as $in=>$vr){{ round( ($var5['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-| 6 BULAN | @foreach($data_6 as $index_6=>$var6) {{$var6['a']}}@endforeach | @foreach($data_6 as $index_6=>$var6) {{ number_format($var6['b'],2)}}@endforeach |
- @foreach($data_6 as $index=>$var6) @foreach($data2 as $in=>$vr){{ round(($var6['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-| 7 BULAN | @foreach($data7 as $index7=>$var7) {{$var7['a']}}@endforeach | @foreach($data7 as $index7=>$var7) {{ number_format($var7['b'],2)}}@endforeach |
- @foreach($data7 as $index=>$var7) @foreach($data2 as $in=>$vr){{ round( ($var7['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-
-
-| 8 BULAN | @foreach($data_8 as $index_8=>$var8) {{$var8['a']}}@endforeach | @foreach($data_8 as $index_8=>$var8) {{ number_format($var8['b'],2)}}@endforeach |
- @foreach($data_8 as $index=>$var8) @foreach($data2 as $in=>$vr){{ round( ($var8['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-
-| 9 BULAN | @foreach($data_9 as $index_9=>$var9) {{$var9['a']}}@endforeach | @foreach($data_9 as $index_9=>$var9) {{ number_format($var9['b'],2)}}@endforeach |
- @foreach($data_9 as $index=>$var9) @foreach($data2 as $in=>$vr){{ round(($var9['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-
-
-| 10 BULAN | @foreach($data_10 as $index_10=>$var10) {{$var10['a']}}@endforeach | @foreach($data_10 as $index_10=>$var10) {{number_format($var10['b'],2)}}@endforeach |
- @foreach($data_10 as $index=>$var10) @foreach($data2 as $in=>$vr){{ round( ($var10['a'] /$vr['a'])*100 ,2) }}@endforeach @endforeach |
-
-
-
-
-
-
-| 11 BULAN | @foreach($data_11 as $index_11=>$var11) {{$var11['a']}}@endforeach | @foreach($data_11 as $index_11=>$var11) {{number_format($var11['b'],2)}}@endforeach |
- @foreach($data_11 as $index=>$var11) @foreach($data2 as $in=>$vr){{ round(($var11['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-| 12 BULAN | @foreach($data_12 as $index_12=>$var12) {{$var12['a']}}@endforeach | @foreach($data_12 as $index_12=>$var12) {{ number_format($var12['b'],2)}}@endforeach |
- @foreach($data_12 as $index=>$var) @foreach($data2 as $in=>$vr){{ round (($var12['a'] /$vr['a'])*100,2) }}@endforeach @endforeach |
-
-
-
-
-| 12 > BULAN | @foreach($data_13 as $index_13=>$var13) {{$var13['a']}}@endforeach | @foreach($data_13 as $index_13=>$var13) {{ number_format($var13['b'],2)}}@endforeach |
- @foreach($data_13 as $index=>$var13) @foreach($data2 as $in=>$vr){{ round(($var13['a'] /$vr['a'])*100, 2) }}@endforeach @endforeach |
-
-
-
-
-
-| | | |
- |
-
-
-
-
-
-
-
- | JUMLAH | @foreach($data2 as $index2=>$var1){{$var1['a']}}
- @endforeach | @foreach($data2 as $index2=>$var1){{ number_format($var1['b'],2)}}
- @endforeach | |
-
+ JUMLAH |
+ {{ number_format($jumlahcount) }} |
+ {{ number_format($jumlahsum,2) }} |
+ |
+
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index 874ba8d..20b8bfc 100644
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -44,7 +44,7 @@