text: (function(t){function e(e){for(var s,o,c=e[0],i=e[1],l=e[2],u=0,p=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&p.push(n[o][0]),n[o]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);d&&d(e);while(p.length)p.shift()();return r.push.apply(r,l||[]),a()}function a(){for(var t,e=0;e<r.length;e++){for(var a=r[e],s=!0,o=1;o<a.length;o++){var i=a[o];0!==n[i]&&(s=!1)}s&&(r.splice(e--,1),t=c(c.s=a[0]))}return t}var s={},n={app:0},r=[];function o(t){return c.p+"js/"+({about:"about"}[t]||t)+"."+{about:"1bab45ea"}[t]+".js"}function c(e){if(s[e])return s[e].exports;var a=s[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.e=function(t){var e=[],a=n[t];if(0!==a)if(a)e.push(a[2]);else{var s=new Promise((function(e,s){a=n[t]=[e,s]}));e.push(a[2]=s);var r,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=o(t);var l=new Error;r=function(e){i.onerror=i.onload=null,clearTimeout(u);var a=n[t];if(0!==a){if(a){var s=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",l.name="ChunkLoadError",l.type=s,l.request=r,a[1](l)}n[t]=void 0}};var u=setTimeout((function(){r({type:"timeout",target:i})}),12e4);i.onerror=i.onload=r,document.head.appendChild(i)}return Promise.all(e)},c.m=t,c.c=s,c.d=function(t,e,a){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)c.d(a,s,function(e){return t[e]}.bind(null,s));return a},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="/",c.oe=function(t){throw console.error(t),t};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=e,i=i.slice();for(var u=0;u<i.length;u++)e(i[u]);var d=l;r.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"0250":function(t,e,a){"use strict";a("b6a6")},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("2b0e"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-app",[a("router-view")],1)},r=[],o=a("2f62");s["a"].use(o["a"]);var c=new o["a"].Store({state:{token:""},mutations:{setToken:function(t,e){localStorage.setItem("token",e),t.token=e}},getters:{token:function(t){return t.token}}}),i={name:"App",store:c,data:function(){return{}}},l=i,u=(a("5c0b"),a("2877")),d=a("6544"),p=a.n(d),h=a("7496"),v=Object(u["a"])(l,n,r,!1,null,null,null),m=v.exports;p()(v,{VApp:h["a"]});a("d3b7"),a("3ca3"),a("ddb0");var f=a("8c4f"),_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-app",[a("v-app-bar",{attrs:{app:"",color:"warning lighten-1",dark:""}},[a("div",{staticClass:"d-flex align-center"},[a("v-img",{staticClass:"shrink mr-2",attrs:{alt:"Vuetify Logo",contain:"",src:"https://cdn.vuetifyjs.com/images/logos/vuetify-logo-dark.png",transition:"scale-transition",width:"40"}}),t._v(" ລະບົບແລກປ່ຽນເງີນຕາ ")],1)]),a("v-main",{attrs:{id:"jBg"}},[a("v-card",{staticClass:"mx-auto my-10 ",attrs:{"max-width":"500",loading:t.loading}},[a("div",{staticClass:"text-center "},[a("h1",{staticClass:"warning--text pt-2"},[t._v("ເຂົ້າສູລະບົບ")])]),a("template",{slot:"progress"},[a("v-progress-linear",{attrs:{color:"orange accent-2",height:"10",indeterminate:""}})],1),null!=t.statusError?a("v-alert",{attrs:{border:"top",color:"red lighten-2",dark:""}},[t._v(" "+t._s(t.statusError)+" ")]):t._e(),a("v-card",{ref:"form",staticClass:"py-5 px-3",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[a("v-text-field",{ref:"focusMe",attrs:{autocomplete:"off",rules:t.usernameRules,label:"ຊື່ບັນຊີ",color:"orange accent-2",required:"",outlined:""},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),a("v-text-field",{attrs:{"append-icon":t.value?"mdi-eye":"mdi-eye-off",type:t.value?"password":"text",rules:t.passwordRules,label:"ລະຫັດຜ່ານ",color:"orange accent-2",required:"",outlined:""},on:{"click:append":function(){return t.value=!t.value}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),a("v-checkbox",{attrs:{rules:[function(t){return!!t||"You must agree to continue!"}],label:"Do you agree?",required:""},model:{value:t.checkbox,callback:function(e){t.checkbox=e},expression:"checkbox"}}),a("v-card-actions",[a("v-btn",{attrs:{color:"warning",block:""},on:{click:t.testApi}},[t._v(" ເຂົ້າສູລະບົບ "+t._s(t.$store.getters.token)+" ")])],1)],1)],2)],1)],1)],1)},g=[],x=a("1da1"),w=(a("96cf"),{mounted:function(){this.$refs.focusMe.focus()},data:function(){return{value:String,statusError:null,errors:[],loading:!1,selection:1,valid:!0,username:"",usernameRules:[function(t){return!!t||"Name is required"}],password:"",passwordRules:[function(t){return!!t||"password is required"}],checkbox:!1}},methods:{testApi:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","login"),setTimeout((function(){return t.loading=!1}),2e3),e.next=4,t.axios.post(a,{username:t.username,password:t.password},{headers:{"Content-Type":"application/json"}}).then((function(e){localStorage.setItem("token",e.data.data.token),t.$store.commit("setToken",e.data.data.token),t.$router.push("Dashboard")})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api")}));case 4:case"end":return e.stop()}}),e)})))()}},computed:{},watch:{statusError:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusError=null}),2e3)}}}),b=w,y=(a("0250"),a("0798")),C=a("40dc"),k=a("8336"),E=a("b0af"),V=a("99d9"),T=a("ac7c"),j=a("adda"),S=a("f6c4"),R=a("8e36"),A=a("8654"),F=Object(u["a"])(b,_,g,!1,null,"4b43efe7",null),O=F.exports;p()(F,{VAlert:y["a"],VApp:h["a"],VAppBar:C["a"],VBtn:k["a"],VCard:E["a"],VCardActions:V["a"],VCheckbox:T["a"],VImg:j["a"],VMain:S["a"],VProgressLinear:R["a"],VTextField:A["a"]});var B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"appJ",staticStyle:{"background-color":"#FFF5EB"}},[a("input",{attrs:{type:"hidden",autofocus:""},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.sheet=!t.sheet}}}),a("Header"),a("v-main",{attrs:{color:"#FFF5EB"}},[null!=t.statusSuccess?a("v-alert",{staticClass:"text-center",attrs:{border:"top",color:"green lighten-2",dark:""}},[t._v(" "+t._s(t.statusSuccess)+" ")]):t._e(),a("v-row",{staticClass:"px-4 py-4 ",attrs:{dense:""}},[a("v-col",{attrs:{cols:"4"}},[a("v-card",{attrs:{color:"#fff",dark:""}},[a("v-btn",{staticClass:"orange accent-3",attrs:{block:""}},[a("h3",[t._v("ຈຳນວນເງີນໃນຄັງ")])]),t._l(t.currencies,(function(e,s){return a("v-col",{key:s,staticClass:"amber--text accent-4--text",attrs:{cols:"12"}},[a("div",{staticClass:"d-flex justify-center pb-1"},[a("v-col",{attrs:{cols:"2"}},[a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,r=s.attrs;return[a("v-img",t._g(t._b({attrs:{"max-height":"48","max-width":"48",src:t.webUrl+e.image}},"v-img",r,!1),n))]}}],null,!0)},[a("span",{attrs:{color:"white"}},[t._v(t._s(e.code)+" ("+t._s(e.name)+")")])])],1),a("v-col",{attrs:{cols:"4","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning"}},[a("span",[t._v("ທັງໝົດ ")]),a("br"),a("span",[t._v(t._s(e.all_amount))])])],1),a("v-col",{attrs:{cols:"3","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning--text  white"}},[a("span",[t._v("ເງີນສົດ")]),a("br"),a("span",[t._v(t._s(e.fiat_amount))])])],1),a("v-col",{attrs:{cols:"3","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning--text  white"}},[a("span",[t._v("ເງີນໂອນ")]),a("br"),a("span",[t._v(t._s(e.online_amount))])])],1)],1)])}))],2)],1),a("v-col",{attrs:{cols:"4"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-btn",{staticClass:"orange accent-3 white--text",attrs:{block:""}},[a("h3",[t._v("ອັດຕາແລກປ່ຽນ")])]),t._l(t.exchangeRates,(function(e,s){return a("v-col",{key:s,staticClass:"amber--text accent-4--text",attrs:{cols:"12"}},[a("div",{staticClass:"d-flex justify-center pb-1"},[a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,r=s.attrs;return[a("v-btn",t._g(t._b({staticClass:"mx-2",attrs:{fab:"",dark:"",small:"",color:"white"}},"v-btn",r,!1),n),[a("v-img",{attrs:{"max-height":"30","max-width":"30",src:t.webUrl+e.from_currencies_icon}})],1)]}}],null,!0)},[a("span",[t._v(t._s(e.from_currencies_code)+" ("+t._s(e.from_currencies)+")")])]),a("div",{staticClass:"mx-4 px-4 pt-1"},[a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[a("v-icon",t._g(t._b({attrs:{color:"amber accent-4",dark:"",large:""}},"v-icon",n,!1),s),[t._v(" mdi-arrow-right-bold-box ")])]}}],null,!0)},[a("span",[t._v("ແລກປ່ຽນ")])])],1),a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,r=s.attrs;return[a("v-btn",t._g(t._b({staticClass:"mx-2",attrs:{fab:"",dark:"",small:"",color:"white"}},"v-btn",r,!1),n),[a("v-img",{attrs:{"max-height":"30","max-width":"30",src:t.webUrl+e.to_currencies_icon}})],1)]}}],null,!0)},[a("span",[t._v(t._s(e.to_currencies_code)+" ("+t._s(e.to_currencies)+")")])]),a("div",{staticClass:"mx-4 px-4 pt-1"},[a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[a("v-icon",t._g(t._b({attrs:{color:"amber accent-4",dark:"",large:""}},"v-icon",n,!1),s),[t._v(" mdi-autorenew ")])]}}],null,!0)},[a("span",[t._v("ເລດແລກປ່ຽນ")])])],1),a("v-tooltip",{attrs:{bottom:"",color:"warning"},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,r=s.attrs;return[a("v-btn",t._g(t._b({staticClass:"mx-2",attrs:{width:"100px",color:"warning"}},"v-btn",r,!1),n),[t._v(" "+t._s(e.rate_show)+" ")])]}}],null,!0)},[a("span",[t._v("ອັດຕາແລກປ່ຽນ")])])],1)])}))],2)],1),a("v-col",{attrs:{cols:"4"}},[a("v-card",{attrs:{color:"#fff",dark:""}},[a("v-btn",{staticClass:"orange accent-3",attrs:{block:""}},[a("h3",[t._v("ຈຳນວນເງີນແລກອອກໄປ")])]),t._l(t.currenciesOutDay,(function(e,s){return a("v-col",{key:s,staticClass:"amber--text accent-4--text",attrs:{cols:"12"}},[a("div",{staticClass:"d-flex justify-center pb-1"},[a("v-col",{attrs:{cols:"2"}},[a("v-tooltip",{attrs:{bottom:"",color:"warning "},scopedSlots:t._u([{key:"activator",fn:function(s){var n=s.on,r=s.attrs;return[a("v-img",t._g(t._b({attrs:{"max-height":"48","max-width":"48",src:t.webUrl+e.image}},"v-img",r,!1),n))]}}],null,!0)},[a("span",[t._v(t._s(e.code)+" ("+t._s(e.name)+")")])])],1),a("v-col",{attrs:{cols:"4","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning"}},[a("span",[t._v("ທັງໝົດ")]),a("br"),a("span",[t._v(t._s(e.all_amount))])])],1),a("v-col",{attrs:{cols:"3","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning--text  white"}},[a("span",[t._v("ເງີນສົດ")]),a("br"),a("span",[t._v(t._s(e.fiat_amount))])])],1),a("v-col",{attrs:{cols:"3","max-height":"48"}},[a("v-card",{staticClass:"text-center",attrs:{color:"warning--text  white"}},[a("span",[t._v("ເງີນໂອນ")]),a("br"),a("span",[t._v(t._s(e.online_amount))])])],1)],1)])}))],2)],1)],1)],1),a("v-main",{staticClass:"px-4 rounded",attrs:{color:"#FFF5EB"}},[a("v-bottom-navigation",{attrs:{color:"warning",value:1}},[a("v-btn",{attrs:{autofocus:""},on:{click:function(e){t.sheet=!t.sheet},keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.sheet=!t.sheet}}},[a("span",[t._v("ແລກປ່ຽນ")]),a("v-icon",[t._v(" mdi-autorenew")])],1),a("v-bottom-sheet",{model:{value:t.sheet,callback:function(e){t.sheet=e},expression:"sheet"}},[a("v-sheet",{staticClass:"text-center ",attrs:{height:"400px"}},[null!=t.statusError?a("v-alert",{attrs:{color:"red lighten-2",dark:""}},[t._v(" "+t._s(t.statusError)+" ")]):t._e(),a("div",{attrs:{color:"#FFF5EB warning--text"}},[a("v-main",{attrs:{color:"#FFF5EB"}},[a("v-row",{staticClass:"px-4 py-4",attrs:{dense:""}},[a("v-col",{attrs:{cols:"3"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-col",{staticClass:"orange accent-3 white--text"},[a("div",{staticClass:"mx-auto row"},[a("v-icon",{attrs:{color:"white"}},[t._v("mdi-account")]),a("h3",[t._v("ລູກຄ້າ")])],1)]),""==t.selectCustomer?a("div",{staticClass:"px-4 py-4"},[a("v-btn",{attrs:{block:"",outlined:"",color:"warning"},on:{click:function(e){t.selectCustomer=1}}},[t._v(" ລູກຄ້າປະຈຳ "+t._s(t.customer_id)+" ")]),a("v-divider",{staticClass:"py-4"}),a("v-btn",{attrs:{block:"",color:"warning"},on:{click:function(e){t.selectCustomer=2}}},[t._v(" ເພີ່ມລູກຄ້າໃໝ່ "+t._s(t.customer_name)+t._s(t.customer_phone)+" ")])],1):t._e(),1==t.selectCustomer?a("div",{staticClass:"px-4 py-4",attrs:{color:"orange--text"}},[a("div",{staticClass:"d-flex justify-lg-space-between my-4"},[a("v-card-subtitle",{staticClass:"amber--text accent-4--text"},[t._v(" ເລືອກລູກຄ້າປະຈຳ ")]),a("v-btn",{staticClass:"float-lg-right",attrs:{outlined:"",color:"warning"},on:{click:t.customerReset}},[t._v(" ກັບຄືນ ")])],1),a("model-list-select",{attrs:{list:t.customers,"option-value":"id","custom-text":t.codeAndNameAndDesc,placeholder:"ເລືອກລູກຄ້າ"},model:{value:t.customer_id,callback:function(e){t.customer_id=e},expression:"customer_id"}})],1):t._e(),2==t.selectCustomer?a("div",{staticClass:"px-4 py-4"},[a("div",{staticClass:"d-flex justify-lg-space-between my-4"},[a("v-card-subtitle",{staticClass:"amber--text accent-4--text"},[t._v(" ເພີ່ມລູກຄ້າໃໝ່ ")]),a("v-btn",{staticClass:"float-lg-right",attrs:{outlined:"",color:"warning"},on:{click:t.customerReset}},[t._v(" ກັບຄືນ ")])],1),a("v-col",{attrs:{cols:"12"}},[a("v-text-field",{attrs:{label:"ຊື່ລູກຄ້າ",placeholder:"ຊື່ ແລະ ນາມສະກຸນລູກຄ້າໃໝ່",outlined:"",color:"warning text-warning",required:""},model:{value:t.customer_name,callback:function(e){t.customer_name=e},expression:"customer_name"}})],1),a("v-col",{attrs:{cols:"12"}},[a("v-text-field",{attrs:{label:"ເບີໂທລະສັບ",placeholder:"20xxxxxxxx",outlined:"",type:"number",color:"warning text-warning",required:""},model:{value:t.customer_phone,callback:function(e){t.customer_phone=e},expression:"customer_phone"}})],1)],1):t._e()],1)],1),a("v-col",{attrs:{cols:"5"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-col",{staticClass:"orange accent-3 white--text "},[a("div",{staticClass:"mx-auto row"},[a("v-icon",{attrs:{color:"white"}},[t._v("mdi-cash-multiple")]),a("h3",[t._v("ເພີ່ມການແລກປ່ຽນ")])],1)]),a("div",{staticClass:"px-4 py-4",attrs:{color:"orange--text"}},[a("model-list-select",{attrs:{list:t.exchangeRates,"option-value":"rate_id","custom-text":t.showExchangeCurrency,placeholder:"ເລືອກສະກຸນເງີນ"},model:{value:t.exchange_rate_id,callback:function(e){t.exchange_rate_id=e},expression:"exchange_rate_id"}}),a("v-col",[a("v-radio-group",{attrs:{row:""},model:{value:t.type_exchange_id,callback:function(e){t.type_exchange_id=e},expression:"type_exchange_id"}},[a("v-card",{staticClass:"amber--text accent-4--text px-2 py-1 mr-2"},[t._v(" ປະເພດເງີນແລກ: ")]),t._l(t.typeExchanges,(function(t,e){return a("v-radio",{key:e,attrs:{label:t.name,value:t.id,color:"warning"}})}))],2)],1),a("v-col",{staticClass:"d-flex justify-content-center"},[a("v-text-field",{attrs:{label:"ຈຳນວນເງີນ",placeholder:"ຕື່ມຈຳນວນເງີນ",outlined:"",color:"warning",dense:"",type:"number"},on:{click:function(e){t.amount=""}},model:{value:t.amount,callback:function(e){t.amount=e},expression:"amount"}}),a("v-col",{attrs:{cols:"4",color:"warning--text ",dark:""}},[a("h4",[t._v(t._s(Number(t.amount).toLocaleString()))])])],1),a("v-col",{staticClass:"d-flex justify-content-center"},[a("v-text-field",{attrs:{label:"ຈຳນວນເງີນໃບຍ່ອຍ",placeholder:"ຕື່ມຈຳນວນເງີນໃບຍ່ອຍ",outlined:"",color:"warning",dense:"",type:"number"},on:{click:function(e){t.amount_old=""}},model:{value:t.amount_old,callback:function(e){t.amount_old=e},expression:"amount_old"}}),a("v-col",{attrs:{cols:"4",color:"warning--text ",dark:""}},[a("h4",[t._v(t._s(Number(t.amount_old).toLocaleString()))])])],1),a("v-card-subtitle",{staticClass:"amber--text accent-4--text"})],1)],1)],1),a("v-col",{attrs:{cols:"4"}},[a("v-card",{attrs:{color:"#fff",dark:""}},[a("v-col",{staticClass:"orange accent-3 white--text"},[a("div",{staticClass:"mx-auto row"},[a("v-icon",{attrs:{color:"white"}},[t._v("mdi-calculator")]),a("h3",[t._v("ການຄຳນວນ "+t._s(t.customers[t.customer_id]))])],1)]),a("v-card-subtitle",{staticClass:"amber--text accent-4--text"},[t._v(" ອັດຕາແລກປ່ຽນ ")]),a("v-card-actions",{staticClass:"d-flex justify-lg-center"},[a("v-btn",{staticClass:"white--text orange accent-3 mx-4",on:{click:t.submitExchange}},[a("v-icon",{attrs:{color:"white"}},[t._v("mdi-autorenew")]),a("h3",[t._v("ແລກປ່ຽນ")])],1),a("v-btn",{attrs:{color:"red  white--text"},on:{click:function(e){t.sheet=!t.sheet}}},[a("v-icon",[t._v("mdi-close-outline")])],1)],1)],1)],1)],1)],1)],1)],1)],1)],1)],1),a("v-main",{attrs:{color:"#FFF5EB"}},[a("v-row",{staticClass:"px-4 py-4",attrs:{dense:""}},[a("v-col",{attrs:{cols:"12"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-btn",{staticClass:"warning ",attrs:{block:""}},[a("h3",[t._v("ລາຍການແລກປ່ຽນ")])]),a("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[a("thead",{staticClass:"warning "},[a("tr",[a("th",{staticClass:"text-left white--text"},[t._v(" ເວລາ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນລູກຄ້າ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນໃນຄັງປະຈຸບັນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ອັດຕາແລກປ່ຽນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນແລກປ່ຽນໄປ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນໃນຄັງຫຼັງແລກປ່ຽນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ປະເພດ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ລູກຄ້າ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" Cashier ")]),a("th",{staticClass:"text-left white--text"})])]),a("tbody",t._l(t.transactionHistories,(function(e,s){return a("tr",{key:s},[a("td",{staticClass:"warning--text"},[t._v(t._s(e.date_time))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.customer_amount)+" "+t._s(e.customer_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.now_balance)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_rate))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_amount)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_balance)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.type_money))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.customer_name)+" "),"ວ່າງ"!=e.customer_phone?a("span",[t._v(t._s(e.customer_phone))]):t._e()]),a("td",{staticClass:"warning--text"},[t._v(" "+t._s(e.cashier_name))]),a("td",[1==e.status?a("v-btn",{attrs:{color:"red white--text",small:""},on:{click:function(a){return a.stopPropagation(),t.setDeleteTransaction(e.id)}}},[a("v-icon",[t._v("mdi-close-outline")])],1):a("v-btn",{attrs:{disabled:"",small:""}},[a("v-icon",[t._v("mdi-close-outline")])],1)],1)])})),0)]},proxy:!0}])})],1)],1)],1)],1),t._v(" "+t._s(t.delete_tran_id)+" "),a("v-row",{attrs:{justify:"center"}},[a("v-dialog",{attrs:{"max-width":"290"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[a("v-card",[a("v-card-title",{staticClass:"text-h5"},[t._v(" ທ່ານຕ້ອງການຍົກເລີກ? ")]),a("v-card-actions",[a("v-spacer"),a("v-btn",{attrs:{color:"darken-1",text:""},on:{click:function(e){t.dialog=!1}}},[t._v(" ບໍ່ແມ່ນ ")]),a("v-btn",{attrs:{color:"green darken-1",text:""},on:{click:t.cancle}},[t._v(" ແມ່ນ ")])],1)],1)],1)],1)],1)},H=[],M=(a("99af"),a("b0c0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"background-color":"#FFF5EB"}},[a("v-app-bar",{attrs:{src:"https://www.ofx.com/wp-content/uploads/2021/07/gca-header.png"}},[a("v-btn",{attrs:{large:""},on:{click:function(e){e.stopPropagation(),t.drawer=!t.drawer}}},[a("v-icon",{attrs:{color:"#FF850A"}},[t._v("mdi-format-align-justify")])],1),a("v-spacer"),a("v-btn",{staticClass:"mx-2",attrs:{outlined:"",color:"#fff",large:""}},[a("h2",[t._v("ສາຂາ "+t._s(t.branch)+" ")])]),a("v-spacer"),a("div",{staticClass:"text-primary"}),a("v-btn",{staticClass:"mx-2",attrs:{outlined:"",color:"#fff",small:""}},[a("v-icon",{attrs:{color:"#fff"}},[t._v("mdi-account")]),t._v(t._s(t.name)+" ")],1),a("v-btn",{staticClass:"mx-2",attrs:{fab:"",small:""},on:{click:function(e){return t.logout()}}},[a("v-icon",{attrs:{color:"#FF850A"}},[t._v("mdi-export")])],1)],1),a("v-navigation-drawer",{attrs:{absolute:"",bottom:"",temporary:""},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[a("v-list",{attrs:{nav:"",dense:""}},[a("v-list-item-group",{attrs:{"active-class":"deep-purple--text text--accent-4"},model:{value:t.group,callback:function(e){t.group=e},expression:"group"}},[a("router-link",{attrs:{to:"/dashboard"}},[a("v-list-item",[a("v-list-item-title",[t._v("ໜ້າຫຼັກ")])],1)],1),a("router-link",{attrs:{to:"/fund"}},[a("v-list-item",[a("v-list-item-title",[t._v("ລາຍງານການເຕີມເງີນ")])],1)],1),a("router-link",{attrs:{to:"/transaction"}},[a("v-list-item",[a("v-list-item-title",[t._v("ລາຍງານແລກປ່ຽນເງີນຕາ")])],1)],1)],1)],1)],1),null!=t.statusError?a("v-alert",{attrs:{border:"top",dark:""}},[t._v(" "+t._s(t.statusError)+" ")]):t._e()],1)}),D=[],$={mounted:function(){this.getEmployeeInfo(),this.checkLogout()},data:function(){return{data:[],branch:"",name:"",statusError:null,drawer:!1,group:null}},methods:{checkLogout:function(){return Object(x["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:localStorage.token||(window.location.href="/");case 1:case"end":return t.stop()}}),t)})))()},getEmployeeInfo:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","employee-info"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.data=e.data,t.branch=e.data.data.branch,t.name=e.data.data.name,t.token=localStorage.token})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},logout:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","logout"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(t){t.data,window.location.href="/"})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(t.statusError="auth"),window.location.href="/"}));case 3:case"end":return e.stop()}}),e)})))()}}},N=$,P=a("132d"),L=a("8860"),z=a("da13"),I=a("1baa"),q=a("5d23"),J=a("f774"),U=a("2fa4"),G=Object(u["a"])(N,M,D,!1,null,null,null),Y=G.exports;p()(G,{VAlert:y["a"],VAppBar:C["a"],VBtn:k["a"],VIcon:P["a"],VList:L["a"],VListItem:z["a"],VListItemGroup:I["a"],VListItemTitle:q["a"],VNavigationDrawer:J["a"],VSpacer:U["a"]});var K=a("b410"),Q={mounted:function(){this.getExchangeRate(),this.getCustomer(),this.getTypeExchange(),this.getCurrencies(),this.getCurrenciesOutDay(),this.getTransactionHistory()},data:function(){return{desserts:[{name:"Frozen Yogurt",calories:159}],webUrl:"".concat("https://saysaathexchange.com/managment/ExchangeMoney/public"),exchangeRates:[],customers:[],typeExchanges:[],currencies:[],currenciesOutDay:[],transactionHistories:[],statusError:null,statusSuccess:null,sheet:!1,dialog:!1,delete_tran_id:null,customer_id:"",exchange_rate_id:"",from_currency:"",to_currency:"",rate:"",rate_old:"",rate_vip:"",type_currency:"",customer_type:0,type_exchange_id:1,customer_name:"",customer_phone:"",amount:0,amount_old:0,selectCustomer:""}},computed:{getAmountExchange:function(){return 0==this.customer_type?this.amount:9}},methods:{setDeleteTransaction:function(t){this.delete_tran_id=t,this.dialog=!0},cancle:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","cancle-transaction-history"),e.next=3,t.axios.post(a,{id:t.delete_tran_id},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.dialog=!1,t.statusSuccess=e.data.msg,t.getCurrencies(),t.getCurrenciesOutDay(),t.getTransactionHistory()})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},codeAndNameAndDesc:function(t){return"".concat(t.id," - ").concat(t.name," - ").concat(t.phone)},selectFromParentComponent1:function(t){this.customer_id=t.id,this.customer_type=t.name},customerReset:function(){this.customer_id="",this.customer_name="",this.customer_phone="",this.selectCustomer=""},showExchangeCurrency:function(t){return" ".concat(t.from_currencies_code,"/").concat(t.to_currencies_code,"  ( ").concat(t.from_currencies,"/").concat(t.to_currencies,") - ").concat(t.rate_show)},selectFromParentComponent2:function(){this.exchange_rate_id=this.options[0].rate_id,this.from_currency=this.options[0].from_currencies,this.to_currency=this.options[0].to_currencies,this.rate=this.options[0].rate,this.rate_old=this.options[0].rate_old,this.rate_vip=this.options[0].rate_old,this.type_currency=this.options[0].type},getTransactionHistory:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","transaction-history"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.transactionHistories=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},getCurrenciesOutDay:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","currencies-out-day"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.currenciesOutDay=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},getCurrencies:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","currencies"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.currencies=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},submitExchange:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","submit-exchange"),""===t.amount&&(t.amount=0),""===t.amount_old&&(t.amount_old=0),e.next=5,t.axios.post(a,{amount:t.amount,amount_old:t.amount_old,type_exchange_id:t.type_exchange_id,exchange_rate_id:t.exchange_rate_id,customer_id:t.customer_id,customer_name:t.customer_name,customer_phone:t.customer_phone},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.sheet=!1,t.customerReset(),t.statusSuccess=e.data.msg,t.getCurrencies(),t.getCurrenciesOutDay(),t.getTransactionHistory()})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 5:case"end":return e.stop()}}),e)})))()},getTypeExchange:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","type-exchange"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.typeExchanges=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},getExchangeRate:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","exchange-rate"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.exchangeRates=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()},getCustomer:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","customer-list"),e.next=3,t.axios.post(a,{},{headers:{Authorization:"Bearer ".concat(t.$store.getters.token),"Content-Type":"application/json"}}).then((function(e){t.customers=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()}},components:{Header:Y,ModelListSelect:K["ModelListSelect"]},watch:{statusError:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusError=null}),3e3)},statusSuccess:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusSuccess=null}),3e3)},dialog:function(t){0==t&&(this.delete_tran_id=null)}}},W=Q,X=a("b81c"),Z=a("288c"),tt=a("62ad"),et=a("169a"),at=a("ce7e"),st=a("67b6"),nt=a("43a6"),rt=a("0fd9"),ot=a("8dd9"),ct=a("1f4f"),it=a("3a2f"),lt=Object(u["a"])(W,B,H,!1,null,null,null),ut=lt.exports;p()(lt,{VAlert:y["a"],VBottomNavigation:X["a"],VBottomSheet:Z["a"],VBtn:k["a"],VCard:E["a"],VCardActions:V["a"],VCardSubtitle:V["b"],VCardTitle:V["c"],VCol:tt["a"],VDialog:et["a"],VDivider:at["a"],VIcon:P["a"],VImg:j["a"],VMain:S["a"],VRadio:st["a"],VRadioGroup:nt["a"],VRow:rt["a"],VSheet:ot["a"],VSimpleTable:ct["a"],VSpacer:U["a"],VTextField:A["a"],VTooltip:it["a"]});var dt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"appJ",staticStyle:{"background-color":"#FFF5EB"}},[a("Header"),a("v-main",{attrs:{color:"#FFF5EB"}},[a("v-row",{staticClass:"px-4 py-4",attrs:{dense:""}},[a("v-col",{attrs:{cols:"12 px-4 py-4"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-btn",{staticClass:"warning ",attrs:{block:""}},[a("h3",[t._v("ລາຍການແລກປ່ຽນ ")])]),a("v-row",{staticClass:"center px-4 py-4"},[a("v-dialog",{attrs:{persistent:"","max-width":"291px"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[a("v-col",[a("v-text-field",t._g(t._b({attrs:{label:"ເລືອກມື້",color:"warning","prepend-icon":"mdi-calendar",readonly:""},model:{value:t.dateRangeText,callback:function(e){t.dateRangeText=e},expression:"dateRangeText"}},"v-text-field",n,!1),s))],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[a("v-card",[a("v-date-picker",{attrs:{range:"",color:"warning"},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}}),a("v-card-actions",[a("v-spacer"),a("v-btn",{attrs:{color:"red darken-1",text:""},on:{click:function(e){t.dialog=!1}}},[t._v(" ປິດ ")]),a("v-btn",{attrs:{color:"green darken-1",text:""},on:{click:t.search}},[t._v(" ຄົ້ນຫາ ")])],1)],1)],1)],1),a("v-simple-table",{staticClass:"px-4",scopedSlots:t._u([{key:"default",fn:function(){return[a("thead",{staticClass:"warning "},[a("tr",[a("th",{staticClass:"text-left white--text"}),a("th",{staticClass:"text-left white--text"},[t._v(" ເວລາ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນລູກຄ້າ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນໃນຄັງປະຈຸບັນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ອັດຕາແລກປ່ຽນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນແລກປ່ຽນໄປ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ເງີນໃນຄັງຫຼັງແລກປ່ຽນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ປະເພດ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ລູກຄ້າ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" Cashier ")])])]),a("tbody",t._l(t.transactionHistories,(function(e,s){return a("tr",{key:s},[a("td",[1==e.status?a("v-btn",{attrs:{color:"green white--text",small:"",icon:""}},[a("v-icon",[t._v("mdi-check-outline")])],1):a("v-btn",{attrs:{color:"red white--text",icon:"",small:""}},[a("v-icon",[t._v("mdi-close-outline")])],1)],1),a("td",{staticClass:"warning--text"},[t._v(t._s(e.date_time))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.customer_amount)+" "+t._s(e.customer_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.now_balance)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_rate))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_amount)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.exchange_balance)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.type_money))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.customer_name)+" "),"ວ່າງ"!=e.customer_phone?a("span",[t._v(t._s(e.customer_phone))]):t._e()]),a("td",{staticClass:"warning--text"},[t._v(" "+t._s(e.cashier_name))])])})),0)]},proxy:!0}])})],1)],1)],1)],1)],1)},pt=[],ht=(a("a15b"),{mounted:function(){this.getTransactionHistory()},data:function(){return{transactionHistories:[],start:"",end:"",statusError:null,statusSuccess:null,dates:[],dialog:!1}},computed:{dateRangeText:function(){return this.dates.join(" ~ ")}},methods:{search:function(){this.start=this.dates[0],this.end=this.dates[1],this.getTransactionHistory()},getTransactionHistory:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","report-transaction-history"),e.next=3,t.axios.post(a,{start:t.start,end:t.end},{headers:{Authorization:"Bearer ".concat(localStorage.token),"Content-Type":"application/json"}}).then((function(e){t.transactionHistories=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()}},components:{Header:Y},watch:{statusError:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusError=null}),3e3)},statusSuccess:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusSuccess=null}),3e3)}}}),vt=ht,mt=a("2e4b"),ft=Object(u["a"])(vt,dt,pt,!1,null,null,null),_t=ft.exports;p()(ft,{VBtn:k["a"],VCard:E["a"],VCardActions:V["a"],VCol:tt["a"],VDatePicker:mt["a"],VDialog:et["a"],VIcon:P["a"],VMain:S["a"],VRow:rt["a"],VSimpleTable:ct["a"],VSpacer:U["a"],VTextField:A["a"]});var gt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"appJ",staticStyle:{"background-color":"#FFF5EB"}},[a("Header"),a("v-main",{attrs:{color:"#FFF5EB"}},[a("v-row",{staticClass:"px-4 py-4",attrs:{dense:""}},[a("v-col",{attrs:{cols:"12 px-4 py-4"}},[a("v-card",{attrs:{color:"#fff"}},[a("v-btn",{staticClass:"warning ",attrs:{block:""}},[a("h3",[t._v("ລາຍການການເຕີມງິນ ")])]),a("v-row",{staticClass:"center px-4 py-4"},[a("v-dialog",{attrs:{persistent:"","max-width":"291px"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[a("v-col",[a("v-text-field",t._g(t._b({attrs:{label:"ເລືອກມື້",color:"warning","prepend-icon":"mdi-calendar",readonly:""},model:{value:t.dateRangeText,callback:function(e){t.dateRangeText=e},expression:"dateRangeText"}},"v-text-field",n,!1),s))],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[a("v-card",[a("v-date-picker",{attrs:{range:"",color:"warning"},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}}),a("v-card-actions",[a("v-spacer"),a("v-btn",{attrs:{color:"red darken-1",text:""},on:{click:function(e){t.dialog=!1}}},[t._v(" ປິດ ")]),a("v-btn",{attrs:{color:"green darken-1",text:""},on:{click:t.search}},[t._v(" ຄົ້ນຫາ ")])],1)],1)],1)],1),a("v-simple-table",{staticClass:"px-4 py-4",scopedSlots:t._u([{key:"default",fn:function(){return[a("thead",{staticClass:"warning "},[a("tr",[a("th",{staticClass:"text-left white--text"}),a("th",{staticClass:"text-left white--text"},[t._v(" ເວລາ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ຈໍານວນເງີນ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ຈໍານວນເງີນໃນຄັງຕອນແລກ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ຈໍານວນເງີນໃນຄັງພາຍຫຼັງ ")]),a("th",{staticClass:"text-left white--text"},[t._v(" ປະເພດ ")])])]),a("tbody",t._l(t.transactionHistories,(function(e,s){return a("tr",{key:s},[a("td",[e.amount>0?a("v-btn",{attrs:{color:"green white--text",icon:""}},[a("v-icon",[t._v("mdi-arrow-right-bold-box")])],1):a("v-btn",{attrs:{color:"red white--text",icon:""}},[a("v-icon",[t._v("mdi-arrow-left-bold-box")])],1)],1),a("td",{staticClass:"warning--text"},[t._v(t._s(e.created_at))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.amount_show)+" "+t._s(e.currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.current_balance)+" "+t._s(e.currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.new_balance)+" "+t._s(e.to_currency))]),a("td",{staticClass:"warning--text"},[t._v(t._s(e.type))])])})),0)]},proxy:!0}])})],1)],1)],1)],1)],1)},xt=[],wt={mounted:function(){this.getTransactionHistory()},data:function(){return{transactionHistories:[],start:"",end:"",statusError:null,statusSuccess:null,dates:[],dialog:!1}},computed:{dateRangeText:function(){return this.dates.join(" ~ ")}},methods:{search:function(){this.start=this.dates[0],this.end=this.dates[1],this.getTransactionHistory()},getTransactionHistory:function(){var t=this;return Object(x["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="".concat("https://saysaathexchange.com/managment/ExchangeMoney/public/api/","report-fund"),e.next=3,t.axios.post(a,{start:t.start,end:t.end},{headers:{Authorization:"Bearer ".concat(localStorage.token),"Content-Type":"application/json"}}).then((function(e){t.transactionHistories=e.data.data})).catch((function(e){422!=e.response.status&&500!=e.response.status||(t.statusError=e.response.data.msg),404==e.response.status&&(t.statusError="Not found Api"),401==e.response.status&&(window.location.href="/",t.statusError="auth")}));case 3:case"end":return e.stop()}}),e)})))()}},components:{Header:Y},watch:{statusError:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusError=null}),3e3)},statusSuccess:function(t){var e=this;null!=t&&setTimeout((function(){return e.statusSuccess=null}),3e3)}}},bt=wt,yt=Object(u["a"])(bt,gt,xt,!1,null,null,null),Ct=yt.exports;p()(yt,{VBtn:k["a"],VCard:E["a"],VCardActions:V["a"],VCol:tt["a"],VDatePicker:mt["a"],VDialog:et["a"],VIcon:P["a"],VMain:S["a"],VRow:rt["a"],VSimpleTable:ct["a"],VSpacer:U["a"],VTextField:A["a"]}),s["a"].use(f["a"]);var kt=[{path:"/",name:"Home",component:O},{path:"/dashboard",name:"Dashboard",component:ut},{path:"/transaction",name:"Transaction",component:_t},{path:"/fund",name:"Fund",component:Ct},{path:"/about",name:"About",component:function(){return a.e("about").then(a.bind(null,"f820"))}}],Et=new f["a"]({mode:"history",base:"/",routes:kt}),Vt=Et,Tt=a("f309");s["a"].use(Tt["a"]);var jt=new Tt["a"]({}),St=a("bc3a"),Rt=a.n(St),At=a("130e"),Ft=a("d446"),Ot=a.n(Ft);a("41e9");s["a"].config.productionTip=!1,s["a"].use(At["a"],Rt.a),new s["a"]({router:Vt,vuetify:jt,font:Ot.a,render:function(t){return t(m)}}).$mount("#app")},"5c0b":function(t,e,a){"use strict";a("9c0c")},"9c0c":function(t,e,a){},b6a6:function(t,e,a){},d446:function(t,e,a){t.exports=a.p+"fonts/Lao_Classic3.62f71b01.ttf"}});
  //# sourceMappingURL=app.a2009ec3.js.map