/home/techb158/ileadtechnology.com/SSM/public/js/resource/lessonPlan
NameSizeModeActions
create~js/-0755rm
create.js115880644editdlrm
create.js.map1710644editdlrm
edit.js115860644editdlrm
edit.js.map1670644editdlrm
index.js255290644editdlrm
index.js.map1600644editdlrm
show.js38370644editdlrm
show.js.map1670644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/resource/lessonPlan/show.js (3837B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[316],{Y39b:function(s,t,e){"use strict";e.r(t);var a={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{lesson_plan:[],attachments:[]}},methods:{get:function(){var s=this,t=this.$loading.show();axios.get("/api/lesson/plan/"+this.uuid).then((function(e){s.lesson_plan=e.lesson_plan,s.attachments=e.attachments,t.hide()})).catch((function(s){t.hide(),helper.showErrorMsg(s)}))},getEmployeeName:function(s){return helper.getEmployeeName(s)},getEmployeeDesignation:function(s,t){return helper.getEmployeeDesignation(s,t)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(s){return helper.formatDateTime(s)},moment:function(s){return helper.formatDate(s)}}},n=e("KHd+"),l=Object(n.a)(a,(function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("transition",{attrs:{name:"modal"}},[e("div",{staticClass:"modal-mask"},[e("div",{staticClass:"modal-wrapper"},[e("div",{staticClass:"modal-container modal-lg"},[s.lesson_plan.id?e("div",{staticClass:"modal-header"},[s._t("header",[e("span",[s._v(s._s(s.lesson_plan.topic))]),s._v(" "),e("span",{staticClass:"float-right pointer",on:{click:function(t){return s.$emit("close")}}},[s._v("x")])])],2):s._e(),s._v(" "),s.lesson_plan.id?e("div",{staticClass:"modal-body"},[s._t("body",[e("h6",{staticClass:"card-title"},[e("strong",[s._v(s._s(s.trans("academic.subject"))+":")]),s._v(" "+s._s(s.lesson_plan.subject.name+" ("+s.lesson_plan.subject.code+")")+" \n "),e("br"),s._v(" "),e("strong",[s._v(s._s(s.trans("academic.batch"))+":")]),s._v(" "+s._s(s.lesson_plan.subject.batch.course.name+" "+s.lesson_plan.subject.batch.name)+" \n "),e("br"),s._v(" "),e("strong",[s._v(s._s(s.trans("resource.lesson_plan_start_date"))+":")]),s._v(" "+s._s(s._f("moment")(s.lesson_plan.start_date))+" \n "),e("br"),s._v(" "),e("strong",[s._v(s._s(s.trans("resource.lesson_plan_end_date"))+":")]),s._v(" "+s._s(s._f("moment")(s.lesson_plan.end_date))+" \n "),s.lesson_plan.employee?e("p",{staticClass:"pull-right"},[e("strong",[s._v(s._s(s.trans("resource.lesson_plan_created_by"))+":")]),s._v(" "+s._s(s.getEmployeeName(s.lesson_plan.employee))+" "+s._s(s.getEmployeeDesignation(s.lesson_plan.employee,s.lesson_plan.start_date))+"\n ")]):s._e()]),s._v(" "),s._l(s.lesson_plan.lesson_plan_details,(function(t){return e("div",{staticClass:"m-t-20"},[e("h6",{staticClass:"card-title"},[s._v(s._s(t.title))]),s._v(" "),e("p",{staticClass:"font-90pc",domProps:{textContent:s._s(t.description)}}),s._v(" "),s.$last(t,s.lesson_plan.lesson_plan_details)?s._e():e("hr")])})),s._v(" "),s.attachments.length?e("div",[e("ul",{staticClass:"m-t-10 upload-file-list"},s._l(s.attachments,(function(t){return e("li",{staticClass:"upload-file-list-item"},[e("a",{staticClass:"no-link-color",attrs:{href:"/resource/lesson/plan/"+s.lesson_plan.uuid+"/attachment/"+t.uuid+"/download?token="+s.authToken}},[e("i",{class:["file-icon","fas","fa-lg",t.file_info.icon]}),s._v(" "),e("span",{staticClass:"upload-file-list-item-size"},[s._v(s._s(t.file_info.size))]),s._v(" "+s._s(t.user_filename))])])})),0)]):s._e(),s._v(" "),e("hr"),s._v(" "),e("p",[e("i",{staticClass:"far fa-clock"}),s._v(" "),e("small",[s._v(s._s(s.trans("general.created_at"))+" "+s._s(s._f("momentDateTime")(s.lesson_plan.created_at)))]),s._v(" "),e("span",{staticClass:"pull-right"},[e("i",{staticClass:"far fa-clock"}),s._v(" "),e("small",[s._v(s._s(s.trans("general.updated_at"))+" "+s._s(s._f("momentDateTime")(s.lesson_plan.updated_at)))])])])])],2):s._e()])])])])}),[],!1,null,null,null);t.default=l.exports}}]); //# sourceMappingURL=show.js.map?id=5bf0d567d7ed60f784c0