(self.webpackChunkInstiKit=self.webpackChunkInstiKit||[]).push([[4601],{60877:(t,s,e)=>{"use strict";e.r(s),e.d(s,{default:()=>l});const a={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{syllabus:[],attachments:[]}},methods:{get:function(){var t=this,s=this.$loading.show();axios.get("/api/syllabus/"+this.uuid).then((function(e){t.syllabus=e.syllabus,t.attachments=e.attachments,s.hide()})).catch((function(t){s.hide(),helper.showErrorMsg(t)}))},getEmployeeName:function(t){return helper.getEmployeeName(t)},getEmployeeDesignation:function(t,s){return helper.getEmployeeDesignation(t,s)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)}}};const l=(0,e(51900).Z)(a,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("transition",{attrs:{name:"modal"}},[e("div",{staticClass:"modal-mask"},[e("div",{staticClass:"modal-wrapper"},[e("div",{staticClass:"modal-container modal-lg"},[t.syllabus.id?e("div",{staticClass:"modal-header"},[t._t("header",(function(){return[e("span",[t._v(t._s(t.syllabus.title)+" "+t._s(t.syllabus.subject.name+" ("+t.syllabus.subject.code+")")+" "+t._s(t.syllabus.subject.batch.course.name+" "+t.syllabus.subject.batch.name)+" ")]),t._v(" "),e("span",{staticClass:"float-right pointer",on:{click:function(s){return t.$emit("close")}}},[t._v("x")])]}))],2):t._e(),t._v(" "),t.syllabus.id?e("div",{staticClass:"modal-body"},[t._t("body",(function(){return[e("h6",{staticClass:"card-title"},[t.syllabus.employee?e("p",{staticClass:"pull-right"},[e("strong",[t._v(t._s(t.trans("resource.syllabus_created_by"))+":")]),t._v(" "+t._s(t.getEmployeeName(t.syllabus.employee))+" "+t._s(t.getEmployeeDesignation(t.syllabus.employee,t.syllabus.start_date))+"\n                            ")]):t._e()]),t._v(" "),t._l(t.syllabus.syllabus_details,(function(s){return e("div",{staticClass:"m-t-20"},[e("h6",{staticClass:"card-title"},[t._v(t._s(s.title))]),t._v(" "),e("p",{staticClass:"font-90pc",domProps:{textContent:t._s(s.description)}}),t._v(" "),t.$last(s,t.syllabus.syllabus_details)?t._e():e("hr")])})),t._v(" "),t.syllabus.syllabus_topics.length?e("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("resource.syllabus_topic")))]):t._e(),t._v(" "),t._l(t.syllabus.syllabus_topics,(function(s){return e("div",{staticClass:"m-t-20"},[e("h6",{staticClass:"card-title"},[t._v(t._s(s.title)+"\n                                "),e("strong",[t._v(t._s(t.trans("resource.syllabus_topic_start_date"))+": ")]),t._v(" "+t._s(t._f("moment")(s.start_date))+"\n                                "),e("br"),t._v(" "),e("strong",[t._v(t._s(t.trans("resource.syllabus_topic_end_date"))+": ")]),t._v(" "+t._s(t._f("moment")(s.end_date))+"\n                            ")]),t._v(" "),e("p",{staticClass:"font-90pc",domProps:{textContent:t._s(s.description)}}),t._v(" "),t.$last(s,t.syllabus.syllabus_topics)?t._e():e("hr")])})),t._v(" "),t.attachments.length?e("div",[e("ul",{staticClass:"m-t-10 upload-file-list"},t._l(t.attachments,(function(s){return e("li",{staticClass:"upload-file-list-item"},[e("a",{staticClass:"no-link-color",attrs:{href:"/resource/syllabus/"+t.syllabus.uuid+"/attachment/"+s.uuid+"/download?token="+t.authToken}},[e("i",{class:["file-icon","fas","fa-lg",s.file_info.icon]}),t._v(" "),e("span",{staticClass:"upload-file-list-item-size"},[t._v(t._s(s.file_info.size))]),t._v(" "+t._s(s.user_filename))])])})),0)]):t._e(),t._v(" "),e("hr"),t._v(" "),e("p",[e("i",{staticClass:"far fa-clock"}),t._v(" "),e("small",[t._v(t._s(t.trans("general.created_at"))+" "+t._s(t._f("momentDateTime")(t.syllabus.created_at)))]),t._v(" "),e("span",{staticClass:"pull-right"},[e("i",{staticClass:"far fa-clock"}),t._v(" "),e("small",[t._v(t._s(t.trans("general.updated_at"))+" "+t._s(t._f("momentDateTime")(t.syllabus.updated_at)))])])])]}))],2):t._e()])])])])}),[],!1,null,null,null).exports}}]);
//# sourceMappingURL=show.js.map?id=fc61b1bd270c146ad65c