text: "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[321],{8941:(t,e,n)=>{function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}n.d(e,{Z:()=>o});var r=n(9669);const o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"getlist",value:function(t){return r.get("/api/project".concat(t)).then((function(t){return t.data})).catch((function(t){return t}))}},{key:"validateTask",value:function(t){return r.post("/api/task-validate",t).then((function(t){return{status:1,data:"validated"}})).catch((function(t){return{status:0,data:t.response.data.errors}}))}},{key:"createTask",value:function(t,e){return r.post("/api/project/"+t+"/task",e).then((function(t){return{status:1,data:t.data}})).catch((function(t){return{status:0,data:t.response.data.errors}}))}},{key:"create",value:function(t){return r.post("/api/project",t).then((function(t){return{status:1,data:t.data.data}})).catch((function(t){return{status:0,data:t.response.data.errors}}))}},{key:"get",value:function(t){return r.get("/api/project/".concat(t)).then((function(t){return t.data.data})).catch((function(t){return t}))}}])&&a(e.prototype,n),o&&a(e,o),t}())},6321:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var a=n(7757),r=n.n(a),o=n(8941);function c(t,e,n,a,r,o,c){try{var s=t[o](c),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(a,r)}const s={data:function(){return{projects:[]}},mounted:function(){var t,e=this;return(t=r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.getlist("?perpage=0").then((function(t){return t.data}));case 2:e.projects=t.sent;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(a,r){var o=t.apply(e,n);function s(t){c(o,a,r,s,u,"next",t)}function u(t){c(o,a,r,s,u,"throw",t)}s(void 0)}))})()}};var u=(0,n(1900).Z)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[n("thead",[n("tr",[n("th",{staticClass:"text-left"},[t._v("\n          Invoice#\n        ")]),t._v(" "),n("th",{staticClass:"text-left"},[t._v("\n          Paid\n        ")]),t._v(" "),n("th",{staticClass:"text-left"},[t._v("\n          Balance\n        ")])])]),t._v(" "),t.projects.length>0?n("tbody",t._l(t.projects,(function(e){return n("tr",{key:e.project_id_int},[n("td",[t._v(t._s(e.project_id))]),t._v(" "),n("td",[t._v(t._s(e.total_paid))]),t._v(" "),n("td",[t._v(t._s(e.total_balance))]),t._v(" "),n("td",[n("v-btn",{staticClass:"white--text",attrs:{link:"",to:{name:"auth.customer.invoice",params:{id:parseInt(e.project_id_int)}},small:"",color:"blue float-right"}},[n("v-icon",{attrs:{left:"",dark:""}},[t._v(" mdi-cash ")]),t._v("\n              See Details\n              ")],1)],1)])})),0):n("tbody",[n("tr",[n("td",{attrs:{colspan:"4"}},[t._v("If you are not seeing any invoice, this is because project manager haven't yet created your project.")])])])]},proxy:!0}])})}),[],!1,null,null,null);const i=u.exports}}]);