/home/techb158/ileadtechnology.com/SSM/public/js
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/student.js (36575B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[325],{FYCx:function(t,a,e){var s=e("leFB");"string"==typeof s&&(s=[[t.i,s,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(s,n);s.locals&&(t.exports=s.locals)},P364:function(t,a,e){"use strict";var s=e("t1qg");e.n(s).a},aNqT:function(t,a,e){"use strict";var s=e("FYCx");e.n(s).a},leFB:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,"\n.avatar {\n\tmax-height: 150px;\n\tmax-width: 150px;\n}\n",""])},mvG4:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,"\n.img-circle {\n max-height: 150px;\n max-width: 150px;\n}\n",""])},pBiP:function(t,a,e){"use strict";e.r(a);var s={components:{},props:["student"],data:function(){return{custom_fields:[],custom_values:[]}},mounted:function(){helper.hasPermission("list-student")||helper.hasPermission("list-class-teacher-wise-student")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getPreRequisite()},methods:{getPreRequisite:function(){var t=this,a=this.$loading.show();axios.get("/api/student/pre-requisite?form_type=student_basic").then((function(e){t.custom_fields=e.custom_fields,t.get(t.student),a.hide()})).catch((function(t){a.hide(),helper.showErrorMsg(t)}))},get:function(t){this.custom_values=t.options&&t.options.hasOwnProperty("custom_values")?t.options.custom_values:[]}},watch:{student:function(t){this.get(t)}}},n=e("KHd+"),i=Object(n.a)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.first_name"),value:t.student.first_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.middle_name"),value:t.student.middle_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.last_name"),value:t.student.last_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.gender"),value:t.student.gender,"to-uppercase-word":!0}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{type:"date",label:t.trans("student.date_of_birth"),value:t.student.date_of_birth}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.birth_place"),value:t.student.birth_place}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.unique_identification_number"),value:t.student.unique_identification_number}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.nationality"),value:t.student.nationality}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.mother_tongue"),value:t.student.mother_tongue}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("misc.caste"),value:t.student.caste_id?t.student.caste.name:""}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("misc.category"),value:t.student.category_id?t.student.category.name:""}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("misc.religion"),value:t.student.religion_id?t.student.religion.name:""}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("misc.blood_group"),value:t.student.blood_group_id?t.student.blood_group.name:""}})],1)]),t._v(" "),t.custom_fields.length?e("hr"):t._e(),t._v(" "),e("view-custom-field",{attrs:{fields:t.custom_fields,customValues:t.custom_values}})],1)}),[],!1,null,null,null).exports,l={components:{},props:{student:{type:Object,default:function(){return{parent:{}}}}},data:function(){return{custom_fields:[],custom_values:[]}},mounted:function(){helper.hasPermission("list-student")||helper.hasPermission("list-class-teacher-wise-student")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getParents()},methods:{getParents:function(){var t=this,a=this.$loading.show();axios.get("/api/student/pre-requisite?form_type=student_parent").then((function(e){t.custom_fields=e.custom_fields,t.get(t.student),a.hide()})).catch((function(t){a.hide(),helper.showErrorMsg(t)}))},get:function(t){var a=t.parent;this.custom_values=a&&a.options&&a.options.hasOwnProperty("custom_values")?a.options.custom_values:[]}},watch:{student:function(t){this.get(t)}}},r=(e("aNqT"),Object(n.a)(l,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"row mb-4"},[e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("general.relation"),value:t.student.parent.first_guardian_relation,"to-uppercase-word":!0}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("general.relation"),value:t.student.parent.second_guardian_relation,"to-uppercase-word":!0}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_name"),value:t.student.parent.first_guardian_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_name"),value:t.student.parent.second_guardian_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_date_of_birth"),value:t.student.parent.first_guardian_date_of_birth,type:"date"}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_date_of_birth"),value:t.student.parent.second_guardian_date_of_birth,type:"date"}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_qualification"),value:t.student.parent.first_guardian_qualification}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_qualification"),value:t.student.parent.second_guardian_qualification}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_occupation"),value:t.student.parent.first_guardian_occupation}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_occupation"),value:t.student.parent.second_guardian_occupation}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_annual_income"),value:t.student.parent.first_guardian_annual_income}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_annual_income"),value:t.student.parent.second_guardian_annual_income}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_email"),value:t.student.parent.first_guardian_email}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_email"),value:t.student.parent.second_guardian_email}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_contact_number_1"),value:t.student.parent.first_guardian_contact_number_1}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_contact_number_1"),value:t.student.parent.second_guardian_contact_number_1}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_contact_number_2"),value:t.student.parent.first_guardian_contact_number_2}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_contact_number_2"),value:t.student.parent.second_guardian_contact_number_2}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.first_guardian_unique_identification_number"),value:t.student.parent.first_guardian_unique_identification_number}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.second_guardian_unique_identification_number"),value:t.student.parent.second_guardian_unique_identification_number}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("span",{staticClass:"align-items-center student-thumb"},[t.student.parent.first_guardian_photo?[e("img",{staticClass:"img-circle avatar",attrs:{src:"/"+t.student.parent.first_guardian_photo}})]:["father"==t.student.parent.first_guardian_relation||"female"==t.student.gender&&"spouse"==t.student.parent.first_guardian_relation?e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_male.png"}}):"mother"==t.student.parent.first_guardian_relation||"male"==t.student.gender&&"spouse"==t.student.parent.first_guardian_relation?e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_female.png"}}):e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_male.png"}})]],2)]),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("span",{staticClass:"align-items-center student-thumb"},[t.student.parent.second_guardian_photo?[e("img",{staticClass:"img-circle avatar",attrs:{src:"/"+t.student.parent.second_guardian_photo}})]:["father"==t.student.parent.second_guardian_relation||"female"==t.student.gender&&"spouse"==t.student.parent.second_guardian_relation?e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_male.png"}}):"mother"==t.student.parent.second_guardian_relation||"male"==t.student.gender&&"spouse"==t.student.parent.second_guardian_relation?e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_female.png"}}):e("img",{staticClass:"img-circle avatar",attrs:{src:"/images/avatar_male.png"}})]],2)])]),t._v(" "),t.custom_fields.length?e("hr"):t._e(),t._v(" "),e("view-custom-field",{attrs:{fields:t.custom_fields,customValues:t.custom_values}})],1)}),[],!1,null,null,null).exports),d={components:{},props:["student"],data:function(){return{custom_fields:[],custom_values:[]}},mounted:function(){helper.hasPermission("list-student")||helper.hasPermission("list-class-teacher-wise-student")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getPreRequisite()},methods:{getPreRequisite:function(){var t=this,a=this.$loading.show();axios.get("/api/student/pre-requisite?form_type=student_contact").then((function(e){t.custom_fields=e.custom_fields,t.get(t.student),a.hide()})).catch((function(t){a.hide(),helper.showErrorMsg(t)}))},get:function(t){this.custom_values=t.options&&t.options.hasOwnProperty("custom_values")?t.options.custom_values:[]}},watch:{student:function(t){this.get(t)}}},o=Object(n.a)(d,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.contact_number"),value:t.student.contact_number}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.email"),value:t.student.email}})],1)]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.emergency_contact_name"),value:t.student.emergency_contact_name}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.emergency_contact_number"),value:t.student.emergency_contact_number}})],1)]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.present_address"),value:t.student.present_address}})],1),t._v(" "),e("div",{staticClass:"col-12 col-sm-4"},[e("view-label",{attrs:{label:t.trans("student.permanent_address"),value:t.student.same_as_present_address?t.trans("student.same_as_present_address"):t.student.permanent_address}})],1)]),t._v(" "),t.custom_fields.length?e("hr"):t._e(),t._v(" "),e("view-custom-field",{attrs:{fields:t.custom_fields,customValues:t.custom_values}})],1)}),[],!1,null,null,null).exports,c=e("zVuu"),u=e("O2oq"),_=e("5/cv"),v=e("Mk/M"),m=e("1SQT"),p={props:{student:{type:Object,default:function(){return{}}},readMode:{type:Boolean,default:!1}},data:function(){return{}},mounted:function(){helper.hasPermission("list-student-fee")||(helper.notAccessibleMsg(),this.$router.push("/dashboard"))},methods:{getAdmissionNumber:function(t){return helper.getAdmissionNumber(t)},hasPermission:function(t){return helper.hasPermission(t)}},computed:{},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{}},f=Object(n.a)(p,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.student.id?e("div",[e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-sm"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.trans("student.admission_number_short")))]),t._v(" "),e("th",[t._v(t._s(t.trans("academic.batch")))]),t._v(" "),e("th",[t._v(t._s(t.trans("student.date_of_admission")))]),t._v(" "),e("th",{staticClass:"table-option"},[t._v(t._s(t.trans("general.action")))])])]),t._v(" "),e("tbody",t._l(t.student.student_records,(function(a){return a.date_of_exit?t._e():e("tr",[e("td",[t._v(t._s(t.getAdmissionNumber(a.admission)))]),t._v(" "),e("td",[t._v("\n "+t._s(a.batch.course.name+" "+a.batch.name)+"\n ")]),t._v(" "),e("td",[e("span",[t._v(t._s(t._f("moment")(a.admission.date_of_admission)))])]),t._v(" "),e("td",{staticClass:"table-option"},[e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("student.view_student_fee"),expression:"trans('student.view_student_fee')"}],staticClass:"btn btn-info btn-sm",on:{click:function(e){return t.$router.push("/student/"+t.student.uuid+"/fee/"+a.id)}}},[e("i",{staticClass:"fas fa-arrow-circle-right"}),t._v(" "+t._s(t.trans("finance.fee"))+"\n ")])])])})),0)])])]):t._e()}),[],!1,null,null,null).exports,b={props:{student:{type:Object,default:function(){return{}}}},components:{},data:function(){return{header:[],rows:[],student_records:[],total_attendance:0,current_student_record:{}}},mounted:function(){this.student_records=this.student.student_records.filter((function(t){return t.academic_session_id===helper.getDefaultAcademicSession().id})),this.student_records.length?(this.current_student_record=this.student_records[0],this.fetch(this.current_student_record)):toastr.error(i18n.general.no_result_found)},methods:{fetch:function(t){var a=this;if(this.current_student_record.id!==t.id||!this.rows.length){var e=this.$loading.show();axios.get("/api/student/"+this.student.uuid+"/record/"+t.id+"/attendance").then((function(t){a.header=t.header,a.rows=t.rows,a.total_attendance=t.total_attendance,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))}}},computed:{},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{}},h=Object(n.a)(b,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.student.id?e("div",[e("div",{staticClass:"mb-3"},t._l(t.student_records,(function(a){return e("span",{key:a.id,staticClass:"label label-info lb-md mr-5 pointer",on:{click:function(e){return t.fetch(a)}}},[t._v("\n "+t._s(a.batch.course.name+" "+a.batch.name)+"\n ")])})),0),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-sm table-bordered"},[e("thead",[e("tr",t._l(t.header,(function(a){return e("th",{key:a.key},[t._v(t._s(a.label))])})),0)]),t._v(" "),e("tbody",t._l(t.rows,(function(a){return e("tr",{key:a.key},t._l(a,(function(a){return e("td",{key:a.key,staticClass:"text-center"},[a.icon?e("span",[e("i",{class:["fas",a.icon,a.class?"text-"+a.class:""]})]):e("span",[t._v(t._s(a.label))])])})),0)})),0)]),t._v(" "),e("p",{staticClass:"font-weight-bold"},[t._v(t._s(t.trans("student.total_attendance"))+": "+t._s(t.total_attendance))])])]):t._e()}),[],!1,null,null,null).exports,g=e("VOv9"),C={props:{student:{type:Object,default:function(){return{parent:{user:{}},user:{}}}}},data:function(){return{enable_parent_login:!1,enable_student_login:!1,student_email:"",student_username:"",parent_email:""}},mounted:function(){this.updateData(this.student)},methods:{updateData:function(t){this.enable_student_login=!(!t.user_id||"activated"!=t.user.status),this.enable_parent_login=!(!t.parent.user_id||"activated"!=t.parent.user.status),this.student_email=t.user_id?t.user.email:"",this.student_username=t.user_id?t.user.username:"",this.parent_email=t.parent.user_id?t.parent.user.email:"",this.parent_username=t.parent.user_id?t.parent.user.username:""}},watch:{student:function(t){this.updateData(t)}}},w=Object(n.a)(C,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.student.id?e("div",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.enable_parent_login"),value:t.enable_parent_login?t.trans("list.yes"):t.trans("list.no")}}),t._v(" "),t.enable_parent_login?[e("view-label",{attrs:{label:t.trans("auth.email"),value:t.parent_email}}),t._v(" "),e("view-label",{attrs:{label:t.trans("auth.username"),value:t.parent_username}}),t._v(" "),e("view-label",{attrs:{label:t.trans("auth.password"),value:"xxxxxxxxxx"}})]:t._e()],2),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("view-label",{attrs:{label:t.trans("student.enable_student_login"),value:t.enable_student_login?t.trans("list.yes"):t.trans("list.no")}}),t._v(" "),t.enable_student_login?[e("view-label",{attrs:{label:t.trans("auth.email"),value:t.student_email}}),t._v(" "),e("view-label",{attrs:{label:t.trans("auth.username"),value:t.student_username}}),t._v(" "),e("view-label",{attrs:{label:t.trans("auth.password"),value:"xxxxxxxxxx"}})]:t._e()],2)])]):t._e()}),[],!1,null,null,null).exports,x={props:{student:{type:Object,default:function(){return{}}}},components:{},data:function(){return{header:[],rows:[],student_records:[],current_student_record:{}}},mounted:function(){this.rows=[],this.student_records=this.student.student_records.filter((function(t){return t.academic_session_id===helper.getDefaultAcademicSession().id})),this.student_records.length?(this.current_student_record=this.student_records[0],this.fetch(this.current_student_record)):toastr.error(i18n.general.no_result_found)},methods:{fetch:function(t){var a=this;if(this.current_student_record.id!==t.id||!this.rows.length){var e=this.$loading.show();axios.get("/api/student/"+this.student.uuid+"/record/"+t.id+"/exam").then((function(t){a.header=t.header,a.rows=t.rows,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))}}},computed:{},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{}},y=Object(n.a)(x,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.student.id?e("div",[e("div",{staticClass:"mb-3"},t._l(t.student_records,(function(a){return e("span",{key:a.id,staticClass:"label label-info lb-md mr-5 pointer",on:{click:function(e){return t.fetch(a)}}},[t._v("\n "+t._s(a.batch.course.name+" "+a.batch.name)+"\n ")])})),0),t._v(" "),t.rows.length?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-sm table-bordered"},[e("thead",[e("tr",t._l(t.header,(function(a){return e("th",{key:a.key,staticClass:"text-center"},[t._v(t._s(a.label))])})),0)]),t._v(" "),e("tbody",t._l(t.rows,(function(a){return e("tr",{key:a.key},t._l(a,(function(a){return e("td",{key:a.key,staticClass:"text-center"},[a.detail?e("span",t._l(a.detail,(function(a){return e("span",{staticStyle:{display:"block"}},[a.mark?e("span",[t._v(t._s(a.assessment_detail_code)+": "+t._s(a.mark+"/"+a.assessment_detail_max_mark))]):t._e()])})),0):e("span",[a.no_exams?e("span",[t._v("-")]):e("span",[t._v(t._s(a.label))])])])})),0)})),0)])]):e("div",{staticClass:"font-80pc"},[t._v("\n "+t._s(t.trans("general.no_result_found"))+"\n ")])]):t._e()}),[],!1,null,null,null).exports,k={components:{basicDetail:i,parentDetail:r,contactDetail:o,documentDetail:c.a,accountDetail:u.a,qualificationDetail:_.a,terminationDetail:v.a,siblingDetail:g.a,promotionDetail:m.a,loginDetail:w,attendanceDetail:h,examReport:y,feeDetail:f},data:function(){return{uuid:this.$route.params.uuid,student:{},photo:"",tab:""}},mounted:function(){helper.hasPermission("list-student")||helper.hasPermission("list-class-teacher-wise-student")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getStudent(),helper.showDemoNotification(["student"])},methods:{hasPermission:function(t){return helper.hasPermission(t)},getConfig:function(t){return helper.getConfig(t)},getStudent:function(){var t=this,a=this.$loading.show();axios.get("/api/student/"+this.uuid).then((function(e){t.student=e,t.photo=t.student.student_photo,a.hide()})).catch((function(e){a.hide(),helper.showErrorMsg(e),t.$router.push("/dashboard")}))},getStudentName:function(){return helper.getStudentName(this.student)},updatePhoto:function(t){},getStatus:function(t){return t?t.date_of_exit?'
'+i18n.student.student_status_not_terminated+"":'
'+i18n.student.student_status_not_studying+"":'
'+i18n.student.student_status_not_admitted+""}},computed:{getDefaultAcademicSession:function(){return helper.getDefaultAcademicSession()},currentStudentRecords:function(){return this.student.student_records.filter((function(t){return t.academic_session_id===helper.getDefaultAcademicSession().id}))}},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{"$route.params.uuid":function(t){this.uuid=t,this.getStudent()}}},D=(e("P364"),Object(n.a)(k,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[t.student.id?e("div",{staticClass:"page-titles"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-6"},[e("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("student.student_detail"))+"\n "),e("span",{staticClass:"card-subtitle"},[t._v(t._s(t.getStudentName(t.student)))])])]),t._v(" "),e("div",{staticClass:"col-12 col-sm-6"},[e("div",{staticClass:"action-buttons pull-right"},[e("router-link",{staticClass:"btn btn-info btn-sm",attrs:{to:"/student/card-view"}},[e("i",{staticClass:"fas fa-list"}),t._v(" "),e("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("student.student")))])]),t._v(" "),t.hasPermission("edit-student")?e("router-link",{staticClass:"btn btn-info btn-sm",attrs:{to:"/student/"+t.student.uuid+"/edit"}},[e("i",{staticClass:"fas fa-pencil-alt"}),t._v(" "),e("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("student.edit_student")))])]):t._e(),t._v(" "),t.student.student_records.length?e("div",{staticClass:"btn-group"},[e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.more_option"),expression:"trans('general.more_option')"}],staticClass:"btn btn-info btn-sm dropdown-toggle no-caret ",attrs:{type:"button",role:"menu",id:"moreOption","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"fas fa-ellipsis-h"}),t._v(" "),e("span",{staticClass:"d-none d-sm-inline"})]),t._v(" "),e("div",{class:["dropdown-menu","ltr"==t.getConfig("direction")?"dropdown-menu-right":""],attrs:{"aria-labelledby":"moreOption"}},t._l(t.student.student_records,(function(a){return e("button",{staticClass:"dropdown-item custom-dropdown",on:{click:function(e){return t.$router.push("/student/"+t.student.uuid+"/fee/"+a.id)}}},[e("i",{staticClass:"fas fa-file"}),t._v(" "+t._s(a.batch.course.name)+" "+t._s(t.trans("finance.fee_allocation")))])})),0)]):t._e()],1)])])]):t._e(),t._v(" "),e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-sm-8 p-0"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[t.student.id?e("div",{staticClass:"accordion",attrs:{id:"accordion"}},[e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"basic","data-toggle":"collapse","data-target":"#collapseBasic","aria-expanded":"false","aria-controls":"collapseBasic"},on:{click:function(a){t.tab="basic"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-graduation-cap fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.basic_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseBasic","aria-labelledby":"basic","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["basic"==t.tab?e("basic-detail",{attrs:{student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"parent","data-toggle":"collapse","data-target":"#collapseParent","aria-expanded":"false","aria-controls":"collapseParent"},on:{click:function(a){t.tab="parent"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-users fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.parent_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseParent","aria-labelledby":"parent","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["parent"==t.tab?e("parent-detail",{attrs:{student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"contact","data-toggle":"collapse","data-target":"#collapseContact","aria-expanded":"false","aria-controls":"collapseContact"},on:{click:function(a){t.tab="contact"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-address-book fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.contact_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseContact","aria-labelledby":"contact","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["contact"==t.tab?e("contact-detail",{attrs:{student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"document","data-toggle":"collapse","data-target":"#collapseDocument","aria-expanded":"false","aria-controls":"collapseDocument"},on:{click:function(a){t.tab="document"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-folder fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.document_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseDocument","aria-labelledby":"document","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["document"==t.tab?e("document-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"qualification","data-toggle":"collapse","data-target":"#collapseQualification","aria-expanded":"false","aria-controls":"collapseQualification"},on:{click:function(a){t.tab="qualification"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-book fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.qualification_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseQualification","aria-labelledby":"qualification","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["qualification"==t.tab?e("qualification-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"sibling","data-toggle":"collapse","data-target":"#collapseSibling","aria-expanded":"false","aria-controls":"collapseSibling"},on:{click:function(a){t.tab="sibling"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-people-carry fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.sibling_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseSibling","aria-labelledby":"sibling","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["sibling"==t.tab?e("sibling-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]),t._v(" "),e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"account","data-toggle":"collapse","data-target":"#collapseAccount","aria-expanded":"false","aria-controls":"collapseAccount"},on:{click:function(a){t.tab="account"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-university fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.account_information")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseAccount","aria-labelledby":"account","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["account"==t.tab?e("account-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]),t._v(" "),t.student.student_records.length?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"login","data-toggle":"collapse","data-target":"#collapseUserLogin","aria-expanded":"false","aria-controls":"collapseUserLogin"},on:{click:function(a){t.tab="login"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-sign-in-alt fa-fix-w-32"}),t._v(" "+t._s(t.trans("auth.user_login")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseUserLogin","aria-labelledby":"login","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["login"==t.tab?e("login-detail",{attrs:{student:t.student}}):t._e()],1)])]):t._e(),t._v(" "),t.student.student_records.length&&t.hasPermission("list-student-fee")?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"fee","data-toggle":"collapse","data-target":"#collapseFee","aria-expanded":"false","aria-controls":"collapseFee"},on:{click:function(a){t.tab="fee"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-coins fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.fee_history")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseFee","aria-labelledby":"fee","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["fee"==t.tab?e("fee-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]):t._e(),t._v(" "),t.student.student_records.length?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"attendance","data-toggle":"collapse","data-target":"#collapseAttendance","aria-expanded":"false","aria-controls":"collapseAttendance"},on:{click:function(a){t.tab="attendance"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-tasks fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.attendance_history")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseAttendance","aria-labelledby":"attendance","data-parent":"#accordion"}},[e("div",{staticStyle:{padding:"1.5rem 1.5rem 0 2.5rem"}},["attendance"==t.tab?e("attendance-detail",{attrs:{student:t.student}}):t._e()],1)])]):t._e(),t._v(" "),t.student.student_records.length?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"exam","data-toggle":"collapse","data-target":"#collapseExam","aria-expanded":"false","aria-controls":"collapseExam"},on:{click:function(a){t.tab="exam"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-file-alt fa-fix-w-32"}),t._v(" "+t._s(t.trans("exam.exam_report")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseExam","aria-labelledby":"exam","data-parent":"#accordion"}},[e("div",{staticStyle:{padding:"1.5rem 1.5rem 0 2.5rem"}},["exam"==t.tab?e("exam-report",{attrs:{student:t.student}}):t._e()],1)])]):t._e(),t._v(" "),t.student.student_records.length?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"promotion","data-toggle":"collapse","data-target":"#collapsePromotion","aria-expanded":"false","aria-controls":"collapsePromotion"},on:{click:function(a){t.tab="promotion"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-chart-line fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.promotion_history")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapsePromotion","aria-labelledby":"promotion","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["promotion"==t.tab?e("promotion-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]):t._e(),t._v(" "),t.student.student_records.length?e("div",{staticClass:"card",staticStyle:{overflow:"visible"}},[e("div",{staticClass:"card-header collapsed",attrs:{id:"termination","data-toggle":"collapse","data-target":"#collapseTermination","aria-expanded":"false","aria-controls":"collapseTermination"},on:{click:function(a){t.tab="termination"}}},[e("h5",[e("i",{staticClass:"fas fa-lg fa-sign-out-alt fa-fix-w-32"}),t._v(" "+t._s(t.trans("student.termination_history")))])]),t._v(" "),e("div",{staticClass:"collapse",attrs:{id:"collapseTermination","aria-labelledby":"termination","data-parent":"#accordion"}},[e("div",{staticClass:"card-body"},["termination"==t.tab?e("termination-detail",{attrs:{"read-mode":!0,student:t.student}}):t._e()],1)])]):t._e()]):t._e()])])]),t._v(" "),e("div",{staticClass:"col-12 col-sm-4 hidden-sm-down p-0 border-left"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body p-r-20"},[e("div",{staticClass:"m-3 text-center"},[e("span",[t.student.student_photo?[e("img",{staticClass:"img-circle",attrs:{src:"/"+t.student.student_photo}})]:["female"==t.student.gender?e("img",{staticClass:"img-circle",attrs:{src:"/images/avatar_female_kid.png"}}):e("img",{staticClass:"img-circle",attrs:{src:"/images/avatar_male_kid.png"}})]],2)]),t._v(" "),t.student.id?e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-sm custom-show-table"},[e("tbody",[e("tr",[e("td",[t._v(t._s(t.trans("student.name")))]),t._v(" "),e("td",[t._v(t._s(t.getStudentName(t.student)))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.father_name")))]),t._v(" "),e("td",[t._v(t._s(t.student.parent?t.student.parent.father_name:""))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.mother_name")))]),t._v(" "),e("td",[t._v(t._s(t.student.parent?t.student.parent.mother_name:""))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.contact_number")))]),t._v(" "),e("td",[t._v(t._s(t.student.contact_number))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.gender")))]),t._v(" "),e("td",[t._v(t._s(t.trans("list."+t.student.gender)))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.date_of_birth")))]),t._v(" "),e("td",[t._v(t._s(t._f("moment")(t.student.date_of_birth)))])])])]),t._v(" "),t._l(t.currentStudentRecords,(function(a){return e("table",{staticClass:"table table-sm custom-show-table"},[e("tbody",[e("tr",[e("td",[t._v(t._s(t.trans("academic.batch")))]),t._v(" "),e("td",[e("span",{domProps:{innerHTML:t._s(t.getStatus(a))}}),t._v(" "+t._s(a.batch.course.name+" "+a.batch.name+" "+a.academic_session.name))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.date_of_admission")))]),t._v(" "),e("td",[t._v(t._s(t._f("moment")(a.admission.date_of_admission)))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.admission_number")))]),t._v(" "),e("td",[t._v(t._s(a.admission.admission_number))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("student.date_of_promotion")))]),t._v(" "),e("td",[t._v(t._s(t._f("moment")(a.date_of_entry)))])]),t._v(" "),a.date_of_exit?e("tr",[e("td",{staticClass:"text-danger font-weight-bold"},[t._v(t._s(t.trans("student.date_of_termination")))]),t._v(" "),e("td",{staticClass:"text-danger font-weight-bold"},[t._v(t._s(t._f("moment")(a.date_of_exit)))])]):t._e()])])})),t._v(" "),e("table",{staticClass:"table table-sm custom-show-table"},[e("tbody",[e("tr",[e("td",[t._v(t._s(t.trans("general.created_at")))]),t._v(" "),e("td",[t._v(t._s(t._f("momentDateTime")(t.student.created_at)))])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.trans("general.updated_at")))]),t._v(" "),e("td",[t._v(t._s(t._f("momentDateTime")(t.student.updated_at)))])])])])],2):t._e()])])])])])])}),[],!1,null,null,null));a.default=D.exports},t1qg:function(t,a,e){var s=e("mvG4");"string"==typeof s&&(s=[[t.i,s,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(s,n);s.locals&&(t.exports=s.locals)}}]);
//# sourceMappingURL=student.js.map?id=6f3421c036e82633f102