diff --git a/public/js/app.js b/public/js/app.js index f7f6b88..e49889e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -17508,6 +17508,42 @@ __webpack_require__.r(__webpack_exports__); // // // +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// var formatter = new Intl.NumberFormat('en-US', { minimumFractionDigits: 2 }); @@ -17540,7 +17576,7 @@ var formatter = new Intl.NumberFormat('en-US', { } }).then(function (response) { _this.gadaianharian = formatter.format(response.data[0].gadaiToday); - _this.percentgadaian = response.data[0].percentDiff.toFixed(2); + _this.percentgadaian = response.data[0].percentDiff; })["catch"](function (error) { console.log(error); }); @@ -17554,7 +17590,7 @@ var formatter = new Intl.NumberFormat('en-US', { } }).then(function (response) { _this2.penebusanharian = formatter.format(response.data[0].tebusToday); - _this2.percentpenebusan = response.data[0].percentDiff.toFixed(2); + _this2.percentpenebusan = response.data[0].percentDiff; })["catch"](function (error) { console.log(error); }); @@ -17568,7 +17604,7 @@ var formatter = new Intl.NumberFormat('en-US', { } }).then(function (response) { _this3.keuntunganharian = formatter.format(response.data[0].upahToday); - _this3.percentkeuntungan = response.data[0].percentDiff.toFixed(2); + _this3.percentkeuntungan = response.data[0].percentDiff; })["catch"](function (error) { console.log(error); }); @@ -19947,7 +19983,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar }; }, setup: function setup(props, context) {}, - created: function created() { + mounted: function mounted() { var _this = this; this.axios.get('http://localhost:8000/api/poskod/' + this.poskod).then(function (response) { @@ -72462,40 +72498,114 @@ var render = function () { ]), ]), _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", + _vm.percentgadaian > 0 + ? _c( + "div", { - staticClass: "w-5 h-5", - attrs: { - fill: "currentColor", - viewBox: "0 0 20 20", - xmlns: "http://www.w3.org/2000/svg", - }, + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-green-500 text-base font-bold", }, [ - _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( + "\n " + + _vm._s(_vm.percentgadaian.toFixed(2)) + + "%\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._e(), + _vm._v(" "), + _vm.percentgadaian == 0 + ? _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-yellow-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentgadaian.toFixed(2)) + + "%\n " + ), + _c( + "svg", + { + staticClass: "h-6 w-6", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + fill: "none", + viewBox: "0 0 24 24", + stroke: "currentColor", + }, + }, + [ + _c("path", { + attrs: { + "stroke-linecap": "round", + "stroke-linejoin": "round", + "stroke-width": "2", + d: "M18 12H6", + }, + }), + ] + ), + ] + ) + : _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.percentgadaian.toFixed(2)) + + "%\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", + }, + }), + ] + ), ] ), - ] - ), ]), ] ), @@ -72520,40 +72630,114 @@ var render = function () { ]), ]), _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", + _vm.percentpenebusan > 0 + ? _c( + "div", { - staticClass: "w-5 h-5", - attrs: { - fill: "currentColor", - viewBox: "0 0 20 20", - xmlns: "http://www.w3.org/2000/svg", - }, + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-green-500 text-base font-bold", }, [ - _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( + "\n " + + _vm._s(_vm.percentpenebusan.toFixed(2)) + + "%\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._e(), + _vm._v(" "), + _vm.percentpenebusan == 0 + ? _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-yellow-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentpenebusan.toFixed(2)) + + "%\n " + ), + _c( + "svg", + { + staticClass: "h-6 w-6", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + fill: "none", + viewBox: "0 0 24 24", + stroke: "currentColor", + }, + }, + [ + _c("path", { + attrs: { + "stroke-linecap": "round", + "stroke-linejoin": "round", + "stroke-width": "2", + d: "M18 12H6", + }, + }), + ] + ), + ] + ) + : _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.percentpenebusan.toFixed(2)) + + "%\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", + }, + }), + ] + ), ] ), - ] - ), ]), ] ), @@ -72578,40 +72762,114 @@ var render = function () { ]), ]), _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", + _vm.percentkeuntungan > 0 + ? _c( + "div", { - staticClass: "w-5 h-5", - attrs: { - fill: "currentColor", - viewBox: "0 0 20 20", - xmlns: "http://www.w3.org/2000/svg", - }, + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-green-500 text-base font-bold", }, [ - _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", + _vm._v( + "\n " + + _vm._s(_vm.percentkeuntungan.toFixed(2)) + + "%\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._e(), + _vm._v(" "), + _vm.percentkeuntungan == 0 + ? _c( + "div", + { + staticClass: + "ml-5 w-0 flex items-center justify-end flex-1 text-yellow-500 text-base font-bold", + }, + [ + _vm._v( + "\n " + + _vm._s(_vm.percentkeuntungan.toFixed(2)) + + "%\n " + ), + _c( + "svg", + { + staticClass: "h-6 w-6", + attrs: { + xmlns: "http://www.w3.org/2000/svg", + fill: "none", + viewBox: "0 0 24 24", + stroke: "currentColor", + }, + }, + [ + _c("path", { + attrs: { + "stroke-linecap": "round", + "stroke-linejoin": "round", + "stroke-width": "2", + d: "M18 12H6", + }, + }), + ] + ), + ] + ) + : _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.toFixed(2)) + + "%\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", + }, + }), + ] + ), ] ), - ] - ), ]), ] ), @@ -99229,7 +99487,7 @@ if (typeof window !== 'undefined' && window.Vue) { /***/ ((module) => { "use strict"; -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"}'); +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"}'); /***/ }) diff --git a/resources/js/components/Analisa/Harian.vue b/resources/js/components/Analisa/Harian.vue index 37bb36b..a13fd3f 100644 --- a/resources/js/components/Analisa/Harian.vue +++ b/resources/js/components/Analisa/Harian.vue @@ -6,12 +6,24 @@ RM {{ gadaianharian }}