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/6370998.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,3],{295:function(e,t,o){"use strict";o.r(t);var n=o(55),r=(o(33),o(47),o(44),o(18),o(116),{name:"CoralsSelect",props:{form:{type:Object,required:!0},label:{type:[String,Boolean],default:"",required:!1},type:{type:String,default:"text"},field:{type:String,required:!0},options:{required:!0},required:{type:Boolean,default:!1}},computed:{getOptions:function(){var e=[];for(var t in this.options)"object"==Object(n.a)(this.options[t])&&this.options[t].hasOwnProperty("label")||Array.isArray(this.options)?e.push(this.options[t]):e.push({value:t,label:this.options[t]});return e},labelValue:function(){if(!1===this.label)return"";if(this.label)return this.label;var label=this.field.replace("_"," ");return label.charAt(0).toUpperCase()+label.slice(1)},idValue:function(){return this.$attrs.id?this.$attrs.id:this.field},fieldDescription:function(){return this.$attrs.description||""},isMultiple:function(){return!!this.$attrs.multiple}}}),l=(o(729),o(88)),component=Object(l.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("b-form-group",{attrs:{"invalid-feedback":e.form.error(e.field),label:e.labelValue,"label-for":e.idValue,"label-class":{"required-field":e.required},description:e.fieldDescription,state:e.form.state(e.field)}},[o("v-select",e._b({attrs:{id:e.idValue,options:e.getOptions,reduce:function(e){return e.value},placeholder:"Select "+e.labelValue,selectable:function(option){return!option.hasOwnProperty("notSelectable")}},on:{input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"selected-option",fn:function(t){var label=t.label,n=t.group_label;return[o("div",{staticClass:"selected-option"},[o("div",{staticClass:"selected-option-group"},[n?o("span",{staticClass:"selected-group",class:e.isMultiple?"multi":""},[e._v("\n            "+e._s(n)+"\n          ")]):e._e(),e._v(" "),o("span",{class:{"has-group":n}},[e._v("\n            "+e._s(label)+"\n          ")])])])]}},{key:"option",fn:function(t){t.group;var label=t.label,n=t.is_group_empty,r=t.notSelectable,l=t.empty_group_message;return[o("div",{class:{"font-weight-bold text-dark":r}},[e._v("\n        "+e._s(label)+"\n      ")]),e._v(" "),n?o("div",[e._v("\n        "+e._s(l)+"\n      ")]):e._e()]}}]),model:{value:e.form[e.field],callback:function(t){e.$set(e.form,e.field,t)},expression:"form[field]"}},"v-select",e.$attrs,!1))],1)}),[],!1,null,null,null);t.default=component.exports},719:function(e,t,o){"use strict";var n={name:"COverlay",props:{show:{default:!1,type:Boolean}}},r=o(88),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-overlay",{attrs:{show:e.show,rounded:"sm","spinner-variant":"primary",variant:"transparent",blur:"1px"}},[e._t("default")],2)}),[],!1,null,"5a577948",null);t.a=component.exports},720:function(e,t,o){var content=o(725);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(95).default)("7c8b2224",content,!0,{sourceMap:!1})},722:function(e,t,o){"use strict";o(33),o(47),o(41),o(19),o(18),o(14),o(12),o(20),o(15),o(21);var n=o(2);o(39);function r(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var c={data:function(){var e=this;return{formModalId:"",deleteRecordId:null,editRecordId:null,cloneRecordId:null,showRecordId:null,listFilters:null,filterBy:[],defaultOptions:{hideCreate:!1,headings:{},columnsDropdown:!1,initialPage:1,perPageValues:[],perPage:25,debounce:1e3,filterByColumn:!0,responseAdapter:function(e){var data=e.data;return{data:data.data,count:data.meta.pagination.total}},requestAdapter:function(data){return e.$router.replace({query:l(l({},e.$route.query),{},{page:data.page})}).catch((function(){})),data.query=Object.assign(data.query,e.filterBy),data},sortIcon:{base:"ts-ico",up:"ts-up",down:"ts-down",is:"ts-sort"},sortable:[],filterable:[],customColumns:[],requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},initFilters:{},templates:{},listColumns:{}},listTableRefs:"listTable"}},beforeMount:function(){var e=this.$route.query;this.defaultOptions.initialPage=e.page?parseInt(e.page):1},mounted:function(){this.formModalId="".concat(this.resourceURL,"Table")},computed:{deleteURL:function(){return this.deleteHref||this.resourceURL},editURL:function(){return this.editHref||this.resourceURL},cloneURL:function(){return this.cloneHref||this.resourceURL}},methods:{onSubmit:function(){var e=this;this.editRecordId?this.form.put("".concat(this.editURL,"/").concat(this.editRecordId)).then((function(t){e.handleFormHidden(),e.$emit("formUpdated",t.data)})):this.form.post("".concat(this.resourceURL)).then((function(t){e.handleFormHidden(),e.$emit("formStored",t.data)}))},tableOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultOptions;return Object.assign(t,e)},showDeleteModal:function(e,t){var o=this;this.deleteRecordId=e,this.$swal.fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#d33",cancelButtonColor:"#d7d7d7",confirmButtonText:"Yes, delete it!"}).then((function(e){e.value&&o.doDeleteRecord()}))},doDeleteRecord:function(){var e=this;this.$axios.delete("".concat(this.deleteURL,"/").concat(this.deleteRecordId)).then((function(t){e.refresh(),t.data.message&&e.$toast.success(t.data.message)})).catch((function(t){var o=t.message;t.response&&t.response.data&&t.response.data.message&&(o=t.response.data.message),e.$toast.error(o)}))},refresh:function(){this.$refs[this.listTableRefs].refresh()},showFormModal:function(){this.$bvModal.show(this.formModalId)},handleFormHidden:function(){this.editRecordId=null,this.$bvModal.hide(this.formModalId),this.refresh()},handleShowHidden:function(){this.showRecordId=null},cloneRecord:function(e,t){var o=this;this.$axios.get("".concat(this.cloneURL,"/").concat(e,"?edit=1")).then((function(n){var r=n.data;o.cloneRecordId=e,o.form.cloneReplace(r.data,t),o.showFormModal()})).catch((function(e){o.$toast.error(e.message)}))},editRecord:function(e){var t=this;this.$axios.get("".concat(this.editURL,"/").concat(e,"?edit=1")).then((function(o){var n=o.data;t.editRecordId=e,t.form.replace(n.data),t.showFormModal()})).catch((function(e){t.$toast.error(e.message)}))},replace:function(data,object){for(var e in data)object[e]=data[e];return object},showRecord:function(e){this.showRecordId=e}}},d=c,f=o(723),m=o(719),h=o(293),v=o.n(h),_={mixins:[d],components:{COverlay:m.a,PageSection:f.a},inject:{handleBulkAction:{default:[]}},props:{columns:{required:!0},bulkActionOptions:{required:!1,default:function(){return[]}},resourceURL:{required:!0},deleteHref:{required:!1},editHref:{required:!1},cloneHref:{required:!1},cloneAttr:{required:!1},options:{required:!0},form:{required:!1},formSize:{required:!1,default:""},labels:{required:!0},rowColumns:{required:!1,default:"col-md-12"},nameClickable:{required:!1},compact:{required:!1},onDataLoaded:{required:!1,default:function(){return function(){}}}},name:"CrudIndex",data:function(){return{selectedIds:[]}},beforeMount:function(){this.$eventBus.$on("setSelectedIds",this.setSelectedIds)},methods:{setSelectedIds:function(e){this.selectedIds=e},onModalShow:function(){this.editRecordId||this.cloneRecordId||(this.form.replace(this.form.originalData),this.editRecordId=null,this.cloneRecordId=null,this.form.errors.purge())},onModalHidden:function(){this.form.replace(this.form.originalData),this.editRecordId=null,this.cloneRecordId=null,this.form.errors.purge(),this.$emit("edit-form-closed")},getTableData:function(){var table=this.$refs[this.listTableRefs];return v.a.get(table,"data")},selectAll:function(e){var data=this.getTableData();this.selectedIds=e?data.map((function(e){return e.id})):[],this.$refs.checkbox_header__table.checked=e}},computed:{modalTitle:function(){return(this.editRecordId?"Update ":this.cloneRecordId?"Clone ":"Create ")+this.labels.singularTitle}},watch:{selectedIds:function(e){this.$refs.checkbox_header__table.checked=this.getTableData().length===v.a.uniq(e).length}},beforeDestroy:function(){}},y=(o(724),o(88)),component=Object(y.a)(_,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"crud-index"},[o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-4"},[o("PageSection",{attrs:{title:e.labels.title}})],1),e._v(" "),o("div",{staticClass:"col-md-8 text-right"},[e.bulkActionOptions.length?o("b-dropdown",{staticClass:"m-2",attrs:{id:"dropdown-left",text:"Actions",variant:"primary",size:"sm"}},[e._l(e.bulkActionOptions,(function(t){return[o("b-dropdown-item",{staticStyle:{"text-transform":"capitalize"},attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),e.handleBulkAction(t,e.selectedIds)}}},[e._v("\n            "+e._s(t)+"\n          ")])]}))],2):e._e(),e._v(" "),e._t("extraButtons"),e._v(" "),e.options.hideCreate?e._e():o("b-button",{attrs:{variant:"primary",size:"sm",type:"button"},on:{click:function(t){return t.preventDefault(),e.showFormModal.apply(null,arguments)}}},[o("fa",{attrs:{icon:"plus"}}),e._v("\n        Create\n      ")],1),e._v(" "),o("b-button",{attrs:{variant:"warning",size:"sm",type:"button"},on:{click:function(t){return t.preventDefault(),e.refresh.apply(null,arguments)}}},[o("fa",{attrs:{icon:"redo"}})],1)],2)]),e._v(" "),o("div",{staticClass:"row mt-3"},[o("div",{class:e.rowColumns},[o("v-server-table",{ref:"listTable",attrs:{columns:e.columns,url:e.resourceURL,options:e.tableOptions(e.options)},on:{loaded:e.onDataLoaded},scopedSlots:e._u([{key:"checkbox",fn:function(t){return e.$isAdmin()&&e.bulkActionOptions.length?o("div",{staticClass:"text-center"},[o("b-form-checkbox",{key:t.row.id+"__checkbox_record",attrs:{value:t.row.id},model:{value:e.selectedIds,callback:function(t){e.selectedIds=t},expression:"selectedIds"}})],1):e._e()}},e._l(e.options.customColumns,(function(t){return{key:t,fn:function(o){return[e._t(t,null,{object:o})]}}})),{key:"actions",fn:function(t){return o("div",{},[t.row.edit&&Object.keys(t.row.edit).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Edit"},on:{click:function(o){return o.preventDefault(),e.editRecord(t.row.id)}}},[o("fa",{attrs:{icon:"edit"}})],1):e._e(),e._v(" "),t.row.delete&&Object.keys(t.row.delete).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"text-danger",attrs:{title:"Delete"},on:{click:function(o){return o.preventDefault(),e.showDeleteModal(t.row.id,t.index)}}},[o("fa",{attrs:{icon:"trash"}})],1):e._e(),e._v(" "),t.row.clone&&Object.keys(t.row.clone).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"text-warning",attrs:{title:"Clone"},on:{click:function(o){return o.preventDefault(),e.cloneRecord(t.row.id,e.cloneAttr)}}},[o("fa",{attrs:{icon:"clone"}})],1):e._e(),e._v(" "),e._t("extra-actions",null,{object:t.row})],2)}}],null,!0)},[o("div",{staticClass:"text-center",attrs:{slot:"h__checkbox"},slot:"h__checkbox"},[e.$isAdmin()&&e.bulkActionOptions.length?o("div",{staticClass:"custom-control custom-checkbox"},[o("input",{key:"checkbox_header__table",ref:"checkbox_header__table",staticClass:"custom-control-input",attrs:{type:"checkbox","true-value":1,"false-value":0,id:"checkbox_header__table"},on:{change:function(t){return e.selectAll(t.target.checked)}}}),e._v(" "),o("label",{staticClass:"custom-control-label",attrs:{for:"checkbox_header__table"}})]):e._e()])])],1)]),e._v(" "),o("b-modal",{attrs:{"hide-footer":"",size:e.formSize,"content-class":"shadow",title:e.modalTitle,"no-close-on-backdrop":"",id:e.formModalId},on:{hidden:e.onModalHidden,show:e.onModalShow}},[e.form?o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-12"},[o("c-overlay",{attrs:{show:!e.form.isReady}},[o("form",{on:{submit:function(t){return t.preventDefault(),e.onSubmit()}}},[e._t("default",null,{form:e.form}),e._v(" "),o("div",{staticClass:"text-right"},[o("button",{staticClass:"btn btn-sm btn-primary",attrs:{type:"submit",disabled:!e.form.isReady}},[e._v("\n                "+e._s(e.modalTitle)+"\n              ")]),e._v(" "),o("button",{staticClass:"btn btn-sm btn-secondary",attrs:{disabled:!e.form.isReady},on:{click:function(t){return t.preventDefault(),e.$bvModal.hide(e.formModalId)}}},[e._v("Close\n              ")])])],2)])],1)]):e._e()])],1)}),[],!1,null,null,null);t.a=component.exports},723:function(e,t,o){"use strict";var n={name:"PageSection",props:{title:{required:!0}}},r=o(88),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-12"},[o("div",{staticClass:"border-bottom mb-3"},[o("h4",[e._v(e._s(e.title))]),e._v(" "),e._t("default")],2)])])}),[],!1,null,"019ca8fe",null);t.a=component.exports},724:function(e,t,o){"use strict";o(720)},725:function(e,t,o){var n=o(94)(!1);n.push([e.i,".form-modal-header{padding:0!important}",""]),e.exports=n},726:function(e,t,o){"use strict";var n=o(55);o(53);t.a={methods:{yesNoOptions:function(){return[{id:!1,text:"No"},{id:!0,text:"Yes"}]},objectAsQueryString:function(e){var p,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[];for(p in e)if(e.hasOwnProperty(p)){var r=t?t+"["+p+"]":p,l=e[p];o.push(null!==l&&"object"===Object(n.a)(l)?this.objectAsQueryString(l,r):encodeURIComponent(r)+"="+encodeURIComponent(l))}return o.join("&")}}}},727:function(e,t,o){var content=o(730);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(95).default)("1556abca",content,!0,{sourceMap:!1})},729:function(e,t,o){"use strict";o(727)},730:function(e,t,o){var n=o(94)(!1);n.push([e.i,".vs__dropdown-option{padding:3px 2px 3px 10px}.vs__dropdown-option:not(.vs__dropdown-option--disabled){padding-left:20px!important}.vs__search{color:#d3d3d3!important}.selected-group{overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important;position:absolute;top:-9px;left:-5px;color:grey}.selected-group.multi{background-color:var(--vs-selected-bg);font-size:9px!important;top:-7px;left:-5px}.selected-option-group{position:relative}.selected-option .has-group{top:12px}",""]),e.exports=n},808:function(e,t,o){"use strict";o.r(t);var n=o(55),r=(o(41),o(33),o(72),o(14),o(12),o(15),o(722)),l=o(726),c={name:"index",components:{CoralsSelect:o(295).default,CRUDIndex:r.a},middleware:"Authorization",mixins:[l.a],provide:function(){return{handleBulkAction:this.handleBulkAction}},data:function(){var e=this;return{active_options:1,filePath:null,resourceUrl:"timesheet/expenses",labels:{title:"Expenses",singularTitle:"Expense"},cloneAttr:{category_id:null,project_id:null,client_id:null,notes:null,amount:null,expense_date:new Date,billable:null,status:null,currency:null,payment_method:null},options:{listColumns:{billable:this.yesNoOptions(),status:[],payment_method:[],category_id:[],user_id:[]},customColumns:["status","project","client","payment_method","file","user_id","category_id","invoice"],filterable:["status","payment_method","expense_date","category_id","project","client","notes","user_id","invoice"],hideCreate:this.$cant("create","expense"),headings:{payment_method:"Payment Method",category_id:"Category",user_id:"User"}},form:this.$form({id:null,category_id:"",project_id:"",client_id:"",user_id:"",notes:"",amount:"",status:"paid",file:null,clear:0,expense_date:new Date,billable:0,currency:"usd",payment_method:"paypal"},{fetchFormDataURL:"/timesheet/expenses/get-form-data",model:"expense",loadFormDataCallBack:function(){e.options.listColumns.status=e.getOptions(e.form.formData.status_options);var t=JSON.parse(JSON.stringify(e.form.formData.categories));t.shift(),e.options.listColumns.category_id=e.getOptions(t),e.options.listColumns.payment_method=e.getOptions(e.form.formData.payment_method_options),e.options.listColumns.user_id=e.getOptions(e.form.formData.users)}})}},methods:{generateInvoiceForExpense:function(e){var t=this;this.$swal.fire({title:"Are you sure?",text:"You wont to generate invoice for this expenses?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#14A44D",cancelButtonColor:"#d7d7d7",confirmButtonText:"Yes, Generate it!"}).then((function(o){o.value&&t.$axios.post("timesheet/expenses/".concat(e.id,"/generate-invoice")).then((function(e){var o=e.data.data.level,n=e.data.data.message;"success"===o?t.$toast.success(n):t.$toast.error(n),t.$refs.expensesTable.refresh()}))}))},getOptions:function(e){var t=[];return t.push({id:"",text:"All"}),e.map((function(e){var o,label=e.label.split(",");t.push({id:null!==(o=e.id)&&void 0!==o?o:e.value,text:label[0]})})),t},getCategoriesOrProjectsOptions:function(e){var t=[],o=[],n=[];return this.active_options?(n=e.filter((function(object){return(1===object.is_active||"active"===object.status)&&!0!==object.group})),o=e.filter((function(e){return!0===e.group&&"active"===e.status}))):(n=e.filter((function(object){return!0!==object.group})),o=e.filter((function(e){return!0===e.group}))),o.forEach((function(e){e.is_group_empty=!0,t.push(e),n.filter((function(o){e.code===o.group&&(e.is_group_empty=!1,t.push(o))}))})),t},handleBulkAction:function(e,t){var o=this;this.$bvModal.msgBoxConfirm("Are you sure?",{size:"md",buttonSize:"sm",okVariant:"danger",footerClass:"p-2",hideHeaderClose:!1,centered:!0}).then((function(n){!0===n&&o.$axios.post("timesheet/expenses/bulk-action",{selection:t,action:e}).then((function(e){var t=e.data.data.level,n=e.data.data.message;"success"===t?o.$toast.success(n):o.$toast.error(n),o.$eventBus.$emit("setSelectedIds",[]),o.$refs.expensesTable.refresh()})).catch((function(e){o.$toast.error(e.response.data.message)}))})).catch((function(e){}))}},watch:{"form.id":function(){this.filePath=null,null!==this.form.file&&"object"!==Object(n.a)(this.form.file)&&(this.filePath=this.form.file,this.form.file=null)}},computed:{columns:function(){var e=[];return this.$isAdmin()&&this.bulkActionOptions.length&&e.push("checkbox"),e.push("expense_date","user_id","amount","file","status","payment_method","category_id","project","client","notes","invoice","actions"),this.$notAdmin()&&e.pop(),e},bulkActionOptions:function(){var e=["delete","paid","pending","voided"];return this.$notAdmin()&&e.pop(),e}}},d=o(88),component=Object(d.a)(c,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("CRUDIndex",{ref:"expensesTable",attrs:{columns:e.columns,resourceURL:e.resourceUrl,options:e.options,form:e.form,"bulk-action-options":e.bulkActionOptions,labels:e.labels,cloneAttr:e.cloneAttr,"form-size":"lg"},scopedSlots:e._u([{key:"user_id",fn:function(t){var object=t.object;return[e._v("\n      "+e._s(object.row.user)+"\n    ")]}},{key:"project",fn:function(t){var object=t.object;return[o("nuxt-link",{attrs:{to:"/clients/"+object.row.client_id+"/projects/"+object.row.project_id}},[e._v("\n        "+e._s(object.row.project)+"\n      ")])]}},{key:"client",fn:function(t){var object=t.object;return[o("nuxt-link",{attrs:{to:"/clients/"+object.row.client_id}},[e._v("\n        "+e._s(object.row.client)+"\n      ")])]}},{key:"payment_method",fn:function(t){var object=t.object;return[e._v("\n      "+e._s(object.row.payment_method)+"\n    ")]}},{key:"category_id",fn:function(t){var object=t.object;return[e._v("\n      "+e._s(object.row.category)+"\n    ")]}},{key:"file",fn:function(t){var object=t.object;return[object.row.file?o("a",{attrs:{href:object.row.file,target:"_blank"}},[e._v("File")]):o("span",[e._v("-")])]}},{key:"status",fn:function(t){var object=t.object;return[o("span",{domProps:{innerHTML:e._s(object.row.status)}})]}},{key:"invoice",fn:function(t){var object=t.object;return[object.row.invoice_id&&"-"!==object.row.invoice_id?o("nuxt-link",{attrs:{to:"/invoices/"+object.row.invoice_id}},[e._v("\n        "+e._s(object.row.invoice_code)+"\n      ")]):object.row.billable?o("span",[e._v("\n        Not Invoiced\n      ")]):o("span",[e._v("\n        -\n      ")])]}},{key:"default",fn:function(t){var form=t.form;return[form.id?e._e():o("div",{},[o("div",{staticClass:"custom-control custom-checkbox mb-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.active_options,expression:"active_options"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"active_options"},domProps:{checked:Array.isArray(e.active_options)?e._i(e.active_options,null)>-1:e.active_options},on:{change:function(t){var o=e.active_options,n=t.target,r=!!n.checked;if(Array.isArray(o)){var l=e._i(o,null);n.checked?l<0&&(e.active_options=o.concat([null])):l>-1&&(e.active_options=o.slice(0,l).concat(o.slice(l+1)))}else e.active_options=r}}}),e._v(" "),o("label",{staticClass:"custom-control-label",attrs:{for:"active_options"}},[o("small",[e._v("Show Active Options")])])])]),e._v(" "),o("div",{staticClass:"row sm-gutters"},[o("div",{staticClass:"col-md-5"},[o("corals-datepicker",{attrs:{form:form,required:"",field:"expense_date",label:"Expense Date"}})],1),e._v(" "),o("div",{staticClass:"col-md-4"},[o("corals-input",{attrs:{form:form,type:"number",field:"amount",step:"0.1",required:"",min:"0"}})],1),e._v(" "),o("div",{staticClass:"col-md-3"},[o("corals-select",{attrs:{form:form,field:"currency",options:form.getFormData("currency_options"),required:""}})],1)]),e._v(" "),o("div",{staticClass:"row sm-gutters"},[o("div",{staticClass:"col-md-5"},[o("corals-select",{attrs:{form:form,required:"",label:"Category",field:"category_id",options:e.getCategoriesOrProjectsOptions(form.getFormData("categories"))}}),e._v(" "),o("corals-checkbox",{attrs:{field:"billable",form:form,description:"It will be included in the next client invoice when project selected"}})],1),e._v(" "),o("div",{staticClass:"col-md-7"},[o("corals-textarea",{attrs:{field:"notes",required:"",rows:"3",form:form}})],1)]),e._v(" "),o("div",{staticClass:"row sm-gutters"},[o("div",{staticClass:"col-md-5"},[o("corals-select",{attrs:{form:form,label:"Project",field:"project_id",options:e.getCategoriesOrProjectsOptions(form.getFormData("projects"))}})],1),e._v(" "),o("div",{staticClass:"col-md-7"},[o("corals-select",{attrs:{form:form,label:"User",field:"user_id",options:form.getFormData("users")}})],1)]),e._v(" "),o("div",{staticClass:"row sm-gutters"},[o("div",{staticClass:"col-md-6"},[o("corals-radio",{attrs:{form:form,label:"Payment Method",field:"payment_method",list:form.getFormData("payment_method_options"),required:""}})],1),e._v(" "),o("div",{staticClass:"col-md-6"},[o("corals-radio",{attrs:{form:form,field:"status",required:"",label:"Status",list:form.getFormData("status_options")}})],1)]),e._v(" "),o("div",{staticClass:"row sm-gutters"},[o("div",{staticClass:"col-md-6"},[o("label",[e._v("Attachment")]),e._v(" "),e.filePath?o("div",[o("a",{attrs:{href:e.filePath,target:"_blank"}},[e._v("Show File")]),e._v(" "),o("corals-checkbox",{attrs:{field:"clear",form:form}})],1):e._e(),e._v(" "),o("div",{staticClass:"mb-2"},[o("b-form-file",{attrs:{placeholder:"Upload File..."},model:{value:form.file,callback:function(t){e.$set(form,"file",t)},expression:"form.file"}}),e._v(" "),e.filePath&&form.file?o("span",{staticClass:"text-muted small"},[e._v("Note: when a new file is uploaded, the existing file is automatically deleted")]):e._e()],1)])])]}},{key:"extra-actions",fn:function(t){var object=t.object;return[object.generateInvoice?o("b-link",{attrs:{title:"Generate an Invoice"},on:{click:function(t){return t.preventDefault(),e.generateInvoiceForExpense(object)}}},[o("fa",{staticClass:"text-success",attrs:{icon:"file-invoice"}})],1):e._e()]}}])})],1)}),[],!1,null,"af2948d0",null);t.default=component.exports}}]);

Spamworldpro Mini