/home/techb158/ileadtechnology.com/SSM/public/js/communication/meeting
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/communication/meeting/index.js (16014B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{DzyN:function(e,t,s){"use strict";var n={props:["meeting"]},i=s("KHd+"),a=Object(i.a)(n,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",["selected_course"==e.meeting.audience?[e._v("\n "+e._s(e.trans("academic.course"))+" "),s("br"),e._v(" "),s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},e._l(e.meeting.courses,(function(t){return s("li",[e._v(e._s(t.name+"("+t.course_group.name+")"))])})),0)]:"selected_batch"==e.meeting.audience?[e._v("\n "+e._s(e.trans("academic.batch"))+" "),s("br"),e._v(" "),s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},e._l(e.meeting.batches,(function(t){return s("li",[e._v(e._s(t.name+"("+t.course.name+")"))])})),0)]:"selected_department"==e.meeting.audience?[e._v("\n "+e._s(e.trans("employee.department"))+" "),s("br"),e._v(" "),s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},e._l(e.meeting.departments,(function(t){return s("li",[e._v(e._s(t.name))])})),0)]:"selected_employee_category"==e.meeting.audience?[e._v("\n "+e._s(e.trans("employee.category"))+" "),s("br"),e._v(" "),s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},e._l(e.meeting.employee_categorys,(function(t){return s("li",[e._v(e._s(t.name))])})),0)]:e._e(),e._v(" "),e.meeting.options.individual_students&&e.meeting.options.individual_students.length?[s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},[s("li",[e._v(e._s(e.trans("communication.count_individual_students",{attribute:e.meeting.options.individual_students.length})))])])]:e._e(),e._v(" "),e.meeting.options.individual_employees&&e.meeting.options.individual_employees.length?[s("ul",{staticStyle:{"list-style":"none",padding:"0",margin:"0"}},[s("li",[e._v(e._s(e.trans("communication.count_individual_employees",{attribute:e.meeting.options.individual_employees.length})))])])]:e._e()],2)}),[],!1,null,null,null);t.a=a.exports},fEWh:function(e,t,s){"use strict";s.r(t);var n=s("6bgf"),i=s("DzyN"),a={components:{meetingForm:n.a,meetingAudience:i.a},data:function(){return{meetings:{total:0,data:[]},filter:{sort_by:"date",order:"desc",keyword:"",course_id:[],batch_id:[],department_id:[],employee_category_id:[],page_length:helper.getConfig("page_length")},orderByOptions:[{value:"created_at",translation:i18n.general.created_at},{value:"date",translation:i18n.communication.meeting_date},{value:"title",translation:i18n.communication.meeting_title}],courses:[],selected_courses:null,batches:[],selected_batches:null,departments:[],selected_departments:null,employee_categories:[],selected_employee_categories:null,showFilterPanel:!1,showCreatePanel:!1,help_topic:""}},mounted:function(){helper.hasPermission("list-meeting")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getMeetings(),helper.showDemoNotification(["communication"])},methods:{hasPermission:function(e){return helper.hasPermission(e)},getEmployeeName:function(e){return helper.getEmployeeName(e)},getEmployeeDesignationOnDate:function(e,t){return helper.getEmployeeDesignationOnDate(e,t)},getMeetings:function(e){var t=this,s=this.$loading.show();"number"!=typeof e&&(e=1);var n=helper.getFilterURL(this.filter);axios.get("/api/meeting?page="+e+n).then((function(e){t.meetings=e.meetings,t.courses=e.filters.courses,t.batches=e.filters.batches,t.departments=e.filters.departments,t.employee_categories=e.filters.employee_categories,s.hide()})).catch((function(e){s.hide(),helper.showErrorMsg(e)}))},showMeeting:function(e){this.$router.push("/communication/meeting/"+e.uuid)},editMeeting:function(e){this.$router.push("/communication/meeting/"+e.uuid+"/edit")},confirmDelete:function(e){var t=this;return function(s){return t.deleteMeeting(e)}},deleteMeeting:function(e){var t=this,s=this.$loading.show();axios.delete("/api/meeting/"+e.uuid).then((function(e){toastr.success(e.message),t.getMeetings(),s.hide()})).catch((function(e){s.hide(),helper.showErrorMsg(e)}))},getConfig:function(e){return helper.getConfig(e)},onCourseSelect:function(e){this.filter.course_id.push(e.id)},onCourseRemove:function(e){this.filter.course_id.splice(this.filter.course_id.indexOf(e.id),1)},onBatchSelect:function(e){this.filter.batch_id.push(e.id)},onBatchRemove:function(e){this.filter.batch_id.splice(this.filter.batch_id.indexOf(e.id),1)},onDepartmentSelect:function(e){this.filter.department_id.push(e.id)},onDepartmentRemove:function(e){this.filter.department_id.splice(this.filter.department_id.indexOf(e.id),1)},onEmployeeCategorySelect:function(e){this.filter.employee_category_id.push(e.id)},onEmployeeCategoryRemove:function(e){this.filter.employee_category_id.splice(this.filter.employee_category_id.indexOf(e.id),1)}},filters:{moment:function(e){return helper.formatDate(e)},momentDateTime:function(e){return helper.formatDateTime(e)},momentTime:function(e){return helper.formatTime(e)}},watch:{"filter.sort_by":function(e){this.getMeetings()},"filter.order":function(e){this.getMeetings()},"filter.page_length":function(e){this.getMeetings()}},computed:{authToken:function(){return helper.getAuthToken()},isDemo:function(){return!helper.getConfig("mode")}}},o=s("KHd+"),l=Object(o.a)(a,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"page-titles"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("h3",{staticClass:"text-themecolor"},[e._v(e._s(e.trans("communication.meeting"))+" \n "),e.meetings.total?s("span",{staticClass:"card-subtitle d-none d-sm-inline"},[e._v(e._s(e.trans("general.total_result_found",{count:e.meetings.total,from:e.meetings.from,to:e.meetings.to})))]):s("span",{staticClass:"card-subtitle d-none d-sm-inline"},[e._v(e._s(e.trans("general.no_result_found")))])])]),e._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"action-buttons pull-right"},[e.meetings.total&&!e.showCreatePanel&&e.hasPermission("create-meeting")?s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.trans("general.add_new"),expression:"trans('general.add_new')"}],staticClass:"btn btn-info btn-sm",on:{click:function(t){e.showCreatePanel=!e.showCreatePanel}}},[s("i",{staticClass:"fas fa-plus"}),e._v(" "),s("span",{staticClass:"d-none d-sm-inline"},[e._v(e._s(e.trans("communication.add_new_meeting")))])]):e._e(),e._v(" "),e.showFilterPanel?e._e():s("button",{staticClass:"btn btn-info btn-sm",on:{click:function(t){e.showFilterPanel=!e.showFilterPanel}}},[s("i",{staticClass:"fas fa-filter"}),e._v(" "),s("span",{staticClass:"d-none d-sm-inline"},[e._v(e._s(e.trans("general.filter")))])]),e._v(" "),s("sort-by",{attrs:{"order-by-options":e.orderByOptions,"sort-by":e.filter.sort_by,order:e.filter.order},on:{updateSortBy:function(t){e.filter.sort_by=t},updateOrder:function(t){e.filter.order=t}}}),e._v(" "),s("help-button",{on:{clicked:function(t){e.help_topic="meeting"}}})],1)])])]),e._v(" "),s("div",{staticClass:"container-fluid"},[s("transition",{attrs:{name:"fade"}},[e.showFilterPanel?s("div",{staticClass:"card card-form"},[s("div",{staticClass:"card-body"},[s("h4",{staticClass:"card-title"},[e._v(e._s(e.trans("general.filter"))+"\n ")]),e._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[e._v(e._s(e.trans("academic.course")))]),e._v(" "),s("v-select",{attrs:{label:"name","track-by":"id","group-values":"courses","group-label":"course_group","group-select":!1,name:"course_id",id:"course_id",options:e.courses,placeholder:e.trans("academic.select_course"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:e.selected_courses},on:{select:e.onCourseSelect,remove:e.onCourseRemove},model:{value:e.selected_courses,callback:function(t){e.selected_courses=t},expression:"selected_courses"}},[e.courses.length?e._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[e._v("\n "+e._s(e.trans("general.no_option_found"))+"\n ")])])],1)]),e._v(" "),s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[e._v(e._s(e.trans("academic.batch")))]),e._v(" "),s("v-select",{attrs:{label:"name","track-by":"id","group-values":"batches","group-label":"course_group","group-select":!1,name:"batch_id",id:"batch_id",options:e.batches,placeholder:e.trans("academic.select_batch"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:e.selected_batches},on:{select:e.onBatchSelect,remove:e.onBatchRemove},model:{value:e.selected_batches,callback:function(t){e.selected_batches=t},expression:"selected_batches"}},[e.batches.length?e._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[e._v("\n "+e._s(e.trans("general.no_option_found"))+"\n ")])])],1)]),e._v(" "),s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[e._v(e._s(e.trans("employee.department")))]),e._v(" "),s("v-select",{attrs:{label:"name","track-by":"id",name:"department_id",id:"department_id",options:e.departments,placeholder:e.trans("employee.select_department"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:e.selected_departments},on:{select:e.onDepartmentSelect,remove:e.onDepartmentRemove},model:{value:e.selected_departments,callback:function(t){e.selected_departments=t},expression:"selected_departments"}},[e.departments.length?e._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[e._v("\n "+e._s(e.trans("general.no_option_found"))+"\n ")])])],1)]),e._v(" "),s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[e._v(e._s(e.trans("employee.category")))]),e._v(" "),s("v-select",{attrs:{label:"name","track-by":"id",name:"employee_category_id",id:"employee_category_id",options:e.employee_categories,placeholder:e.trans("employee.select_category"),multiple:!0,"close-on-select":!1,"clear-on-select":!1,"hide-selected":!0,selected:e.selected_employee_categories},on:{select:e.onEmployeeCategorySelect,remove:e.onEmployeeCategoryRemove},model:{value:e.selected_employee_categories,callback:function(t){e.selected_employee_categories=t},expression:"selected_employee_categories"}},[e.employee_categories.length?e._e():s("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[e._v("\n "+e._s(e.trans("general.no_option_found"))+"\n ")])])],1)]),e._v(" "),s("div",{staticClass:"col-12 col-sm-3"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[e._v(e._s(e.trans("communication.meeting_keyword")))]),e._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.filter.keyword,expression:"filter.keyword"}],staticClass:"form-control",attrs:{name:"keyword"},domProps:{value:e.filter.keyword},on:{input:function(t){t.target.composing||e.$set(e.filter,"keyword",t.target.value)}}})])])]),e._v(" "),s("div",{staticClass:"card-footer text-right"},[s("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(t){e.showFilterPanel=!1}}},[e._v(e._s(e.trans("general.cancel")))]),e._v(" "),s("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"button"},on:{click:e.getMeetings}},[e._v(e._s(e.trans("general.filter")))])])])]):e._e()]),e._v(" "),e.hasPermission("create-meeting")?s("transition",{attrs:{name:"fade"}},[e.showCreatePanel?s("div",{staticClass:"card card-form"},[s("div",{staticClass:"card-body"},[s("h4",{staticClass:"card-title"},[e._v(e._s(e.trans("communication.add_new_meeting")))]),e._v(" "),s("meeting-form",{on:{completed:e.getMeetings,cancel:function(t){e.showCreatePanel=!e.showCreatePanel}}})],1)]):e._e()]):e._e(),e._v(" "),s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[e.isDemo?s("p",{staticClass:"alert alert-info m-4"},[e._v(e._s(e.trans("communication.demo_mode_meeting_description")))]):e._e(),e._v(" "),e.meetings.total?s("div",{staticClass:"table-responsive"},[s("table",{staticClass:"table table-sm"},[s("thead",[s("tr",[s("th",[e._v(e._s(e.trans("communication.meeting_title")))]),e._v(" "),s("th",[e._v(e._s(e.trans("communication.meeting_duration")))]),e._v(" "),s("th",[e._v(e._s(e.trans("communication.meeting_audience")))]),e._v(" "),s("th",[e._v(e._s(e.trans("communication.meeting_created_by")))]),e._v(" "),s("th",[e._v(e._s(e.trans("general.created_at")))]),e._v(" "),s("th",{staticClass:"table-option"},[e._v(e._s(e.trans("general.action")))])])]),e._v(" "),s("tbody",e._l(e.meetings.data,(function(t){return s("tr",[s("td",[e._v("\n "+e._s(t.title)+"\n "),t.is_live?s("span",{staticClass:"badge badge-success"},[e._v(e._s(e.trans("communication.live")))]):e._e(),e._v(" "),t.is_expired?s("span",{staticClass:"badge badge-danger"},[e._v(e._s(e.trans("communication.expired")))]):e._e()]),e._v(" "),s("td",[e._v("\n "+e._s(e._f("moment")(t.date))+" "),t.start_time?s("span",[e._v(e._s(e._f("momentTime")(t.start_time)))]):e._e(),e._v(" "),t.end_time?s("span",[e._v(" "+e._s(e.trans("general.to"))+" \n "+e._s(e._f("momentTime")(t.end_time)))]):e._e()]),e._v(" "),s("td",[s("meeting-audience",{attrs:{meeting:t}})],1),e._v(" "),s("td",[e._v(e._s(e.getEmployeeName(t.user.employee))+" "),s("br"),e._v(" "+e._s(e.getEmployeeDesignationOnDate(t.user.employee,t.date)))]),e._v(" "),s("td",[e._v(e._s(e._f("momentDateTime")(t.created_at)))]),e._v(" "),s("td",{staticClass:"table-option"},[s("div",{staticClass:"btn-group"},[s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.trans("general.view_detail"),expression:"trans('general.view_detail')"}],staticClass:"btn btn-success btn-sm",on:{click:function(s){return s.preventDefault(),e.showMeeting(t)}}},[s("i",{staticClass:"fas fa-arrow-circle-right"})]),e._v(" "),e.hasPermission("edit-meeting")?s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.trans("communication.edit_meeting"),expression:"trans('communication.edit_meeting')"}],staticClass:"btn btn-info btn-sm",on:{click:function(s){return s.preventDefault(),e.editMeeting(t)}}},[s("i",{staticClass:"fas fa-edit"})]):e._e(),e._v(" "),e.hasPermission("delete-meeting")?s("button",{directives:[{name:"confirm",rawName:"v-confirm",value:{ok:e.confirmDelete(t)},expression:"{ok: confirmDelete(meeting)}"},{name:"tooltip",rawName:"v-tooltip",value:e.trans("communication.delete_meeting"),expression:"trans('communication.delete_meeting')"}],key:t.id,staticClass:"btn btn-danger btn-sm"},[s("i",{staticClass:"fas fa-trash"})]):e._e()])])])})),0)])]):e._e(),e._v(" "),e.meetings.total?e._e():s("module-info",{attrs:{module:"communication",title:"meeting_module_title",description:"meeting_module_description",icon:"list"}},[s("div",{attrs:{slot:"btn"},slot:"btn"},[!e.showCreatePanel&&e.hasPermission("create-meeting")?s("button",{staticClass:"btn btn-info btn-md",on:{click:function(t){e.showCreatePanel=!e.showCreatePanel}}},[s("i",{staticClass:"fas fa-plus"}),e._v(" "+e._s(e.trans("general.add_new")))]):e._e()])]),e._v(" "),s("pagination-record",{attrs:{"page-length":e.filter.page_length,records:e.meetings},on:{"update:pageLength":function(t){return e.$set(e.filter,"page_length",t)},"update:page-length":function(t){return e.$set(e.filter,"page_length",t)},updateRecords:e.getMeetings}})],1)])],1),e._v(" "),s("right-panel",{attrs:{topic:e.help_topic}})],1)}),[],!1,null,null,null);t.default=l.exports}}]);
//# sourceMappingURL=index.js.map?id=5457f86a53837838e50b