Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ts.corals.io/frontend/dist/_nuxt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ts.corals.io/frontend/dist/_nuxt/08d7141.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{721:function(t,e,n){"use strict";var o={name:"PageHeader",props:{title:{required:!0}}},r=n(88),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("div",{staticClass:"border-bottom mb-3"},[n("h3",[t._v(t._s(t.title))])])]),t._v(" "),n("div",{staticClass:"col-md-6"},[t._t("default")],2)])}),[],!1,null,"0f95d94e",null);e.a=component.exports},799:function(t,e,n){"use strict";n.r(e);var o=n(62),r=(n(12),n(96),n(101),n(758),n(419),n(39),n(136),n(735)),c=n(721),l=(n(15),n(33),n(299),n(14),n(192),n(237),n(18),n(116),{name:"TSEntriesTable",props:["resourceUrl"],fetch:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.get(t.resourceUrl).then((function(t){return t.data}));case 2:t.groupedProjects=e.sent;case 3:case"end":return e.stop()}}),e)})))()},data:function(){return{groupedProjects:[],search:""}},methods:{userCount:function(t,e){var n=0;return t.forEach((function(t){return t.user===e&&n++})),n},totalUserTime:function(t,e){var n=0,o=0;return t.forEach((function(t){t.user===e&&(n+=t.evaluation_hours||0,o+=t.evaluation_minutes||0)})),o>=60&&(n+=Math.floor(o/60),o%=60),o<10&&(o="0"+o),n<10&&(n="0"+n),n+":"+o},totalEvaluationTime:function(t){for(var e=0,n=0,i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++)e+=t[i][o].evaluation_hours||0,n+=t[i][o].evaluation_minutes||0;return n>=60&&(e+=Math.floor(n/60),n%=60),n<10&&(n="0"+n),e<10&&(e="0"+e),e+":"+n}},computed:{getGroupedProjects:function(){var t=this;if(!this.search.length)return this.groupedProjects;var e=[];return this.groupedProjects.forEach((function(n){var o=[];n.forEach((function(e){var n;(n=e.filter((function(e){return e.user.toLowerCase().includes(t.search.toLowerCase())||e.description.toLowerCase().includes(t.search.toLowerCase())||e.spent_at.includes(t.search)}))).length>0&&o.push(n)})),o.length>0&&e.push(o)})),e}}}),v=n(88),_=Object(v.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-responsive"},[n("div",{staticClass:"row pl-1"},[n("div",{staticClass:"col-md-8"},[n("div",{staticClass:"form-group form-row"},[n("div",{staticClass:"col-md-6"},[n("b-form-input",{staticClass:"form-control",attrs:{placeholder:"Type to filter...",debounce:"500"},model:{value:t.search,callback:function(e){t.search="string"==typeof e?e.trim():e},expression:"search"}})],1),t._v(" "),n("div",{staticClass:"col-md-2"},[n("b-button",{attrs:{disabled:!t.search},on:{click:function(e){t.search=""}}},[t._v("Clear")])],1)])])]),t._v(" "),n("br"),t._v(" "),t.getGroupedProjects.length?t._l(t.getGroupedProjects,(function(e,o){return n("div",[n("h4",[t._v(t._s(e[0][0].project))]),t._v(" "),n("table",{staticClass:"VueTables__table table"},[n("thead",[n("tr",[n("th",{staticClass:"cw-120"},[t._v("Date")]),t._v(" "),n("th",{staticClass:"cw-200"},[t._v("Resource")]),t._v(" "),n("th",[t._v("Description")]),t._v(" "),n("th",{staticClass:"cw-150 pl-0"},[t._v("Time: "+t._s(t.totalEvaluationTime(e)))])])]),t._v(" "),n("tbody",[t._l(e,(function(e,o){return[t._l(e,(function(r,c){return[n("tr",{class:o%2?"odd-row":"even-row"},[0===c?n("td",{attrs:{rowspan:e.length}},[t._v("\n                "+t._s(r.spent_at)+"\n                "),n("br"),t._v(" "),n("small",[t._v(t._s(r.spent_at_day.name))])]):t._e(),t._v(" "),0===c||e[c-1].user!==e[c].user?n("td",{attrs:{rowspan:t.userCount(e,r.user)}},[n("div",[t._v(t._s(r.user))]),t._v(" "),n("div",{staticClass:"font-weight-bold mt-1"},[t._v("\n                  "+t._s(t.totalUserTime(e,r.user))+"\n                ")])]):t._e(),t._v(" "),n("td",[n("div",{domProps:{innerHTML:t._s(t.$getTextWithLinks(r.description))}}),t._v(" "),n("div",[t._l(r.labels,(function(label){return[n("span",{staticClass:"badge badge-warning mr-1"},[t._v(t._s(label.name))])]}))],2)]),t._v(" "),n("th",[t._v("\n                "+t._s(r.evaluation_time)+"\n                "),r.has_reviewed?n("fa",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:"Has Reviewed",expression:"'Has Reviewed'"}],staticClass:"text-success",attrs:{icon:"check-circle"}}):t._e()],1)])]}))]}))],2)])])})):t._e(),t._v(" "),t.getGroupedProjects.length?t._e():n("h4",{staticClass:"text-center text-muted"},[t._v("No data available")])],2)}),[],!1,null,"5a8a0aba",null).exports,d={name:"InvoiceDetails",props:{invoice:{required:!0}},data:function(){return{}},methods:{isExistsInvoiceDescription:function(t){return!!t.properties&&!!t.properties.invoice_description}},computed:{siteLogo:function(){return this.$store.getters.settings("site_logo")},payableTo:function(){return this.$store.getters.settings("payable_to")}}},h=Object(v.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card p-2"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-8 d-flex flex-column justify-content-around"},[n("img",{staticStyle:{"max-width":"250px"},attrs:{alt:"siteLogo",src:t.siteLogo}}),t._v(" "),n("div",[n("span",{domProps:{innerHTML:t._s(t.invoice.status)}})])]),t._v(" "),n("div",{staticClass:"col-4"},[n("h4",[t._v("Invoice")]),t._v(" "),n("p",{staticStyle:{"font-size":"15px"}},[n("b",[t._v(" "+t._s(t.invoice.code)+" ")]),t._v(" "),n("br"),t._v("\n        Date: "),n("b",[t._v(" "+t._s(t.invoice.invoice_date)+" ")]),t._v(" "),n("br"),t._v("\n        Due Date: "),n("b",[t._v(" "+t._s(t.invoice.due_date)+" ")])])])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("h6",[t._v("Payable to")]),t._v(" "),n("p",{domProps:{innerHTML:t._s(t.payableTo)}})]),t._v(" "),n("div",{staticClass:"col-6"},[n("h6",[t._v("Bill To")]),t._v(" "),n("p",[t._v("\n        "+t._s(t.invoice.client)+"\n        "),n("br"),t._v(" "),t.invoice.client_user?[t._v("\n          "+t._s(t.invoice.client_user.full_name)+"\n          "),n("br"),t._v("\n          "+t._s(t.invoice.client_user.email)+"\n          "),n("br")]:t._e(),t._v(" "),t.invoice.client_billing_address?[t._v("\n          "+t._s(t.invoice.client_billing_address)+"\n        ")]:t._e()],2)])]),t._v(" "),n("div",[n("table",{staticClass:"table table-sm"},[t._m(0),t._v(" "),n("tbody",[t._l(t.invoice.items.filter((function(t){return!["tax","discount"].includes(t.type)})),(function(e){return n("tr",[n("th",[t._v(t._s(e.title))]),t._v(" "),n("td",{attrs:{colspan:"2"}},[t.isExistsInvoiceDescription(e)?n("div",{staticStyle:{"white-space":"pre"},domProps:{innerHTML:t._s(e.properties.invoice_description)}}):n("div",[t._v("\n            "+t._s(e.quantity)+" × "+t._s(e.rate)+"\n          ")]),t._v(" "),e.notes?n("div",[t._v("\n            "+t._s(e.notes)+"\n          ")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.amount))])])})),t._v(" "),n("tr",[n("td"),t._v(" "),n("td"),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Subtotal")]),t._v(" "),n("td",[t._v(t._s(t.invoice.subtotal))])]),t._v(" "),t._l(t.invoice.items.filter((function(t){return"tax"===t.type})),(function(e){return n("tr",[n("th",[t._v(t._s(e.title))]),t._v(" "),n("td",{attrs:{colspan:"2"}},[t._v("\n          "+t._s(e.quantity)+" × "+t._s(e.rate)+"\n          "),e.notes?n("div",[t._v("\n            "+t._s(e.notes)+"\n          ")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.amount))])])})),t._v(" "),parseFloat(t.invoice.tax_total)?n("tr",[n("td"),t._v(" "),n("td"),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Taxes")]),t._v(" "),n("td",[t._v(t._s(t.invoice.tax_total))])]):t._e(),t._v(" "),t._l(t.invoice.items.filter((function(t){return"discount"===t.type})),(function(e){return n("tr",[n("th",[t._v(t._s(e.title))]),t._v(" "),n("td",{attrs:{colspan:"2"}},[t._v("\n          "+t._s(e.quantity)+" × "+t._s(e.rate)+"\n          "),e.notes?n("div",[t._v("\n            "+t._s(e.notes)+"\n          ")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.amount))])])})),t._v(" "),parseFloat(t.invoice.discount_total)?n("tr",[n("td"),t._v(" "),n("td"),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Discount")]),t._v(" "),n("td",{staticClass:"text-danger"},[t._v(t._s(t.invoice.discount_total))])]):t._e(),t._v(" "),n("tr",[n("td"),t._v(" "),n("td"),t._v(" "),n("th",{staticClass:"text-right"},[t._v("Total")]),t._v(" "),n("td",{domProps:{innerHTML:t._s(t.invoice.total)}})])],2)])]),t._v(" "),n("div",[n("h6",[t._v("Notes:")]),t._v(" "),n("p",{domProps:{innerHTML:t._s(t.invoice.notes)}})])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",[t._v("Item")]),t._v(" "),n("th",{attrs:{colspan:"2"}},[t._v("Description")]),t._v(" "),n("th",[t._v("Amount")])])])}],!1,null,"32986674",null).exports,m={name:"invoiceShow",components:{TSEntriesTable:_,EntriesIndex:r.a,PageHeader:c.a,InvoiceDetails:h},asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.params,o=t.$axios,r=t.redirect,e.next=3,o.get("/timesheet/invoices/".concat(n.invoiceid)).then((function(t){return t.data.data})).catch((function(t){return r("/")}));case 3:return c=e.sent,e.abrupt("return",{invoice:c});case 5:case"end":return e.stop()}}),e)})))()},data:function(){return{showDownloadEntriesButtonSpinner:!1,showDownloadDetailsButtonSpinner:!1}},methods:{downloadInvoiceDetails:function(t){var e=this,n="/timesheet/invoices/".concat(this.$route.params.invoiceid,"}/print-invoice-details");this.showDownloadDetailsButtonSpinner=!0,this.$axios.get(n,{responseType:"blob"}).then((function(t){var n=t.data,o=window.URL.createObjectURL(new Blob([n])),r=document.createElement("a");r.href=o,r.setAttribute("download","".concat(e.invoice.code,"-details.pdf")),document.body.appendChild(r),r.click(),e.showDownloadDetailsButtonSpinner=!1}))},downloadInvoiceAsPDF:function(){var t=this,e="/timesheet/invoices/".concat(this.$route.params.invoiceid,"/entries?download=1");this.showDownloadEntriesButtonSpinner=!0,this.$axios.get(e,{responseType:"blob"}).then((function(e){var n=e.data,o=window.URL.createObjectURL(new Blob([n])),r=document.createElement("a");r.href=o,r.setAttribute("download","".concat(t.invoice.code,"-").concat(t.invoice.invoice_date,"-entries.pdf")),document.body.appendChild(r),r.click(),t.showDownloadEntriesButtonSpinner=!1}))}},computed:{entriesResource:function(){return"/timesheet/invoices/".concat(this.$route.params.invoiceid,"/entries")},breadcrumbLinks:function(){return[{text:"Clients",to:"/clients"},{text:this.invoice.client,to:"/clients/".concat(this.invoice.client_id)},{text:"Invoices",to:"/clients/".concat(this.invoice.client_id,"?tab=invoices")},{text:this.invoice.code,active:!0}]}}},f=Object(v.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("PageHeader",{attrs:{title:t.invoice.project_name?t.invoice.code+" - "+t.invoice.project_name:t.invoice.code}}),t._v(" "),n("b-breadcrumb",{attrs:{items:t.breadcrumbLinks}}),t._v(" "),n("b-tabs",{attrs:{"content-class":"mt-3 "}},[n("b-tab",{attrs:{title:"Details",active:""}},[n("div",{staticClass:"d-flex justify-content-end"},[n("button",{staticClass:"btn btn-primary mb-2",attrs:{disabled:t.showDownloadDetailsButtonSpinner},on:{click:function(e){return e.preventDefault(),t.downloadInvoiceDetails()}}},[t.showDownloadDetailsButtonSpinner?n("b-spinner",{attrs:{small:""}}):t._e(),t._v("\n          Download Invoice\n        ")],1)]),t._v(" "),n("InvoiceDetails",{attrs:{invoice:t.invoice}})],1),t._v(" "),n("b-tab",{attrs:{title:"Entries",lazy:""}},[n("div",{staticClass:"d-flex justify-content-end"},[n("button",{staticClass:"btn btn-primary mb-2",attrs:{disabled:t.showDownloadEntriesButtonSpinner},on:{click:function(e){return e.preventDefault(),t.downloadInvoiceAsPDF()}}},[t.showDownloadEntriesButtonSpinner?n("b-spinner",{attrs:{small:""}}):t._e(),t._v("\n          Download Entries\n        ")],1)]),t._v(" "),n("TSEntriesTable",{attrs:{"resource-url":t.entriesResource}})],1)],1)],1)}),[],!1,null,"add13a56",null);e.default=f.exports}}]);

Spamworldpro Mini