diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 9a671b5..7fc637c 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -63,7 +63,7 @@ class LoginController extends Controller $api_url = config('api.url'); - if($auth_user['roles'] == 'admin'){ + if($auth_user['roles'] == 'admin' && $auth_user['operasi'] == 'operasi'){ $user = User::find($auth_user['id']); $user->cawangan = $request->cawangan; $user->save(); diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 68cd46f..8ac1128 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -33,18 +33,8 @@ class HomeController extends Controller $harini = Carbon::now(); $harini = new Carbon; - $arrayPembiayaan = array(['name' => 'Pembiayaan (RM)','data' => []]); - $arrayPenyelesaian = array(['name' => 'Penebusan (RM)','data' => []]); - $arrayKeuntungan = array(['name' => 'Actual','data' => []]); - - //Hari Ini - $ringkasanharian = Http::get(config('api.url'). '/api/gadai/laporan/ringkasanharian/'. $auth_user['cawangan'],['tarikh' => $harini->toDateString()])->json(); - $ringkasanharian = $ringkasanharian[0]; - - $keseluruhanupahharian = $ringkasanharian['lelongupahsimpan'] + $ringkasanharian['tebus'][0]['upahsimpan'] + $ringkasanharian['advansur'][0]['upahsimpan']; - - return view('home',compact('ringkasanharian','keseluruhanupahharian')); + return view('home'); } diff --git a/app/Http/Controllers/PelangganController.php b/app/Http/Controllers/PelangganController.php index e5833ce..c033284 100644 --- a/app/Http/Controllers/PelangganController.php +++ b/app/Http/Controllers/PelangganController.php @@ -31,7 +31,7 @@ class PelangganController extends Controller $cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); $cawangan_detail=$cawangan[0]; - $customer_info = Http::get(config('api.url') . '/api/customers/'. $id)->json(); + $customer_info = Http::get(config('api.url') . '/admin/Customers/'. $id)->json(); return view('pelanggan.detailspelanggan',compact('api_url','cawangan_info','auth_user','customer_info')); } diff --git a/public/js/app.js b/public/js/app.js index 017fa93..f7f6b88 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -17450,6 +17450,159 @@ var formatter = new Intl.NumberFormat('en-US', { /***/ }), +/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js&": +/*!*********************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js& ***! + \*********************************************************************************************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +var formatter = new Intl.NumberFormat('en-US', { + minimumFractionDigits: 2 +}); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + props: { + kodcaw: String + }, + data: function data() { + return { + keuntunganharian: 0, + percentkeuntungan: 0, + penebusanharian: 0, + percentpenebusan: 0, + gadaianharian: 0, + percentgadaian: 0 + }; + }, + created: function created() { + this.getDataPembiayaan(); + this.getDataPenebusan(); + this.getDataKeuntungan(); + }, + methods: { + getDataPembiayaan: function getDataPembiayaan() { + var _this = this; + + this.axios.get('http://localhost:8000/admin/pembiayaanToday', { + params: { + kodcaw: this.$props.kodcaw + } + }).then(function (response) { + _this.gadaianharian = formatter.format(response.data[0].gadaiToday); + _this.percentgadaian = response.data[0].percentDiff.toFixed(2); + })["catch"](function (error) { + console.log(error); + }); + }, + getDataPenebusan: function getDataPenebusan() { + var _this2 = this; + + this.axios.get('http://localhost:8000/admin/penebusanToday', { + params: { + kodcaw: this.$props.kodcaw + } + }).then(function (response) { + _this2.penebusanharian = formatter.format(response.data[0].tebusToday); + _this2.percentpenebusan = response.data[0].percentDiff.toFixed(2); + })["catch"](function (error) { + console.log(error); + }); + }, + getDataKeuntungan: function getDataKeuntungan() { + var _this3 = this; + + this.axios.get('http://localhost:8000/admin/keuntunganToday', { + params: { + kodcaw: this.$props.kodcaw + } + }).then(function (response) { + _this3.keuntunganharian = formatter.format(response.data[0].upahToday); + _this3.percentkeuntungan = response.data[0].percentDiff.toFixed(2); + })["catch"](function (error) { + console.log(error); + }); + } + }, + mounted: function mounted() { + var _this4 = this; + + var channel = this.$pusher.subscribe('gadai-notify'); + channel.bind('trigger-gadai', function (_ref) { + var response = _ref.response; + + // console.log(`${response}`); + _this4.getDataPembiayaan(); + }); + var channel = this.$pusher.subscribe('tebus-notify'); + channel.bind('trigger-tebus', function (_ref2) { + var response = _ref2.response; + + // console.log(`${response}`); + _this4.getDataPenebusan(); + }); + var channel = this.$pusher.subscribe('keuntungan-notify'); + channel.bind('trigger-keuntungan', function (_ref3) { + var response = _ref3.response; + + // console.log(`${response}`); + _this4.getDataKeuntungan(); + }); + } +}); + +/***/ }), + /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js& ***! @@ -18719,78 +18872,6 @@ __webpack_require__.r(__webpack_exports__); // // // -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// @@ -18817,46 +18898,33 @@ var formatter = new Intl.NumberFormat('en-US', { index: 0, leftToRight: true, alirantunai: [], + paginate: {}, + showtunai: [], perPage: 5, totalPage: 0, currentPage: 1, lastPage: 5, - activePage: 1 + activePage: 1, + kodcaw: 'KB2', + kodlaluan: '' }; }, - // created: function() { - // console.log(this.items); - // console.log(this.arraytunai); - // }, - computed: { - active: function active() { - var tunaidibahagi = this.$props.arraytunai[this.$data.index]; - var jumsplit = this.activePage * this.perPage; - var mulaPage = jumsplit - this.perPage; - this.currentPage = mulaPage + 1; - this.lastPage = jumsplit; - var pecahantunai = tunaidibahagi.slice(mulaPage, jumsplit); - return { - pecahantunai: pecahantunai, - mulaPage: mulaPage, - jumsplit: jumsplit - }; - }, - rows: function rows() { - this.totalPage = this.$props.arraytunai[this.$data.index].length; - var totaldibahagi = parseInt(this.totalPage / this.perPage); - return totaldibahagi; - } + created: function created() { + this.kodlaluan = this.$props.items[0].kodlaluan; + this.getTunai(this.currentPage); }, methods: { + active: function active() {}, setActive: function setActive(index) { this.activePage = index + 1; }, - setItem: function setItem(index) { + setItem: function setItem(index, kod) { // Update LTR before changing $data.index this.$data.leftToRight = index > this.$data.index; this.$data.index = index; this.activePage = 1; + this.kodlaluan = kod; + this.getTunai(0); }, action: function action(tarikhteller, kodcawteller, tel) { var _this = this; @@ -18872,6 +18940,7 @@ var formatter = new Intl.NumberFormat('en-US', { _this.$toast("Nilai Tunai sama dengan nilat tunai"); } else { _this.alirantunai = response.data; + console.log(tarikhteller); _this.$refs.modal.showModal = true; _this.$refs.modal.serahan = formatter.format(_this.alirantunai.serahan); _this.$refs.modal.bakiawal = formatter.format(_this.alirantunai.bakiawal); @@ -18879,9 +18948,27 @@ var formatter = new Intl.NumberFormat('en-US', { _this.$refs.modal.pendahuluan = formatter.format(_this.alirantunai.pendahuluan); _this.$refs.modal.penebusan = formatter.format(_this.alirantunai.penebusan); _this.$refs.modal.gadaian = formatter.format(_this.alirantunai.gadaian); + _this.$refs.modal.kodlaluan = tel; + _this.$refs.modal.kodcaw = kodcawteller; + _this.$refs.modal.tarikh = tarikhteller; + _this.$refs.modal.pageNumber = _this.currentPage; } }); }, + getTunai: function getTunai(pageNumber) { + var _this2 = this; + + this.axios.get('http://localhost:8000/admin/getTunaiPaginate/' + this.kodcaw, { + params: { + page: pageNumber, + kodlaluan: this.kodlaluan + } + }).then(function (response) { + _this2.showtunai = response.data; + _this2.paginate = response.data; + _this2.currentPage = pageNumber; + }); + }, formatterfunction: function formatterfunction(value) { return formatter.format(value); } @@ -18912,6 +18999,7 @@ __webpack_require__.r(__webpack_exports__); // // // +// /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ props: { status: String, @@ -19036,16 +19124,19 @@ __webpack_require__.r(__webpack_exports__); range: [] }; }, + // setup(props,context){ + // console.log(props.data) + // }, computed: { to: function to() { - if (this.data.current_page < this.data.total_pages) { - return this.data.current_page > 1 ? (this.data.current_page - 1) * this.data.count + 1 : 1; + if (this.data.current_page < this.data.last_page) { + return this.data.current_page > 1 ? (this.data.current_page - 1) * this.data.per_page + 1 : 1; } else { - return this.data.total - this.data.count + 1; + return this.data.from; } }, from: function from() { - if (this.data.current_page < this.data.total_pages) return this.data.count * this.data.current_page;else return this.total; + if (this.data.current_page < this.data.last_page) return this.data.per_page * this.data.current_page;else return this.data.total; }, total: function total() { return this.data.total; @@ -19064,14 +19155,14 @@ __webpack_require__.r(__webpack_exports__); organisePageLinks: function organisePageLinks() { this.range = []; - for (var i = 1; i <= this.data.total_pages; i++) { + for (var i = 1; i <= this.data.last_page; i++) { if (i == 1 || // first page - i == this.data.total_pages || // last page + i == this.data.last_page || // last page i == this.data.current_page || // current page i == this.data.current_page - 1 || // page before current i == this.data.current_page + 1 || // page after current i <= 3 && this.data.current_page < 3 || // "filler" links at start - i >= this.data.total_pages - 3 && this.data.current_page > this.data.total_pages - 3 // "filler" links at end + i >= this.data.last_page - 3 && this.data.current_page > this.data.last_page - 3 // "filler" links at end ) { var index = this.range.length; @@ -19091,7 +19182,7 @@ __webpack_require__.r(__webpack_exports__); if (this.data.current_page > 1) this.getPage(this.data.current_page - 1); }, getNextPage: function getNextPage() { - if (this.data.current_page < this.data.total_pages) this.getPage(this.data.current_page + 1); + if (this.data.current_page < this.data.last_page) this.getPage(this.data.current_page + 1); } } }); @@ -19228,22 +19319,82 @@ __webpack_require__.r(__webpack_exports__); // // // +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "modal", data: function data() { return { showModal: false, + tarikh: Date, + kodcaw: '', + kodlaluan: '', bakiawal: 0, bakiakhir: 0, pendahuluan: 0, serahan: 0, penebusan: 0, - gadaian: 0 + gadaian: 0, + pageNumber: 1 }; }, + created: function created() { + console.log(this.kodcaw); + }, methods: { toggleModal: function toggleModal() { this.showModal = !this.showModal; + }, + kemaskinifunc: function kemaskinifunc() { + var _this = this; + + // console.log(this.kodcaw + this.kodlaluan + this.tarikh) + axios.put('/api/check/kemaskinialirantunai', { + kodcaw: this.kodcaw, + teller: this.kodlaluan, + tarikh: this.tarikh, + gadaian: this.gadaian.replace(/[^0-9.-]+/g, ""), + penebusan: this.penebusan.replace(/[^0-9.-]+/g, ""), + bakiakhir: this.bakiakhir.replace(/[^0-9.-]+/g, "") + }).then(function (response) { + if (response.data == 'berjaya') { + _this.showModal = false; + + _this.$toast.success("Kemaskini Sudah Berjaya!"); // vm.$forceUpdate(); + + + _this.$emit('clickEvent_', _this.pageNumber); // setTimeout("window.location.reload()", 3000); + + } else { + _this.showModal = false; + + _this.$toast.error("Kemaskini tidak berjaya"); + } + }); } } }); @@ -19533,6 +19684,26 @@ __webpack_require__.r(__webpack_exports__); // // // +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "modal", data: function data() { @@ -19599,7 +19770,48 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); -/* harmony import */ var vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuelidate/lib/validators */ "./node_modules/vuelidate/lib/validators/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"); +/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuelidate/lib/validators */ "./node_modules/vuelidate/lib/validators/index.js"); + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// // // // @@ -19707,6 +19919,16 @@ __webpack_require__.r(__webpack_exports__); }, data: function data() { return { + nameasal: this.customer.nama, + icnoasal: this.customer.kpbaru ? this.customer.kpbaru : this.customer.kplama, + notel1asal: this.customer.telefon, + notel2asal: this.customer.telefon2, + nopelasal: this.customer.nopelanggan, + alamatasal: this.customer.alamat1, + notaasal: this.customer.nota, + poskodasal: this.customer.poskod, + selectbankasal: this.customer.kodbank ? this.customer.kodbank : '', + noakaunbankasal: this.customer.noakaun, name: this.customer.nama, icno: this.customer.kpbaru ? this.customer.kpbaru : this.customer.kplama, notel1: this.customer.telefon, @@ -19717,17 +19939,23 @@ __webpack_require__.r(__webpack_exports__); poskod: this.customer.poskod, koddaerah: '', kodnegeri: '', - submitStatus: '' + selectbank: this.customer.kodbank ? this.customer.kodbank : '', + noakaunbank: this.customer.noakaun, + jenisbank: [], + submitStatus: '', + responsepostdata: 0 }; }, - setup: function setup(props, context) {// console.log(props.customer) - }, + setup: function setup(props, context) {}, created: function created() { var _this = this; this.axios.get('http://localhost:8000/api/poskod/' + this.poskod).then(function (response) { _this.koddaerahCall(response.data.kodnegeri, response.data.koddaerah); }); + this.axios.get('http://localhost:8000/api/bank/').then(function (response) { + _this.jenisbank = response.data; + }); }, methods: { koddaerahCall: function koddaerahCall(negeri, daerah) { @@ -19740,16 +19968,41 @@ __webpack_require__.r(__webpack_exports__); _this2.koddaerah = response.data.namadaerah; }); }, - triggerPoskod: function triggerPoskod(value) { + bankaccount: function bankaccount() { var _this3 = this; - this.axios.get('http://localhost:8000/api/poskod/' + value).then(function (response) { - _this3.koddaerahCall(response.data.kodnegeri, response.data.koddaerah); + this.axios.get('http://localhost:8000/api/bank/').then(function (response) { + _this3.jenisbank = response.data; + return response.data; }); }, - submit: function submit() { + triggerPoskod: function triggerPoskod(value) { var _this4 = this; + this.axios.get('http://localhost:8000/api/poskod/' + value).then(function (response) { + _this4.koddaerahCall(response.data.kodnegeri, response.data.koddaerah); + }); + }, + checkAsaldanTukar: function checkAsaldanTukar() { + var sama = 0; + if (this.nameasal == this.name) sama++; + if (this.icnoasal == this.icno) sama++; + if (this.notel1asal == this.notel1) sama++; + if (this.notel2asal == this.notel2) sama++; + if (this.nopelasal == this.nopel) sama++; + if (this.alamatasal == this.alamat) sama++; + if (this.notaasal == this.nota) sama++; + if (this.poskodasal == this.poskod) sama++; + if (this.selectbankasal == this.selectbank) sama++; + if (this.noakaunbankasal == this.noakaunbank) sama++; + + if (sama == 10) { + return false; + } else { + return true; + } + }, + submit: function submit() { console.log('submit!'); this.$v.$touch(); @@ -19758,61 +20011,101 @@ __webpack_require__.r(__webpack_exports__); } else { // do your submit logic here this.submitStatus = 'PENDING'; - setTimeout(function () { - _this4.submitStatus = 'OK'; + var kesamaan = this.checkAsaldanTukar(); // console.log(kesamaan) - _this4.$toast.success('Berjaya dikemaskini!'); - }, 500); + if (kesamaan == false) { + this.$toast.info('Tiada penukaran dibuat'); + this.submitStatus = 'OK'; + } else { + var result = this.PostData(); + var pro1 = Promise.resolve(result); + var self = this; + pro1.then(function (response) { + if (response.data == 1) { + setTimeout(function () { + self.submitStatus = 'OK'; + self.$toast.success('Berjaya dikemaskini!'); + }, 500); + } else { + self.$toast.error('Error occured'); + } + }, function (e) { + console.error(e); // TypeError: Throwing + }); + } } }, PostData: function PostData() { - this.axios.post('http://localhost:8000/api/customers/information/update/admin', { - icno: icno, - ic_asal: ic_asal, - telefon1: telefon1, - telefon2: telefon2, - kodbank: kodbank, - noakaun: noakaun, - nota: nota, - nama: nama, - alamat: alamat, - poskod: poskod - }); + var _this5 = this; + + return _asyncToGenerator( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() { + var response; + return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return _this5.axios.put('http://localhost:8000/api/customers/information/update/admin', { + icno: _this5.icno, + ic_asal: _this5.icnoasal, + telefon1: _this5.notel1, + telefon2: _this5.notel2, + kodbank: _this5.selectbank, + noakaun: _this5.noakaunbank, + nota: _this5.nota, + nama: _this5.name, + alamat: _this5.alamat, + poskod: _this5.poskod + }); + + case 2: + response = _context.sent; + return _context.abrupt("return", response); + + case 4: + case "end": + return _context.stop(); + } + } + }, _callee); + }))(); } }, validations: { name: { - required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.required, - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required, + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, icno: { - required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.required, - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required, + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, notel1: { - required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.required, - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required, + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, notel2: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, nopel: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required }, alamat: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required, + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, nota: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, poskod: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required, + minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.minLength)(4) }, koddaerah: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required }, kodnegeri: { - minLength: (0,vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_0__.minLength)(4) + required: vuelidate_lib_validators__WEBPACK_IMPORTED_MODULE_1__.required } } }); @@ -19911,6 +20204,7 @@ vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('searchpelanggan-component vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('laporanakaun-component', (__webpack_require__(/*! ./Akaun/Laporan.vue */ "./resources/js/Akaun/Laporan.vue")["default"])); vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('online-component', (__webpack_require__(/*! ./Online/Online.vue */ "./resources/js/Online/Online.vue")["default"])); vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('details-pelanggan', (__webpack_require__(/*! ./pages/Detailspelanggan.vue */ "./resources/js/pages/Detailspelanggan.vue")["default"])); +vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('harian-component', (__webpack_require__(/*! ./components/Analisa/Harian.vue */ "./resources/js/components/Analisa/Harian.vue")["default"])); vue__WEBPACK_IMPORTED_MODULE_9__["default"].component('apexchart', (vue_apexcharts__WEBPACK_IMPORTED_MODULE_0___default())); // Vue.component('Navbar', require('./components/Navbar.vue').default); /** @@ -68219,6 +68513,45 @@ component.options.__file = "resources/js/Online/SearchSAG.vue" /***/ }), +/***/ "./resources/js/components/Analisa/Harian.vue": +/*!****************************************************!*\ + !*** ./resources/js/components/Analisa/Harian.vue ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Harian.vue?vue&type=template&id=37e0d198& */ "./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198&"); +/* harmony import */ var _Harian_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Harian.vue?vue&type=script&lang=js& */ "./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js&"); +/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); + + + + + +/* normalize component */ +; +var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( + _Harian_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], + _Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__.render, + _Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, + false, + null, + null, + null + +) + +/* hot reload */ +if (false) { var api; } +component.options.__file = "resources/js/components/Analisa/Harian.vue" +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); + +/***/ }), + /***/ "./resources/js/components/Breadcrumb.vue": /*!************************************************!*\ !*** ./resources/js/components/Breadcrumb.vue ***! @@ -68994,6 +69327,22 @@ __webpack_require__.r(__webpack_exports__); /***/ }), +/***/ "./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js&": +/*!*****************************************************************************!*\ + !*** ./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js& ***! + \*****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Harian_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Harian.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=script&lang=js&"); + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Harian_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); + +/***/ }), + /***/ "./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js&": /*!*************************************************************************!*\ !*** ./resources/js/components/Breadcrumb.vue?vue&type=script&lang=js& ***! @@ -69466,6 +69815,23 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SearchSAG_vue_vue_type_template_id_686ea35a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchSAG.vue?vue&type=template&id=686ea35a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Online/SearchSAG.vue?vue&type=template&id=686ea35a&"); +/***/ }), + +/***/ "./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198&": +/*!***********************************************************************************!*\ + !*** ./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198& ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__.render), +/* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) +/* harmony export */ }); +/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Harian_vue_vue_type_template_id_37e0d198___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Harian.vue?vue&type=template&id=37e0d198& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198&"); + + /***/ }), /***/ "./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&": @@ -72051,6 +72417,212 @@ render._withStripped = true +/***/ }), + +/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198&": +/*!**************************************************************************************************************************************************************************************************************************!*\ + !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Analisa/Harian.vue?vue&type=template&id=37e0d198& ***! + \**************************************************************************************************************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "render": () => (/* binding */ render), +/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) +/* harmony export */ }); +var render = function () { + var _vm = this + var _h = _vm.$createElement + var _c = _vm._self._c || _h + return _c( + "div", + { + staticClass: + "mb-4 w-full grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4", + }, + [ + _c( + "div", + { staticClass: "bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 " }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "flex-shrink-0" }, [ + _c( + "span", + { + staticClass: + "text-2xl sm:text-3xl leading-none font-bold text-gray-900", + }, + [_vm._v("RM " + _vm._s(_vm.gadaianharian))] + ), + _vm._v(" "), + _c("h3", { staticClass: "text-base font-normal text-gray-500" }, [ + _vm._v("Pembiayaan Hari Ini"), + ]), + ]), + _vm._v(" "), + _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-green-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentgadaian) + + "%\n " + ), + _c( + "svg", + { + staticClass: "w-5 h-5", + attrs: { + fill: "currentColor", + viewBox: "0 0 20 20", + xmlns: "http://www.w3.org/2000/svg", + }, + }, + [ + _c("path", { + attrs: { + "fill-rule": "evenodd", + d: "M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z", + "clip-rule": "evenodd", + }, + }), + ] + ), + ] + ), + ]), + ] + ), + _vm._v(" "), + _c( + "div", + { staticClass: "bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 " }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "flex-shrink-0" }, [ + _c( + "span", + { + staticClass: + "text-2xl sm:text-3xl leading-none font-bold text-gray-900", + }, + [_vm._v("RM " + _vm._s(_vm.penebusanharian))] + ), + _vm._v(" "), + _c("h3", { staticClass: "text-base font-normal text-gray-500" }, [ + _vm._v("Penebusan Hari Ini"), + ]), + ]), + _vm._v(" "), + _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-green-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentpenebusan) + + "%\n " + ), + _c( + "svg", + { + staticClass: "w-5 h-5", + attrs: { + fill: "currentColor", + viewBox: "0 0 20 20", + xmlns: "http://www.w3.org/2000/svg", + }, + }, + [ + _c("path", { + attrs: { + "fill-rule": "evenodd", + d: "M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z", + "clip-rule": "evenodd", + }, + }), + ] + ), + ] + ), + ]), + ] + ), + _vm._v(" "), + _c( + "div", + { staticClass: "bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 " }, + [ + _c("div", { staticClass: "flex items-center" }, [ + _c("div", { staticClass: "flex-shrink-0" }, [ + _c( + "span", + { + staticClass: + "text-2xl sm:text-3xl leading-none font-bold text-gray-900", + }, + [_vm._v("RM " + _vm._s(_vm.keuntunganharian))] + ), + _vm._v(" "), + _c("h3", { staticClass: "text-base font-normal text-gray-500" }, [ + _vm._v("Keuntungan Hari Ini"), + ]), + ]), + _vm._v(" "), + _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-red-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentkeuntungan) + + "%\n " + ), + _c( + "svg", + { + staticClass: "w-5 h-5", + attrs: { + fill: "currentColor", + viewBox: "0 0 20 20", + xmlns: "http://www.w3.org/2000/svg", + }, + }, + [ + _c("path", { + attrs: { + "fill-rule": "evenodd", + d: "M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z", + "clip-rule": "evenodd", + }, + }), + ] + ), + ] + ), + ]), + ] + ), + ] + ) +} +var staticRenderFns = [] +render._withStripped = true + + + /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Breadcrumb.vue?vue&type=template&id=c259b9a4&": @@ -73098,7 +73670,7 @@ var render = function () { role: "menuitem", tabindex: "-1", id: "menu-item-0", - href: _vm.Urlredirect({ cust: cust.kpbaru }), + href: _vm.Urlredirect({ cust: cust.id }), }, on: { click: function ($event) { @@ -73472,7 +74044,7 @@ var render = function () { "div", { staticClass: "container mx-auto px-5 my-10" }, [ - _c("modal", { ref: "modal" }), + _c("modal", { ref: "modal", on: { clickEvent_: _vm.getTunai } }), _vm._v(" "), _c("nav", [ _c( @@ -73491,7 +74063,7 @@ var render = function () { domProps: { textContent: _vm._s(item.kodlaluan) }, on: { click: function ($event) { - return _vm.setItem(index) + return _vm.setItem(index, item.kodlaluan) }, }, }), @@ -73624,7 +74196,7 @@ var render = function () { _vm._v(" "), _c( "tbody", - _vm._l(_vm.active.pecahantunai, function (tunai, i) { + _vm._l(_vm.showtunai.data, function (tunai, i) { return _c("tr", { key: i }, [ _c( "td", @@ -73638,9 +74210,7 @@ var render = function () { _c("p", { staticClass: "text-gray-900 whitespace-no-wrap", domProps: { - textContent: _vm._s( - i + 1 + _vm.active.mulaPage - ), + textContent: _vm._s(_vm.showtunai.from + i), }, }), ]), @@ -73894,208 +74464,12 @@ var render = function () { ] ), _vm._v(" "), - _c( - "div", - { - staticClass: - "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between", - }, - [ - _c("div", [ - _c( - "p", - { staticClass: "text-sm text-gray-700" }, - [ - _vm._v( - "\n Showing\n " + - _vm._s(" ") + - "\n " - ), - _c("span", { staticClass: "font-medium" }, [ - _vm._v(_vm._s(this.currentPage)), - ]), - _vm._v( - "\n " + - _vm._s(" ") + - "\n to\n " + - _vm._s(" ") + - "\n " - ), - this.totalPage <= this.perPage - ? [ - _c("span", { staticClass: "font-medium" }, [ - _vm._v(_vm._s(this.totalPage)), - ]), - ] - : [ - _c("span", { staticClass: "font-medium" }, [ - _vm._v(_vm._s(this.lastPage)), - ]), - ], - _vm._v( - "\n " + - _vm._s(" ") + - "\n of\n " + - _vm._s(" ") + - "\n " - ), - _c("span", { staticClass: "font-medium" }, [ - _vm._v(_vm._s(this.totalPage)), - ]), - _vm._v( - "\n " + - _vm._s(" ") + - "\n results\n " - ), - ], - 2 - ), - ]), - _vm._v(" "), - _c("div", [ - _c( - "nav", - { - staticClass: - "relative z-0 inline-flex rounded-md shadow-sm -space-x-px", - attrs: { "aria-label": "Pagination" }, - }, - [ - _c( - "a", - { - staticClass: - "relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50", - attrs: { href: "#" }, - }, - [ - _c("span", { staticClass: "sr-only" }, [ - _vm._v("Previous"), - ]), - _vm._v(" "), - _c("ChevronLeftIcon", { - staticClass: "h-5 w-5", - attrs: { "aria-hidden": "true" }, - }), - ], - 1 - ), - _vm._v(" "), - _vm._l(_vm.rows, function (row, i) { - return [ - i + 1 == _vm.activePage - ? _c( - "a", - { - key: i, - staticClass: - "z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium", - attrs: { - href: "#", - "aria-current": "page", - }, - }, - [ - _vm._v( - "\n " + - _vm._s(_vm.activePage) + - "\n " - ), - ] - ) - : _vm._e(), - _vm._v(" "), - i + 1 > _vm.activePage && - i + 1 < _vm.activePage + 3 - ? _c( - "a", - { - key: "A" + i, - staticClass: - "bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium", - attrs: { href: "#" }, - on: { - click: function ($event) { - return _vm.setActive(i) - }, - }, - }, - [ - _vm._v( - "\n " + - _vm._s(i + 1) + - "\n " - ), - ] - ) - : _vm._e(), - _vm._v(" "), - i + 1 == _vm.activePage + 3 - ? _c( - "span", - { - key: "B" + i, - staticClass: - "relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700", - }, - [ - _vm._v( - "\n ...\n " - ), - ] - ) - : i + 1 > _vm.rows - 3 - ? _c( - "a", - { - key: "C" + i, - staticClass: - "bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium", - attrs: { href: "#" }, - on: { - click: function ($event) { - return _vm.setActive(i) - }, - }, - }, - [ - _vm._v( - "\n " + - _vm._s(i + 1) + - "\n " - ), - ] - ) - : _vm._e(), - ] - }), - _vm._v(" "), - _c( - "a", - { - staticClass: - "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50", - attrs: { href: "#" }, - }, - [ - _c("span", { staticClass: "sr-only" }, [ - _vm._v("Next"), - ]), - _vm._v(" "), - _c("ChevronRightIcon", { - staticClass: "h-5 w-5", - attrs: { "aria-hidden": "true" }, - }), - ], - 1 - ), - ], - 2 - ), - ]), - ] - ), - ] + _c("pagination", { + attrs: { data: _vm.paginate }, + on: { clickEvent_: _vm.getTunai }, + }), + ], + 1 ), ] ), @@ -74158,6 +74532,10 @@ var render = function () { this.roles == "akaun" ? _c("i", { staticClass: "fas fa-1x fa-calculator" }) : _vm._e(), + _vm._v(" "), + this.roles == "operasi" + ? _c("i", { staticClass: "fas fa-1x fa-user-cog" }) + : _vm._e(), ] ), ]) @@ -74193,58 +74571,12 @@ var render = function () { "bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6", }, [ - _vm.data.total > 0 - ? _c( - "div", - { staticClass: "flex-1 flex justify-between sm:hidden" }, - [ - _c( - "button", - { - staticClass: - "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md bg-white", - class: - _vm.data.current_page == 1 - ? "text-gray-400 cursor-not-allowed" - : "text-gray-700 hover:bg-gray-50", - on: { - click: function ($event) { - $event.preventDefault() - return _vm.getPreviousPage.apply(null, arguments) - }, - }, - }, - [_vm._v("\n Previous\n ")] - ), - _vm._v(" "), - _c( - "button", - { - staticClass: - "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md bg-white", - class: - _vm.data.current_page >= _vm.data.total_pages - ? "text-gray-400 cursor-not-allowed" - : "text-gray-700 hover:bg-gray-50", - on: { - click: function ($event) { - $event.preventDefault() - return _vm.getNextPage.apply(null, arguments) - }, - }, - }, - [_vm._v("\n Next\n ")] - ), - ] - ) - : _vm._e(), - _vm._v(" "), _vm.data.total > 0 ? _c( "div", { staticClass: - "hidden sm:flex-1 sm:flex sm:items-center sm:justify-between", + "hidden sm:flex-1 sm:flex flex sm:items-center sm:justify-between ", }, [ _c("div", [ @@ -74394,7 +74726,7 @@ var render = function () { "relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50", class: { "text-gray-300 cursor-not-allowed": - _vm.data.current_page >= _vm.data.total_pages, + _vm.data.current_page >= _vm.data.last_page, }, on: { click: function ($event) { @@ -74414,8 +74746,7 @@ var render = function () { staticClass: "h-5 w-5", class: { "text-gray-400": - _vm.data.current_page >= - _vm.data.total_pages, + _vm.data.current_page >= _vm.data.last_page, }, attrs: { xmlns: "http://www.w3.org/2000/svg", @@ -74470,268 +74801,321 @@ var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h - return _c("div", [ - _vm.showModal - ? _c( - "div", - { - staticClass: - "overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none justify-center items-center flex", - }, - [ - _c( - "div", - { staticClass: "relative w-screen my-6 mx-auto max-w-6xl" }, - [ - _c( - "div", - { - staticClass: - "border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none", - }, - [ - _c( - "div", - { - staticClass: - "flex items-start bg-gray-200 justify-between p-5 border-b border-solid border-blueGray-200 rounded-t", - }, - [ - _c("h3", { staticClass: "text-3xl font-semibold" }, [ - _vm._v( - "\n Pemeriksaan Aliran Tunai\n " - ), - ]), - _vm._v(" "), - _c( - "button", - { - staticClass: - "p-1 ml-auto border-0 text-black opacity-5 float-right text-3xl leading-none font-semibold outline-none focus:outline-none", - on: { - click: function ($event) { - return _vm.toggleModal() + return _c( + "div", + [ + _vm.showModal + ? _c( + "div", + { + staticClass: + " overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none justify-center items-center flex", + }, + [ + _c( + "div", + { staticClass: "relative w-screen my-6 mx-auto max-w-6xl" }, + [ + _c( + "div", + { + staticClass: + "border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none", + }, + [ + _c( + "div", + { + staticClass: + "flex items-start bg-gray-200 justify-between p-5 border-b border-solid border-blueGray-200 rounded-t", + }, + [ + _c("h3", { staticClass: "text-3xl font-semibold" }, [ + _vm._v( + "\n Pemeriksaan Aliran Tunai\n " + ), + ]), + _vm._v(" "), + _c( + "button", + { + staticClass: + "p-1 ml-auto border-0 text-black opacity-5 float-right text-3xl leading-none font-semibold outline-none focus:outline-none", + on: { + click: function ($event) { + return _vm.toggleModal() + }, }, }, - }, + [ + _c( + "span", + { + staticClass: + " text-black opacity-5 h-6 w-6 text-2xl block outline-none focus:outline-none", + }, + [_vm._v("\n ×\n ")] + ), + ] + ), + ] + ), + _vm._v(" "), + _c("div", { staticClass: "relative p-6 flex-auto" }, [ + _vm._m(0), + _vm._v(" "), + _c( + "div", + { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ _c( - "span", + "div", { staticClass: - " text-black opacity-5 h-6 w-6 text-2xl block outline-none focus:outline-none", + "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, - [_vm._v("\n ×\n ")] + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(1), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.bakiawal))] + ), + ] + ), + ]), + ] + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", + }, + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(2), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.bakiakhir))] + ), + ] + ), + ]), + ] ), ] ), - ] - ), - _vm._v(" "), - _c("div", { staticClass: "relative p-6 flex-auto" }, [ - _vm._m(0), - _vm._v(" "), - _c("div", { staticClass: "flex flex-no-wrap" }, [ + _vm._v(" "), _c( "div", - { - staticClass: - "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, + { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(1), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.bakiawal))] - ), - ]), - ]), + _c( + "div", + { + staticClass: + "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", + }, + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(3), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.pendahuluan))] + ), + ] + ), + ]), + ] + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", + }, + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(4), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.serahan))] + ), + ] + ), + ]), + ] + ), ] ), _vm._v(" "), _c( "div", - { - staticClass: - "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, + { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(2), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.bakiakhir))] - ), - ]), - ]), + _c( + "div", + { + staticClass: + "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", + }, + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(5), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.penebusan))] + ), + ] + ), + ]), + ] + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", + }, + [ + _c("div", { staticClass: "flex flex-row" }, [ + _vm._m(6), + _vm._v(" "), + _c( + "div", + { staticClass: "my-auto mx-auto" }, + [ + _c( + "p", + { + staticClass: + "font-bold uppercase text-black text-2xl", + }, + [_vm._v(_vm._s(this.gadaian))] + ), + ] + ), + ]), + ] + ), ] ), ]), _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap mt-3" }, [ - _c( - "div", - { - staticClass: - "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, - [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(3), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.pendahuluan))] - ), - ]), - ]), - ] - ), - _vm._v(" "), - _c( - "div", - { - staticClass: - "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, - [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(4), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.serahan))] - ), - ]), - ]), - ] - ), - ]), - _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap mt-3" }, [ - _c( - "div", - { - staticClass: - "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, - [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(5), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.penebusan))] - ), - ]), - ]), - ] - ), - _vm._v(" "), - _c( - "div", - { - staticClass: - "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2", - }, - [ - _c("div", { staticClass: "flex flex-row" }, [ - _vm._m(6), - _vm._v(" "), - _c("div", { staticClass: "my-auto mx-auto" }, [ - _c( - "p", - { - staticClass: - "font-bold uppercase text-black text-2xl", - }, - [_vm._v(_vm._s(this.gadaian))] - ), - ]), - ]), - ] - ), - ]), - ]), - _vm._v(" "), - _c( - "div", - { - staticClass: - "flex items-center justify-end p-6 border-t border-solid border-blueGray-200 rounded-b", - }, - [ - _c( - "button", - { - staticClass: - "bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 border border-gray-700 rounded mr-1", - attrs: { type: "button" }, - on: { - click: function ($event) { - return _vm.toggleModal() + _c( + "div", + { + staticClass: + "flex items-center justify-end p-6 border-t border-solid border-blueGray-200 rounded-b", + }, + [ + _c( + "button", + { + staticClass: + "bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 border border-gray-700 rounded mr-1", + attrs: { type: "button" }, + on: { + click: function ($event) { + return _vm.toggleModal() + }, }, }, - }, - [_vm._v("\n Batal\n ")] - ), - _vm._v(" "), - _c( - "button", - { - staticClass: - "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 border border-blue-700 rounded", - attrs: { type: "button" }, - on: { - click: function ($event) { - return _vm.toggleModal() + [_vm._v("\n Batal\n ")] + ), + _vm._v(" "), + _c( + "button", + { + staticClass: + "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 border border-blue-700 rounded", + attrs: { type: "button" }, + on: { + click: function ($event) { + return _vm.kemaskinifunc() + }, }, }, - }, - [_vm._v("\n Kemaskini\n ")] - ), - ] - ), - ] - ), - ] - ), - ] - ) - : _vm._e(), - _vm._v(" "), - _vm.showModal - ? _c("div", { staticClass: "opacity-25 fixed inset-0 z-40 bg-black" }) - : _vm._e(), - ]) + [_vm._v("\n Kemaskini\n ")] + ), + ] + ), + ] + ), + ] + ), + ] + ) + : _vm._e(), + _vm._v(" "), + _c( + "transition", + { + attrs: { + "enter-active-class": + "transition-all transform duration-200 ease-out", + }, + }, + [ + _vm.showModal + ? _c("div", { + staticClass: "opacity-25 fixed inset-0 z-40 bg-black", + }) + : _vm._e(), + ] + ), + ], + 1 + ) } var staticRenderFns = [ function () { @@ -74739,18 +75123,88 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "h3", - { - staticClass: - "font-bold mb-3 text-center text-2xl border-4 border-red-500 mx-auto w-2/4 py-2 rounded-lg", - }, + "fieldset", + { staticClass: "border-4 border-solid border-gray-600 p-3 mb-2" }, [ - _c("b", { staticClass: "text-red-500" }, [_vm._v("Formula ")]), + _c("legend", { staticClass: "text-xl" }, [_vm._v("Legends Tunai")]), _vm._v(" "), - _c("span", { staticClass: "mx-2" }, [ - _c("i", { staticClass: "fas fa-angle-double-right" }), + _c("div", { staticClass: "flex flex-wrap" }, [ + _c("div", { staticClass: "w-1/4" }, [ + _c("p", [ + _c("b", [_vm._v("AW")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Baki Awal"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("PE")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Pendahuluan"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("TS")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Penebusan"), + ]), + ]), + _vm._v(" "), + _c("div", { staticClass: "w-1/4" }, [ + _c("p", [ + _c("b", [_vm._v("AK")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Baki Akhir"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("SE")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Serahan"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("GA")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Gadaian"), + ]), + ]), + _vm._v(" "), + _c("div", { staticClass: "w-2/4 my-auto" }, [ + _c( + "h3", + { + staticClass: + "font-bold mb-3 text-center text-xl border-2 border-red-500 py-2 rounded-lg", + }, + [ + _c("b", { staticClass: "text-red-500" }, [_vm._v("Formula ")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" AW + PE + TS - GA - SE = AK"), + ] + ), + ]), ]), - _vm._v(" AW + PE + TS - GA - SE = AK"), ] ) }, @@ -75085,12 +75539,12 @@ var render = function () { _c("div", { staticClass: "relative p-6 flex-auto" }, [ _vm._m(0), _vm._v(" "), - _c("div", { staticClass: "flex flex-no-wrap" }, [ + _c("div", { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ _c( "div", { staticClass: - "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-blue-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75114,7 +75568,7 @@ var render = function () { "div", { staticClass: - "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75135,12 +75589,12 @@ var render = function () { ), ]), _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap mt-3" }, [ + _c("div", { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ _c( "div", { staticClass: - "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75164,7 +75618,7 @@ var render = function () { "div", { staticClass: - "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75185,12 +75639,12 @@ var render = function () { ), ]), _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap mt-3" }, [ + _c("div", { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ _c( "div", { staticClass: - "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-green-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75214,7 +75668,7 @@ var render = function () { "div", { staticClass: - "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2", + "bg-red-300 text-white h-26 flex-auto rounded-2xl ml-2 w-1/3", }, [ _c("div", { staticClass: "flex flex-row" }, [ @@ -75235,7 +75689,7 @@ var render = function () { ), ]), _vm._v(" "), - _c("div", { staticClass: "flex flex-wrap mt-3" }, [ + _c("div", { staticClass: "flex flex-wrap -mx-3 mb-3" }, [ _c( "div", { @@ -75319,18 +75773,97 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( - "h3", - { - staticClass: - "font-bold mb-3 text-center text-2xl border-4 border-red-500 mx-auto w-2/4 py-2 rounded-lg", - }, + "fieldset", + { staticClass: "border-4 border-solid border-gray-600 p-3 mb-2" }, [ - _c("b", { staticClass: "text-red-500" }, [_vm._v("Formula ")]), + _c("legend", { staticClass: "text-xl" }, [_vm._v("Legends Tunai")]), _vm._v(" "), - _c("span", { staticClass: "mx-2" }, [ - _c("i", { staticClass: "fas fa-angle-double-right" }), + _c("div", { staticClass: "flex flex-wrap" }, [ + _c("div", { staticClass: "w-1/4" }, [ + _c("p", [ + _c("b", [_vm._v("BWL")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Baki Awal"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("PHQ")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Pendahuluan HQ"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("STL")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Serahan Teller"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("BAK")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Baki Akhir"), + ]), + ]), + _vm._v(" "), + _c("div", { staticClass: "w-1/4" }, [ + _c("p", [ + _c("b", [_vm._v("PTL")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Pendahuluan Teller"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("SHQ")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Serahan HQ"), + ]), + _vm._v(" "), + _c("p", [ + _c("b", [_vm._v("PJR")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" Panjar"), + ]), + ]), + _vm._v(" "), + _c("div", { staticClass: "w-2/4 my-auto" }, [ + _c( + "h3", + { + staticClass: + "font-bold mb-3 text-center text-xl border-2 border-red-500 py-2 rounded-lg", + }, + [ + _c("b", { staticClass: "text-red-500" }, [_vm._v("Formula ")]), + _vm._v(" "), + _c("span", { staticClass: "mx-2" }, [ + _c("i", { staticClass: "fas fa-angle-double-right" }), + ]), + _vm._v(" AW + ST + PE - PT - SE - PJ = AK"), + ] + ), + ]), ]), - _vm._v(" AW + ST + PE - PT - SE - PJ = AK"), ] ) }, @@ -75339,7 +75872,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-blue-500 px-3 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("AW")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("BWL")]), ]) }, function () { @@ -75347,7 +75880,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-red-500 px-3 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PT")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PTL")]), ]) }, function () { @@ -75355,7 +75888,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-green-500 px-4 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("ST")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("STL")]), ]) }, function () { @@ -75363,7 +75896,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-red-500 px-4 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("SE")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("SHQ")]), ]) }, function () { @@ -75371,7 +75904,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-green-500 px-4 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PE")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PHQ")]), ]) }, function () { @@ -75379,7 +75912,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-red-500 px-4 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PJ")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("PJR")]), ]) }, function () { @@ -75387,7 +75920,7 @@ var staticRenderFns = [ var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bg-green-500 px-4 py-6 rounded-l-2xl" }, [ - _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("AK")]), + _c("h2", { staticClass: "font-bold text-lg" }, [_vm._v("BAK")]), ]) }, ] @@ -75506,7 +76039,7 @@ var render = function () { staticClass: "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { - "border border-red-500 focus:border-red-500": _vm.$v.name.$error, + "border border-red-500 focus:border-red-500": _vm.$v.icno.$error, }, attrs: { type: "text" }, domProps: { value: _vm.$v.icno.$model }, @@ -75565,7 +76098,8 @@ var render = function () { staticClass: "appearance-none block w-full bg-gray-200 border border-gray-200 text-gray-700 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { - "border border-red-500 focus:border-red-500": _vm.$v.name.$error, + "border border-red-500 focus:border-red-500": + _vm.$v.notel1.$error, }, attrs: { type: "text", placeholder: "Jane" }, domProps: { value: _vm.$v.notel1.$model }, @@ -75612,7 +76146,8 @@ var render = function () { staticClass: "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { - "border border-red-500 focus:border-red-500": _vm.$v.name.$error, + "border border-red-500 focus:border-red-500": + _vm.$v.notel2.$error, }, attrs: { type: "text" }, domProps: { value: _vm.$v.notel2.$model }, @@ -75628,6 +76163,16 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.notel2.minLength + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v( + "Name must have at least " + + _vm._s(_vm.$v.name.$params.minLength.min) + + " letters." + ), + ]) + : _vm._e(), ]), _vm._v(" "), _c("div", { staticClass: "w-full md:w-1/3 px-3" }, [ @@ -75653,7 +76198,7 @@ var render = function () { staticClass: "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { - "border border-red-500 focus:border-red-500": _vm.$v.name.$error, + "border border-red-500 focus:border-red-500": _vm.$v.nopel.$error, }, attrs: { type: "text" }, domProps: { value: _vm.$v.nopel.$model }, @@ -75669,6 +76214,12 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.nopel.required + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v("Field is required"), + ]) + : _vm._e(), ]), ]), _vm._v(" "), @@ -75696,7 +76247,8 @@ var render = function () { staticClass: "h-32 appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { - "border border-red-500 focus:border-red-500": _vm.$v.name.$error, + "border border-red-500 focus:border-red-500": + _vm.$v.alamat.$error, }, attrs: { type: "password" }, domProps: { value: _vm.$v.alamat.$model }, @@ -75712,6 +76264,22 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.alamat.required + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v("Field is required"), + ]) + : _vm._e(), + _vm._v(" "), + !_vm.$v.alamat.minLength + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v( + "Name must have at least " + + _vm._s(_vm.$v.name.$params.minLength.min) + + " letters." + ), + ]) + : _vm._e(), ]), _vm._v(" "), _c("div", { staticClass: "w-full md:w-1/3 px-3" }, [ @@ -75741,7 +76309,7 @@ var render = function () { "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500", class: { "border border-red-500 focus:border-red-500": - _vm.$v.name.$error, + _vm.$v.poskod.$error, }, attrs: { type: "text", placeholder: "90210" }, domProps: { value: _vm.$v.poskod.$model }, @@ -75764,6 +76332,22 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.poskod.required + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v("Field is required"), + ]) + : _vm._e(), + _vm._v(" "), + !_vm.$v.poskod.minLength + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v( + "Name must have at least " + + _vm._s(_vm.$v.name.$params.minLength.min) + + " letters." + ), + ]) + : _vm._e(), ]), _vm._v(" "), _c( @@ -75790,7 +76374,7 @@ var render = function () { "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:border-gray-500", class: { "border border-red-500 focus:border-red-500": - _vm.$v.name.$error, + _vm.$v.koddaerah.$error, }, attrs: { readonly: "", @@ -75814,6 +76398,12 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.koddaerah.required + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v("Field is required"), + ]) + : _vm._e(), ]), ]), _vm._v(" "), @@ -75839,6 +76429,10 @@ var render = function () { ], staticClass: "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:border-gray-500", + class: { + "border border-red-500 focus:border-red-500": + _vm.$v.kodnegeri.$error, + }, attrs: { readonly: "", type: "text", @@ -75861,6 +76455,12 @@ var render = function () { }, }, }), + _vm._v(" "), + !_vm.$v.kodnegeri.required + ? _c("div", { staticClass: "text-red-500 text-xs italic" }, [ + _vm._v("Field is required"), + ]) + : _vm._e(), ]), ]), ]), @@ -75904,6 +76504,117 @@ var render = function () { ]), ]), _vm._v(" "), + _c("div", { staticClass: "flex flex-wrap -mx-3 mb-6" }, [ + _c("div", { staticClass: "w-full md:w-1/3 px-3 mb-6 md:mb-0" }, [ + _c( + "label", + { + staticClass: + "block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2", + attrs: { for: "grid-state" }, + }, + [_vm._v("\n Bank\n ")] + ), + _vm._v(" "), + _c("div", { staticClass: "relative" }, [ + _c( + "select", + { + directives: [ + { + name: "model", + rawName: "v-model", + value: _vm.selectbank, + expression: "selectbank", + }, + ], + staticClass: + "block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500", + on: { + change: function ($event) { + var $$selectedVal = Array.prototype.filter + .call($event.target.options, function (o) { + return o.selected + }) + .map(function (o) { + var val = "_value" in o ? o._value : o.value + return val + }) + _vm.selectbank = $event.target.multiple + ? $$selectedVal + : $$selectedVal[0] + }, + }, + }, + [ + _c( + "option", + { attrs: { disabled: "" }, domProps: { value: "" } }, + [_vm._v("Pilih Jenis Bank")] + ), + _vm._v(" "), + _vm._l(_vm.jenisbank, function (bank, i) { + return _c( + "option", + { key: i, domProps: { value: bank.abbreviation } }, + [_vm._v(_vm._s(bank.name))] + ) + }), + ], + 2 + ), + _vm._v(" "), + _c( + "div", + { + staticClass: + "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700", + }, + [ + _c( + "svg", + { + staticClass: "fill-current h-4 w-4", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 20 20", + }, + }, + [ + _c("path", { + attrs: { + d: "M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z", + }, + }), + ] + ), + ] + ), + ]), + ]), + _vm._v(" "), + _c("div", { staticClass: "md:w-1/3 pl-2" }, [ + _c( + "label", + { + staticClass: + "block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2", + }, + [_vm._v("\n No Akaun\n ")] + ), + _vm._v(" "), + _c("input", { + staticClass: + "appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight", + class: { + "focus:outline-none focus:border-gray-500 focus:bg-white focus:border-gray-500": + _vm.selectbank !== "", + }, + attrs: { readonly: _vm.selectbank == "", type: "text" }, + }), + ]), + ]), + _vm._v(" "), _c("div", { staticClass: "flex items-center justify-between mt-4" }, [ _c("a", { staticClass: @@ -98518,7 +99229,7 @@ if (typeof window !== 'undefined' && window.Vue) { /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"_args":[["axios@0.21.4","C:\\\\laragon\\\\www\\\\adminpkb"]],"_development":true,"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["#DEV:/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"C:\\\\laragon\\\\www\\\\adminpkb","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}'); +module.exports = JSON.parse('{"_from":"axios@^0.21","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21","name":"axios","escapedName":"axios","rawSpec":"^0.21","saveSpec":null,"fetchSpec":"^0.21"},"_requiredBy":["#DEV:/","#USER"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21","_where":"C:\\\\laragon\\\\www\\\\adminpkb","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}'); /***/ }) diff --git a/resources/js/app.js b/resources/js/app.js index a0ab5ec..e614ebb 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -78,6 +78,8 @@ Vue.component('online-component', require('./Online/Online.vue').default) Vue.component('details-pelanggan', require('./pages/Detailspelanggan.vue').default) +Vue.component('harian-component', require('./components/Analisa/Harian.vue').default) + diff --git a/resources/js/components/Analisa/Harian.vue b/resources/js/components/Analisa/Harian.vue new file mode 100644 index 0000000..37bb36b --- /dev/null +++ b/resources/js/components/Analisa/Harian.vue @@ -0,0 +1,137 @@ + + + \ No newline at end of file diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue index 58679aa..4e4fa92 100644 --- a/resources/js/components/Cawangan.vue +++ b/resources/js/components/Cawangan.vue @@ -6,6 +6,7 @@ + diff --git a/resources/js/components/Searchpelanggan.vue b/resources/js/components/Searchpelanggan.vue index 3c52d0e..10d5762 100644 --- a/resources/js/components/Searchpelanggan.vue +++ b/resources/js/components/Searchpelanggan.vue @@ -11,7 +11,7 @@ diff --git a/resources/js/components/Tunai copy.vue b/resources/js/components/Tunai copy.vue new file mode 100644 index 0000000..4523911 --- /dev/null +++ b/resources/js/components/Tunai copy.vue @@ -0,0 +1,354 @@ + + + diff --git a/resources/js/components/Tunai.vue b/resources/js/components/Tunai.vue index 4523911..9a16372 100644 --- a/resources/js/components/Tunai.vue +++ b/resources/js/components/Tunai.vue @@ -1,6 +1,7 @@ @@ -123,18 +149,55 @@ export default { data() { return { showModal: false, + tarikh: Date, + kodcaw: '', + kodlaluan:'', bakiawal: 0, bakiakhir: 0, pendahuluan: 0, serahan: 0, penebusan: 0, - gadaian: 0 + gadaian: 0, + pageNumber: 1 } }, + created(){ + console.log(this.kodcaw) + }, methods: { toggleModal: function(){ this.showModal = !this.showModal; + }, + kemaskinifunc: function(){ + // console.log(this.kodcaw + this.kodlaluan + this.tarikh) + axios.put('/api/check/kemaskinialirantunai', + { + kodcaw: this.kodcaw, + teller: this.kodlaluan, + tarikh: this.tarikh, + gadaian: this.gadaian.replace(/[^0-9.-]+/g,""), + penebusan: this.penebusan.replace(/[^0-9.-]+/g,""), + bakiakhir: this.bakiakhir.replace(/[^0-9.-]+/g,"") + + }).then(response => { + + if(response.data == 'berjaya') + { + this.showModal = false; + this.$toast.success("Kemaskini Sudah Berjaya!") + // vm.$forceUpdate(); + + this.$emit('clickEvent_', this.pageNumber) + + // setTimeout("window.location.reload()", 3000); + }else{ + + this.showModal = false; + this.$toast.error("Kemaskini tidak berjaya") + } + }); + } - } + }, } \ No newline at end of file diff --git a/resources/js/components/util/PetiBesiModal.vue b/resources/js/components/util/PetiBesiModal.vue index 9194d89..db219ee 100644 --- a/resources/js/components/util/PetiBesiModal.vue +++ b/resources/js/components/util/PetiBesiModal.vue @@ -22,14 +22,34 @@

--> -

Formula AW + ST + PE - PT - SE - PJ = AK

+ +
+ Legends Tunai +
+
+

BWL Baki Awal

+

PHQ Pendahuluan HQ

+

STL Serahan Teller

+

BAK Baki Akhir

+
+
+

PTL Pendahuluan Teller

+

SHQ Serahan HQ

+

PJR Panjar

+
+
+

Formula AW + ST + PE - PT - SE - PJ = AK

+
+
-
-
+
+ +
+
-

AW

+

BWL

{{ this.bakiawal }}

@@ -37,10 +57,10 @@
-
+
-

PT

+

PTL

{{ this.pendteller }}

@@ -49,12 +69,12 @@
-
-
+
+
-

ST

+

STL

@@ -63,10 +83,10 @@
-
+
-

SE

+

SHQ

{{ this.serahan }}

@@ -75,11 +95,11 @@
-
-
+
+
-

PE

+

PHQ

{{ this.pendahuluan }}

@@ -87,10 +107,10 @@
-
+
-

PJ

+

PJR

{{ this.panjar }}

@@ -99,11 +119,11 @@
-
+
-

AK

+

BAK

{{ this.bakiakhir }}

diff --git a/resources/js/pages/Detailspelanggan.vue b/resources/js/pages/Detailspelanggan.vue index ed9ee5d..47c4b56 100644 --- a/resources/js/pages/Detailspelanggan.vue +++ b/resources/js/pages/Detailspelanggan.vue @@ -15,7 +15,7 @@ - +
Field is required
Name must have at least {{$v.name.$params.minLength.min}} letters.
@@ -25,20 +25,23 @@ - +

Please fill out this field.

- + + +
Name must have at least {{$v.name.$params.minLength.min}} letters.
- + +
Field is required
@@ -46,7 +49,9 @@ - + +
Field is required
+
Name must have at least {{$v.name.$params.minLength.min}} letters.
@@ -55,20 +60,24 @@ Poskod
- + +
Field is required
+
Name must have at least {{$v.name.$params.minLength.min}} letters.
- + +
Field is required
- + +
Field is required
@@ -79,6 +88,30 @@
+
+
+ +
+ +
+ +
+
+
+ +
+ + +
+ +
@@ -107,6 +140,16 @@ export default { }, data() { return { + nameasal: this.customer.nama, + icnoasal: (this.customer.kpbaru) ? this.customer.kpbaru : this.customer.kplama, + notel1asal: this.customer.telefon, + notel2asal: this.customer.telefon2, + nopelasal: this.customer.nopelanggan, + alamatasal: this.customer.alamat1, + notaasal: this.customer.nota, + poskodasal: this.customer.poskod, + selectbankasal: (this.customer.kodbank) ? this.customer.kodbank : '', + noakaunbankasal: this.customer.noakaun, name: this.customer.nama, icno: (this.customer.kpbaru) ? this.customer.kpbaru : this.customer.kplama, notel1: this.customer.telefon, @@ -117,16 +160,25 @@ export default { poskod: this.customer.poskod, koddaerah: '', kodnegeri: '', - submitStatus: '' + selectbank: (this.customer.kodbank) ? this.customer.kodbank : '', + noakaunbank: this.customer.noakaun, + jenisbank:[], + submitStatus: '', + responsepostdata: 0 } }, setup: (props, context) => { - // console.log(props.customer) + + }, created() { this.axios.get('http://localhost:8000/api/poskod/' + this.poskod).then(response => { this.koddaerahCall(response.data.kodnegeri,response.data.koddaerah) }); + + this.axios.get('http://localhost:8000/api/bank/').then(response => { + this.jenisbank = response.data + }); }, methods: { koddaerahCall: function(negeri,daerah) { @@ -139,12 +191,59 @@ export default { }); }, + bankaccount(){ + this.axios.get('http://localhost:8000/api/bank/').then(response => { + this.jenisbank = response.data + return response.data + }); + }, triggerPoskod: function(value){ this.axios.get('http://localhost:8000/api/poskod/' + value).then(response => { this.koddaerahCall(response.data.kodnegeri,response.data.koddaerah) }); }, + checkAsaldanTukar(){ + + let sama = 0; + + if(this.nameasal == this.name) + sama++; + + if(this.icnoasal == this.icno) + sama++; + + if(this.notel1asal == this.notel1) + sama++; + + if(this.notel2asal == this.notel2) + sama++; + + if(this.nopelasal == this.nopel) + sama++; + + if(this.alamatasal == this.alamat) + sama++; + + if(this.notaasal == this.nota) + sama++; + + if(this.poskodasal == this.poskod) + sama++; + + if(this.selectbankasal == this.selectbank) + sama++; + + if(this.noakaunbankasal == this.noakaunbank) + sama++; + + if(sama == 10) + { + return false; + }else{ + return true; + } + }, submit() { console.log('submit!') this.$v.$touch() @@ -153,26 +252,50 @@ export default { } else { // do your submit logic here this.submitStatus = 'PENDING' - setTimeout(() => { + let kesamaan = this.checkAsaldanTukar() + // console.log(kesamaan) + if(kesamaan == false) + { + this.$toast.info('Tiada penukaran dibuat') this.submitStatus = 'OK' - this.$toast.success('Berjaya dikemaskini!') - }, 500) + }else{ + let result = this.PostData() + let pro1 = Promise.resolve(result) + let self = this + + pro1.then(function(response) { + if(response.data == 1) + { + setTimeout(() => { + self.submitStatus = 'OK' + self.$toast.success('Berjaya dikemaskini!') + }, 500) + }else{ + self.$toast.error('Error occured') + } + }, function(e) { + console.error(e); // TypeError: Throwing + }); + } } }, - PostData(){ - this.axios.post('http://localhost:8000/api/customers/information/update/admin', + async PostData(){ + + let response = await this.axios.put('http://localhost:8000/api/customers/information/update/admin', { - icno: icno, - ic_asal: ic_asal, - telefon1: telefon1, - telefon2: telefon2, - kodbank: kodbank, - noakaun: noakaun, - nota: nota, - nama: nama, - alamat: alamat, - poskod: poskod + icno: this.icno, + ic_asal: this.icnoasal, + telefon1: this.notel1, + telefon2: this.notel2, + kodbank: this.selectbank, + noakaun: this.noakaunbank, + nota: this.nota, + nama: this.name, + alamat: this.alamat, + poskod: this.poskod }); + + return response } }, validations: { @@ -192,22 +315,24 @@ export default { minLength: minLength(4) }, nopel: { - minLength: minLength(4) + required }, alamat: { + required, minLength: minLength(4) }, nota: { minLength: minLength(4) }, poskod: { + required, minLength: minLength(4) }, koddaerah: { - minLength: minLength(4) + required }, kodnegeri: { - minLength: minLength(4) + required } } diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 796f812..2a47fb7 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,85 +1,21 @@ @extends('layouts.app') @section('content') -
- - {{--
-
-
-
{{ __('Login') }}
- -
-
- @csrf - -
- - -
- - - @error('email') - - {{ $message }} - - @enderror -
-
- -
- - -
- - - @error('password') - - {{ $message }} - - @enderror -
-
- -
-
-
- - - -
-
-
- -
-
- - - @if (Route::has('password.request')) - - {{ __('Forgot Your Password?') }} - - @endif -
-
-
-
-
-
-
--}} +
-
+
-
- {{--

Facebook

--}} + {{--
+

Facebook

Pajak Gadai Islam.

-
+
--}} +
+
+ + @csrf @if (Session::has('error')) @@ -94,7 +30,7 @@

{{ Session::get('error') }}

- @endif + @endif
@@ -123,7 +59,7 @@ Forgot Pasword?

- Pajak Gadai Koperasi Permodalan Kelantan Berhad + Permodalan Kelantan Berhad

diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index ea9e544..7aedc00 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -9,50 +9,7 @@ -
-
-
-
- RM {{ ($ringkasanharian['gadai'][0]['jumlahpinjaman']) ? number_format($ringkasanharian['gadai'][0]['jumlahpinjaman'],2) : "0.00" }} -

Pembiayaan Hari Ini

-
- {{--
- 14.6% - - - -
--}} -
-
-
-
-
- RM {{ ($ringkasanharian['tebus'][0]['jumlahpinjaman']) ? number_format($ringkasanharian['tebus'][0]['jumlahpinjaman'],2) : "0.00" }} -

Penebusan Hari Ini

-
- {{--
- 32.9% - - - -
--}} -
-
-
-
-
- RM {{ number_format($keseluruhanupahharian,2) }} -

Keuntungan Hari Ini

-
- {{--
- -2.7% - - - -
--}} -
-
-
+
@@ -74,7 +31,7 @@
{{-- $45,385 --}} -

Penyelesaian Bulanan

+

Penebusan Bulanan

{{--
12.5% diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index b16e5b9..e0aaa57 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -202,13 +202,14 @@ Contact --}}
+ @auth + @endauth
@yield('content') diff --git a/routes/api.php b/routes/api.php index d9fd743..9355098 100644 --- a/routes/api.php +++ b/routes/api.php @@ -21,7 +21,7 @@ Route::middleware('auth:sanctum')->get('/user', function (Request $request) { Route::group(['prefix' => 'check'], function () { Route::get('/periksaalirantunai', 'App\Http\Controllers\AliranTunaiController@periksaAliranTunai'); Route::get('/periksapetibesi', 'App\Http\Controllers\PetiBesiController@periksaPetiBesi'); - Route::get('/kemaskinialirantunai', 'App\Http\Controllers\AliranTunaiController@kemaskiniAliranTunai'); + Route::put('/kemaskinialirantunai', 'App\Http\Controllers\AliranTunaiController@kemaskiniAliranTunai'); Route::put('/kemaskinipetibesi', 'App\Http\Controllers\PetiBesiController@kemaskiniPetiBesi'); }); diff --git a/routes/web.php b/routes/web.php index 2395e76..92328e2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,8 @@ use Illuminate\Support\Facades\Route; */ Route::get('/', function () { - return view('welcome'); + // return view('home'); + return redirect()->route('login'); }); // Auth::routes();