![]() 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/ |
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{719:function(t,e,r){"use strict";var o={name:"COverlay",props:{show:{default:!1,type:Boolean}}},l=r(88),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("b-overlay",{attrs:{show:t.show,rounded:"sm","spinner-variant":"primary",variant:"transparent",blur:"1px"}},[t._t("default")],2)}),[],!1,null,"5a577948",null);e.a=component.exports},721:function(t,e,r){"use strict";var o={name:"PageHeader",props:{title:{required:!0}}},l=r(88),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[r("div",{staticClass:"border-bottom mb-3"},[r("h3",[t._v(t._s(t.title))])])]),t._v(" "),r("div",{staticClass:"col-md-6"},[t._t("default")],2)])}),[],!1,null,"0f95d94e",null);e.a=component.exports},728:function(t,e,r){"use strict";var o={name:"BaseReportTable",components:{},props:{title:{required:!0},data:{required:!0},form:{required:!0}},methods:{getRowClass:function(t,e){return"header"===e?"bg-secondary text-white":"footer"===e?"bg-info text-white":void 0}}},l=r(88),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h6",[t._v(t._s(t.title))]),t._v(" "),t.data?r("div",{staticClass:"table-responsive"},[r("table",{staticClass:"table table-striped table-condensed"},t._l(t.data,(function(e,o){return r("tr",{key:o,class:t.getRowClass(e,o)},["no_data"===o?[r("td",{staticClass:"text-center",attrs:{colspan:Object.keys(t.data.header).length}},[t._v("\n No Data Found\n ")])]:t._e(),t._v(" "),t._l(e,(function(e,o){return["nav_to"===e.code?r("td",[r("nuxt-link",{attrs:{to:e.attr.route+"?period="+t.form.period+(t.form.client_name?"&client="+t.form.client_name:"")+(t.form.project_name?"&project="+t.form.project_name:"")}},[t._v("\n "+t._s(e.attr.label)+"\n ")])],1):r("td",[t._v("\n "+t._s(e)+"\n ")])]}))],2)})),0)]):r("b-skeleton-table",{attrs:{rows:4,columns:4,"table-props":{bordered:!0,striped:!0}}})],1)}),[],!1,null,null,null);e.a=component.exports},736:function(t,e,r){"use strict";var o={name:"ActivitiesReport",components:{BaseReportTable:r(728).a},props:{form:{required:!0},url:{required:!0}},data:function(){return{billable_activities_for_client_report:null,non_billable_activities_for_client_report:null}},mounted:function(){this.getActivitiesDataForReport()},methods:{getActivitiesDataForReport:function(){var t=this,e=this.url;this.form.post(e).then((function(e){var r=e.data;t.billable_activities_for_client_report=r.data.billable_activities,t.non_billable_activities_for_client_report=r.data.non_billable_activities}))}}},l=r(88),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[r("BaseReportTable",{attrs:{title:"Billable Per Activity",data:t.billable_activities_for_client_report,form:t.form}})],1),t._v(" "),r("div",{staticClass:"col-md-6"},[r("BaseReportTable",{attrs:{title:"Non Billable Per Activity",data:t.non_billable_activities_for_client_report,form:t.form}})],1)])}),[],!1,null,null,null);e.a=component.exports},743:function(t,e,r){"use strict";var o={name:"ProjectsReport",components:{BaseReportTable:r(728).a},props:{form:{required:!0},url:{required:!0}},data:function(){return{billable_projects_report:null,non_billable_projects_report:null}},mounted:function(){this.getActivitiesDataForReport()},methods:{getActivitiesDataForReport:function(){var t=this,e=this.url;this.form.post(e).then((function(e){var r=e.data;t.billable_projects_report=r.data.billable_projects_report,t.non_billable_projects_report=r.data.non_billable_projects_report}))}}},l=r(88),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[r("BaseReportTable",{attrs:{title:"Billable Activities Per Project",data:t.billable_projects_report,form:t.form}})],1),t._v(" "),r("div",{staticClass:"col-md-6"},[r("BaseReportTable",{attrs:{title:"Non Billable Activities Per Project",data:t.non_billable_projects_report,form:t.form}})],1)])}),[],!1,null,null,null);e.a=component.exports},803:function(t,e,r){"use strict";r.r(e);var o=r(62),l=(r(54),r(136),r(719)),n=r(721),c=r(743),d=r(736),_={name:"profile",components:{COverlay:l.a,PageHeader:n.a,ProjectsReport:c.a,ActivitiesReport:d.a},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:t.datePeriod();case 1:case"end":return e.stop()}}),e)})))()},data:function(){var t=this.$auth.user,e=t.name,r=t.last_name,o=t.email,l=t.birth_date,n=t.birth_date_visible;return{showUserReport:!1,periodOptions:{currentWeek:"Current Week",currentMonth:"Current Month",previousMonth:"Previous Month",currentYear:"Current Year",previousYear:"Previous Year",custom:"Custom"},form:this.$form({name:e,last_name:r,email:o,birth_date:l,password_confirmation:"",password:"",birth_date_visible:n},{resetOnSuccess:!1})}},methods:{submit:function(){var t=this;this.form.post("profile").then((function(){t.$auth.fetchUser()}))}}},m=r(88),component=Object(m.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("page-header",{attrs:{title:"Profile"}}),t._v(" "),r("div",{staticClass:"container m-0"},[r("c-overlay",{attrs:{show:!t.form.isReady}},[r("form",{on:{submit:function(e){return e.preventDefault(),t.submit()}}},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-4"},[r("corals-input",{attrs:{form:t.form,field:"name",required:""}})],1),t._v(" "),r("div",{staticClass:"col-md-4"},[r("corals-input",{attrs:{form:t.form,field:"last_name",required:""}})],1),t._v(" "),r("div",{staticClass:"col-md-4"},[r("corals-input",{attrs:{type:"email",form:t.form,field:"email",required:""}})],1)]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-4"},[r("corals-input",{attrs:{type:"password",form:t.form,field:"password",autocomplete:"new-password"}})],1),t._v(" "),r("div",{staticClass:"col-md-4"},[r("corals-input",{attrs:{type:"password",form:t.form,field:"password_confirmation",autocomplete:"new-password"}})],1)]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[r("corals-checkbox",{attrs:{field:"birth_date_visible",form:t.form}})],1)]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-4"},[r("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit"}},[t._v("Save")])])])])])],1)],1)}),[],!1,null,"3a8279ae",null);e.default=component.exports}}]);