diff --git a/app/Http/Controllers/AkaunController.php b/app/Http/Controllers/AkaunController.php index 0a0a1ed..3d39b9e 100644 --- a/app/Http/Controllers/AkaunController.php +++ b/app/Http/Controllers/AkaunController.php @@ -755,7 +755,7 @@ class AkaunController extends Controller $current = Carbon::now(); $current = new Carbon(); $tarikh_cetak = $current->toDateString(); - + $kodcaw = $request->kodcaw; $split_date = explode('-',$request->datestokauditbackdate); $bulan = $split_date[1]; $tahun = $split_date[0]; @@ -788,11 +788,11 @@ class AkaunController extends Controller $tebus_date = $namabulan . ' ' . $tahun; - $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); + $cawangan=Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$kodcaw)->json(); $cawangan_detail=$cawangan[0]; - $stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokaudit/backdate',['kodcaw' => $auth_user['cawangan'],'tahun'=>$tahun,'bulan'=>$bulan])->json(); - + $stokaudit = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/stokaudit/backdate',['kodcaw' => $kodcaw,'tahun'=>$tahun,'bulan'=>$bulan])->json(); + return view('akaun.laporan_stokauditbackdate', compact('stokaudit','cawangan_detail','tarikh_cetak','tebus_date','api_url')); } diff --git a/resources/js/WTD/SenaraiBakiLelong.vue b/resources/js/WTD/SenaraiBakiLelong.vue new file mode 100644 index 0000000..80b60c4 --- /dev/null +++ b/resources/js/WTD/SenaraiBakiLelong.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/resources/js/WTD/index.vue b/resources/js/WTD/index.vue new file mode 100644 index 0000000..580934b --- /dev/null +++ b/resources/js/WTD/index.vue @@ -0,0 +1,10 @@ + + + \ No newline at end of file diff --git a/resources/js/WTD/wtd.vue b/resources/js/WTD/wtd.vue new file mode 100644 index 0000000..af66348 --- /dev/null +++ b/resources/js/WTD/wtd.vue @@ -0,0 +1,81 @@ + + + diff --git a/resources/js/app.js b/resources/js/app.js index e9516db..f8e237a 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -26,6 +26,8 @@ import 'sweetalert2/dist/sweetalert2.min.css'; import VueHtml5Editor from 'vue-html5-editor' +import VueFlatPickr from 'vue-flatpickr-component'; +import 'flatpickr/dist/flatpickr.css'; let ops = { // global component name name: "vue-html5-editor", @@ -106,6 +108,7 @@ Vue.use(datetime) Vue.use(VueContentPlaceholders) Vue.use(VueSweetalert2); Vue.use(VueFriendlyIframe) +Vue.use(VueFlatPickr) Vue.use(require('vue-moment')); @@ -202,7 +205,7 @@ Vue.component('tahunan-component', require('./components/Analisa/Tahunan.vue').d Vue.component('aging-component', require('./components/Analisa/Aging.vue').default) - +//Component Berkaitan Vue.component('square-component', require('./components/util/Clock.vue').default) Vue.component('bilangan-component', require('./components/Chart/BilanganChart.vue').default) @@ -211,14 +214,22 @@ Vue.component('getkodcaw-component', require('./Bajet/GetKodcaw.vue').default) Vue.component('senaraibajet-component', require('./Bajet/Homebajet.vue').default) Vue.component('clock-component', require('./components/util/Clock.vue').default) +//Logout Vue.component('logout-component', require('./Logout.vue').default) + +//Notify Vue.component('notify-component', require('./components/util/Notify.vue').default) - +//Permohonan Vue.component('permohonanindex-component', require('./Permohonan/index.vue').default) - Vue.component('permohonan-component', require('./Permohonan/SenaraiMohon.vue').default) +//WTD +Vue.component('wtdindex-component', require('./WTD/index.vue').default) + + + + Vue.component('apexchart', VueApexCharts) diff --git a/resources/js/routes.js b/resources/js/routes.js index c6be183..3277cb8 100644 --- a/resources/js/routes.js +++ b/resources/js/routes.js @@ -30,6 +30,9 @@ import StatusMohon from './Permohonan/StatusMohon' import RekodMohon from './Permohonan/RekodMohon' +import WtdPage from './WTD/wtd' + + @@ -64,6 +67,8 @@ export default new VueRouter({ { name: 'permohonanstatus',path: '/permohonan/status/:mohonid', component: StatusMohon }, { path: '/permohonan/rekod', component: RekodMohon }, + { path: '/wtd', component: WtdPage }, + ], mode: 'history' }); \ No newline at end of file diff --git a/resources/views/wtd/index.blade.php b/resources/views/wtd/index.blade.php index 5ecbadc..7530aac 100644 --- a/resources/views/wtd/index.blade.php +++ b/resources/views/wtd/index.blade.php @@ -7,6 +7,8 @@
+ +