File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.d8f337eb.js
Back
import{w as q,L as N}from"./index.ca4614c1.js";import{C as z}from"./index.4f06d02e.js";import{B as Q}from"./index.8a5f8558.js";import{B as j}from"./index.85943672.js";import{I as L}from"./index.1b36081b.js";import{I as W}from"./index.ae574076.js";import{l as H}from"./lodash.45138f16.js";import{_ as F,q as D,r as c,o as i,c as h,w as f,j as d,d as r,b as l,t as u,k as X,e as a,p as J,s as Z,f as M,m as P,h as E,F as k}from"./index.28ae41da.js";import{E as K}from"./EmployeeLeaveService.38bcb995.js";import{L as R}from"./LeaveApprovalService.7c4b4fc8.js";import{C as V}from"./CloseButton.dacc4a7b.js";import{C as $}from"./CreateButton.7e6095de.js";import{D as Y}from"./DeleteButton.89d918f5.js";/* empty css */import{S as O}from"./SubmitButton.be4371c4.js";import{V as ee}from"./ViewButton.d67c4349.js";import"./jspdf.es.min.cdd8e899.js";/* empty css *//* empty css */import"./vue-cleave.min.10e51f16.js";import{V as B}from"./array.19531b35.js";import{L as G}from"./Loading.fa197db1.js";import"./vue-quill.snow.464b7516.js";/* empty css */import{F as te}from"./index.975c3902.js";import{F as oe}from"./index.164dfd27.js";import{T as se}from"./index.33bd7660.js";import{T as re}from"./index.43beecaf.js";import{D as ie}from"./DenyButton.bbd33b68.js";import{U as ae}from"./UpdateButton.a9e9b37b.js";import{A as ne}from"./ApproverService.108289da.js";import{F as le}from"./FileService.09441775.js";import{L as de}from"./LeaveReasonService.3108a643.js";import{L as ce}from"./LeaveTypeService.b84f7001.js";import{M as me}from"./Multiselect.3c2ca79b.js";import{F as pe}from"./index.d93f9125.js";import{p as fe,j as ue}from"./scr-1.d9aaecca.js";import{P as Ae}from"./index.4d0f347c.js";import{A as ge}from"./main.esm.9cee2c92.js";import{A as he}from"./ActionCellRendererApprover.1ca32c5d.js";import"./logo-black.7c15feb3.js";import"./logo-white.b04c5a89.js";import"./transition.4769b1c9.js";import"./EmployeeService.67ccb7ea.js";import"./es.string.replace.a39053f7.js";import"./Loading.vue_vue_type_style_index_0_scoped_cbded5a2_lang.e35c8e45.js";import"./index.17d4213d.js";const ve={components:{FileType:pe,DenyButton:ie,FormModal:oe,FormGroup:te,TextInput:re,TextArea:se,SubmitButton:O,UpdateButton:ae,CloseButton:V,DeleteButton:Y,Loading:G,Multiselect:me,Icon:L},data(){return{meridiemOptions:["AM","PM"],isMeridiemRequired:!1,halfWholeDayOptions:[{value:"0",label:"Whole Day"},{value:"1",label:"Last Day Half Day"},{value:"2",label:"First Day Half Day"}],currentEmployeeId:this.$store.userSettings.getActiveUser.employees?this.$store.userSettings.getActiveUser.employees.employee_id:"",currentClassificationId:this.$store.userSettings.getActiveUser.employees?this.$store.userSettings.getActiveUser.employees.classification_id:"",currentRecommendingId:"",currentApprovingId:"",btnTitle:"",leaveOptions:[],leaveReasonOptions:[],recommendingOptions:[],approvingOptions:[],recommending:"",approving:"",status:[],form:{leave_id:"",without_pay:!1,half_day:"",date_from:"",date_to:"",days:"",meridiem:"",hours:"",description:"",leave_reason_id:"",attachment:"",recommending_id:"",approver_id:""},errors:{},state:{isEdit:!1,isSaving:!1,isLoading:!1,isLeaveReasonLoading:!1},fileIcons:{pdf:fe,jpg:ue,default:""}}},methods:{async fetchLeaveReason(e){console.log("this method has been called",this.form.leave_reason_id),console.log("leave",e),e!=this.form.leave_id&&(this.leaveReasonOptions=[],this.form.leave_reason_id=""),this.isLeaveReasonLoading=!0,await de.fetchRecords().then(t=>{t.status==200&&(this.leaveReasonOptions=t.data.data.filter(s=>s.leave_id==e).map(s=>({value:s.id,label:s.name})),this.isLeaveReasonLoading=!1)}).catch(t=>{console.log(t)})},getFileTypeImage(e){if(typeof e=="string"){if(!e)return this.fileIcons.default;const t=e.substring(e.lastIndexOf(".")+1).toLowerCase();return this.fileIcons[t]||this.fileIcons.default}},async viewAttachment(e){if(this.state.isDownloading)return;this.state.isDownloading=!0;let t=await le.Reader2("employee-leave",e),s;if(e.endsWith(".pdf"))s="application/pdf";else if(e.endsWith(".png"))s="image/png";else if(e.endsWith(".jpg")||e.endsWith(".jpeg"))s="image/jpeg";else if(e.endsWith(".svg"))s="image/svg+xml";else throw new Error("Unsupported file type");const A=atob(t),o=new Array(A.length);for(let p=0;p<A.length;p++)o[p]=A.charCodeAt(p);const m=new Uint8Array(o),v=new Blob([m],{type:s}),g=URL.createObjectURL(v);window.open(g),this.state.isLoadingPDF=!1},handleMainImageUpload(){const e=event.target.files[0];this.form.attachment=e;const t=new FileReader;t.onload=()=>{e.type.startsWith("image/")?this.form.imageView=t.result:e.type==="application/pdf"?this.form.imageView=this.pdf_file_view:e.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&(this.form.imageView=this.excel_file_view)},t.readAsDataURL(e)},async fetchLeaveType(){await ce.fetchRecords().then(e=>{e.status==200&&(this.leaveOptions=e.data.data.map(t=>({value:t.id,label:t.name})))}).catch(e=>{console.log(e)})},async loadRecord(e){this.resetForm(),this.form=e,this.form.without_pay=!!this.form.without_pay,this.fetchLeaveReason(this.form.leave_id),console.log("form",this.form),this.currentRecommendingId=e.recommending?e.recommending[0].employee_id:"",this.currentApprovingId=e.approving?e.approving[0].employee_id:"",this.recommending=e.recommending?e.recommending[0].firstname+" "+e.recommending[0].lastname:"",this.approving=e.approving?e.approving[0].firstname+" "+e.approving[0].lastname:"",this.form.recommending_id==this.currentEmployeeId?this.btnTitle="Approve":this.currentRecommendingId==this.currentEmployeeId&&this.form.status<1&&(this.btnTitle="Submit For Approval"),this.currentClassificationId>=3&&(this.state.isLoading=!0,console.log("emp id",e.employee_id),await ne.fetchEmployeeApprover(e.employee_id).then(t=>{if(t.status==200)console.log("list",t),this.recommendingOptions=t.data.map((s,A)=>({value:s.employee_id,label:s.firstname+" "+s.lastname})),this.approvingOptions=t.data.filter(s=>s.classification_id>=3).map((s,A)=>({value:s.employee_id,label:s.firstname+" "+s.lastname})),this.state.isLoading=!1;else throw new Error("Failed to fetch employee approvers")}))},closeModal(){this.state.showModal=!1},resetForm(){this.state.isEdit=!1,this.form={leave_id:"",without_pay:!1,half_day:"",date_from:"",date_to:"",days:"",meridiem:"",hours:"",description:"",attachment:"",recommending_id:"",approver_id:""},console.log(this.form)},reload(){return this.$emit("reload")},async updateApproverRecord(){this.state.isSaving=!0;const e=this.form.id;this.state.isSaving=!1;let t={recommending_id:this.form.recommending_id,approver_id:this.form.approver_id};console.log(t),await R.updateApprover(e,t).then(s=>{s.status==201?(this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3}),this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(s=>{s.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},async saveRecord(){this.state.isSaving=!0;const e=this.form.id;await R.update(e,this.status).then(t=>{t.status==201?(this.$swal.fire({title:"Great!",text:"Record successfully updated.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.state.showModal=!1):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3}),this.reload()}).catch(t=>{t.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:t.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},async submitForm(){this.form.approver_id==this.currentEmployeeId?this.status={status:2}:this.form.recommending_id==this.currentEmployeeId&&(this.status={status:1});try{this.$swal.fire({title:"Are you sure you want to save submit this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(e=>{e.value&&this.saveRecord()})}catch(e){if(e instanceof B){const t={};e.inner.forEach(s=>{t[s.path]=s.message}),this.errors=t}}},async updateApproverForm(){try{this.$swal.fire({title:"Are you sure you want to update the approver of this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(e=>{e.value&&this.updateApproverRecord()})}catch(e){if(e instanceof B){const t={};e.inner.forEach(s=>{t[s.path]=s.message}),this.errors=t}}},async denyForm(){try{this.$swal.fire({title:"Are you sure you want to deny this record?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:` <textarea id="swal-input" style="width: 100%; height: 80px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Enter reason"></textarea>`,preConfirm:()=>{const e=document.getElementById("swal-input").value;return e?this.denied_reason=e:(this.$swal.showValidationMessage("The reason field is required"),!1)}}).then(e=>{this.status={status:99,denied_reason:this.denied_reason},e.value&&this.saveRecord()})}catch(e){if(e instanceof B){const t={};e.inner.forEach(s=>{t[s.path]=s.message}),this.errors=t}}},onDateFromChange(){this.form.date_to="",this.calculateDays()},calculateDays(){if(this.form.half_day==="0"?this.isMeridiemRequired=!0:this.isMeridiemRequired=!1,this.form.date_from&&this.form.date_to){const e=D(this.form.date_from);let s=D(this.form.date_to).diff(e,"days")+1;this.form.half_day==="0"&&(s-=.5,this.isMeridiemRequired=!0),this.form.days=s}}},watch:{"form.half_day":{handler:"calculateDays",immediate:!0}},mounted(){this.fetchLeaveType()}},ye={key:1,class:"bg-red-50 dark:bg-red-900 dark:bg-opacity-30 border-l-4 border-red-500 p-4 rounded-md shadow-sm mb-2"},_e={class:"text-red-600 dark:text-red-400 text-sm"},xe={class:"text-slate-600 dark:text-slate-400 text-sm font-normal"},be={class:"grid grid-cols-12 gap-4"},we={class:"col-span-6"},Ie={key:0,class:"text-[#ec4899]"},Ce={class:"flex items-center gap-4"},Be={class:"flex items-center cursor-pointer"},Ee=["checked"],Re={class:"col-span-6"},De={key:0,class:"text-[#ec4899]"},Pe={class:"grid grid-cols-12 gap-4"},ke={key:0,class:"col-span-4"},Le={key:0,class:"text-[#ec4899]"},Fe={class:"col-span-4"},Me={key:0,class:"text-[#ec4899]"},Ve={class:"col-span-4"},Ye={key:0,class:"text-[#ec4899]"},Oe={class:"grid grid-cols-12 gap-4"},Ge={class:"col-span-6"},Te={class:"col-span-6"},Se={class:"grid grid-cols-12 gap-4"},Ue={key:0,class:"col-span-6"},qe={key:0,class:"text-[#ec4899]"},Ne={class:"col-span-6"},ze={key:0,class:"text-[#ec4899]"},Qe={key:1},je={class:"grid grid-cols-12 gap-4"},We={class:"col-span-6 flex items-center p-4 bg-gray-100 rounded-lg shadow-md"},He={class:"flex-shrink-0 mr-4"},Xe=["src"],Je={key:1,class:"w-16 h-16 rounded-full object-cover bg-black-200 flex justify-center items-center"},Ze={class:"text-left"},Ke={class:"text-sm font-semibold text-gray-600"},$e={class:"text-lg font-bold text-gray-900"},et={key:0,class:"text-sm text-gray-900"},tt={key:1,class:"text-sm text-gray-900"},ot={key:0,class:"col-span-6 flex items-center p-4 bg-gray-100 rounded-lg shadow-md"},st={class:"flex-shrink-0 mr-4"},rt=["src"],it={key:1,class:"w-16 h-16 rounded-full object-cover bg-black-200 flex justify-center items-center"},at={class:"text-left"},nt={class:"text-lg font-bold text-gray-900"},lt={class:"text-sm text-gray-900"},dt={key:2},ct={class:"grid grid-cols-12 gap-4 mb-12"},mt={class:"col-span-6"},pt={class:"relative"},ft={key:0,class:"text-sm text-gray-900 italic"},ut={class:"col-span-6"},At={class:"relative"},gt={key:0,class:"text-sm text-gray-900 italic"},ht={class:"flex gap-1 justify-end pt-8"},vt={key:0,class:"flex gap-1 justify-end"},yt={key:1,class:"flex gap-1 justify-end"};function _t(e,t,s,A,o,m){const v=c("Loading"),g=c("Multiselect"),p=c("FormGroup"),x=c("flat-pickr"),b=c("TextInput"),w=c("Fileinput"),I=c("Card"),y=c("FileType"),C=c("TextArea"),_=c("UpdateButton"),T=c("DenyButton"),S=c("CloseButton"),U=c("FormModal");return i(),h(U,{title:"View Leave Request",active:o.state.showModal,sideTitle:this.form.status==0?"For recommendation":this.form.status==1?"For approval":this.form.status==2&&this.form.validated==1?"Approved & validated":this.form.status==2&&this.form.validated==99?"Denied":this.form.status==2?"for validation":this.form.status==99?"Denied":"",badgeColor:this.form.status==0?"warning":this.form.status==1?"info":this.form.status==2&&this.form.validated==1?"success":this.form.status==2&&this.form.validated==99?"danger":this.form.status==2?"purple":this.form.status==99?"danger":"",onSubmit:e.confirmSubmit,onClose:m.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-3/4"},{default:f(()=>[o.state.isLoading?(i(),h(v,{key:0,text:"Fetching record"})):d("",!0),t[19]||(t[19]=r("div",{class:"grid lg:grid-cols-3 grid-cols-1 gap-4 mb-4"},null,-1)),this.form.status==99?(i(),l("div",ye,[t[15]||(t[15]=r("h3",{class:"text-red-700 dark:text-red-300 font-semibold mb-1 text-sm"}," Denied Reason ",-1)),r("p",_e,u(this.form.denied_reason),1)])):d("",!0),r("div",xe,[r("form",{onSubmit:t[14]||(t[14]=X((...n)=>e.confirmSubmit&&e.confirmSubmit(...n),["prevent"])),class:"space-y-4",enctype:"multipart/form-data"},[o.state.isSaving?(i(),h(v,{key:0,text:"Saving record"})):d("",!0),r("div",be,[r("div",we,[a(p,{label:"Leave Type",isRequired:!0},{default:f(()=>[a(g,{modelValue:o.form.leave_id,"onUpdate:modelValue":t[0]||(t[0]=n=>o.form.leave_id=n),error:o.errors.leave_id,options:o.leaveOptions,searchable:!0,onChange:m.calculateDays,class:"w-full",disabled:!0},null,8,["modelValue","error","options","onChange"]),o.errors.leave_id?(i(),l("div",Ie,"Leave type is required")):d("",!0)]),_:1}),r("div",Ce,[r("label",Be,[J(r("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:o.form.without_pay,"onUpdate:modelValue":t[1]||(t[1]=n=>o.form.without_pay=n),disabled:""},null,8,Ee),[[Z,o.form.without_pay]]),t[16]||(t[16]=r("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[r("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),t[17]||(t[17]=r("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Without Pay",-1))])])]),r("div",Re,[a(p,{label:"Half/Whole Day",isRequired:!0},{default:f(()=>[a(g,{modelValue:o.form.half_day,"onUpdate:modelValue":t[2]||(t[2]=n=>o.form.half_day=n),error:o.errors.half_day,options:o.halfWholeDayOptions,onChange:m.calculateDays,class:"w-full",disabled:!0},null,8,["modelValue","error","options","onChange"]),o.errors.half_day?(i(),l("div",De,"Half/Whole day is required")):d("",!0)]),_:1})])]),r("div",Pe,[o.form.half_day!==0?(i(),l("div",ke,[(o.isMeridiemRequired?e.isRequired="true":e.isRequired="false")?(i(),h(p,{key:0,label:"AM/PM"},{default:f(()=>[a(g,{modelValue:o.form.meridiem,"onUpdate:modelValue":t[3]||(t[3]=n=>o.form.meridiem=n),error:o.errors.meridiem,options:o.meridiemOptions,class:"form-control w-full h-[48px] mt-2",disabled:!0},null,8,["modelValue","error","options"]),o.errors.meridiem?(i(),l("div",Le,"AM/PM is required")):d("",!0)]),_:1})):d("",!0)])):d("",!0),r("div",Fe,[a(p,{label:"Date From",isRequired:!0},{default:f(()=>[a(x,{modelValue:o.form.date_from,"onUpdate:modelValue":t[4]||(t[4]=n=>o.form.date_from=n),class:"form-control h-[48px]",onChange:m.onDateFromChange,placeholder:"Select date",disabled:!0},null,8,["modelValue","onChange"]),o.errors.date_from?(i(),l("div",Me,"Date from is required")):d("",!0)]),_:1})]),r("div",Ve,[a(p,{label:"Date To",isRequired:!0},{default:f(()=>[a(x,{modelValue:o.form.date_to,"onUpdate:modelValue":t[5]||(t[5]=n=>o.form.date_to=n),class:"form-control h-[48px]",min:o.form.date_from,placeholder:"Select date",onChange:m.calculateDays,disabled:!0},null,8,["modelValue","min","onChange"]),o.errors.date_to?(i(),l("div",Ye,"Date to is required")):d("",!0)]),_:1})])]),r("div",Oe,[r("div",Ge,[a(p,{label:"Hours"},{default:f(()=>[a(b,{modelValue:o.form.hours,"onUpdate:modelValue":t[6]||(t[6]=n=>o.form.hours=n),error:o.errors.hours,placeholder:"Enter hours",classInput:"h-[48px] w-full",disabled:!0},null,8,["modelValue","error"])]),_:1})]),r("div",Te,[a(p,{label:"Days"},{default:f(()=>[a(b,{modelValue:o.form.days,"onUpdate:modelValue":t[7]||(t[7]=n=>o.form.days=n),error:o.errors.days,isReadonly:!0,placeholder:"Calculated days",classInput:"h-[48px] w-full",disabled:!0},null,8,["modelValue","error"])]),_:1})])]),r("div",Se,[o.form.attachment!=""&&o.form.attachment!=null?(i(),l("div",Ue,[a(p,{label:"Attachment"},{default:f(()=>[a(I,{title:"File Input Basic"},{default:f(()=>[a(w,{modelValue:o.form.attachment,"onUpdate:modelValue":t[8]||(t[8]=n=>o.form.attachment=n),name:"basic",onChange:m.handleMainImageUpload,class:"h-[48px] w-full"},null,8,["modelValue","onChange"]),o.errors.attachment?(i(),l("div",qe,u(o.errors.attachment),1)):d("",!0)]),_:1}),typeof o.form.attachment=="string"?(i(),l("div",{key:0,class:"flex items-center gap-2 mt-2 cursor-pointer",onClick:t[9]||(t[9]=n=>m.viewAttachment(o.form.attachment))},[a(y,{image:m.getFileTypeImage(o.form.attachment)},null,8,["image"]),M(" "+u(o.form.attachment),1)])):d("",!0)]),_:1})])):d("",!0),r("div",Ne,[a(p,{label:"Reason",isRequired:!0},{default:f(()=>[a(g,{modelValue:o.form.leave_reason_id,"onUpdate:modelValue":t[10]||(t[10]=n=>o.form.leave_reason_id=n),error:o.errors.leave_reason_id,searchable:!0,options:o.leaveReasonOptions,loading:e.isLeaveReasonLoading,class:"form-control w-full h-[48px] mt-2",disabled:!0},null,8,["modelValue","error","options","loading"]),o.form.leave_reason_id==5||o.form.leave_reason_id==14?(i(),h(C,{key:0,class:"mt-2",modelValue:o.form.description,"onUpdate:modelValue":t[11]||(t[11]=n=>o.form.description=n),rows:"2",placeholder:"Enter reason",classInput:"w-full",disabled:!0},null,8,["modelValue"])):d("",!0)]),_:1}),o.errors.description?(i(),l("div",ze,"Reason is required")):d("",!0)])]),o.currentClassificationId<=2?(i(),l("div",Qe,[r("div",je,[r("div",We,[r("div",He,[e.recommending_img?(i(),l("img",{key:0,src:e.recommending_img,alt:"Profile",class:"w-16 h-16 rounded-full object-cover"},null,8,Xe)):(i(),l("div",Je," No Image "))]),r("div",Ze,[r("div",Ke,u(o.form.allow_higher_approval||o.form.days>2?"Recommending":"Approving"),1),r("div",$e,u(o.recommending),1),o.form.allow_higher_approval||o.form.days>2?(i(),l("div",et,u(o.form.recommended_at?"Date: ("+this.$formatDateTime(o.form.recommended_at)+")":""),1)):(i(),l("div",tt,u(o.form.approved_at?"Date: ("+this.$formatDateTime(o.form.approved_at)+")":""),1))])]),o.form.allow_higher_approval||o.form.days>2?(i(),l("div",ot,[r("div",st,[e.approving_img?(i(),l("img",{key:0,src:e.approving_img,alt:"Profile",class:"w-16 h-16 rounded-full object-cover"},null,8,rt)):(i(),l("div",it," No Image "))]),r("div",at,[t[18]||(t[18]=r("div",{class:"text-sm font-semibold text-gray-600"},"Approving",-1)),r("div",nt,u(o.approving),1),r("div",lt,u(o.form.approved_at?"Date: ("+this.$formatDateTime(o.form.approved_at)+")":""),1)])])):d("",!0)])])):(i(),l("div",dt,[r("div",ct,[r("div",mt,[a(p,{label:"Recommending"},{default:f(()=>[r("div",pt,[a(g,{modelValue:o.form.recommending_id,"onUpdate:modelValue":t[12]||(t[12]=n=>o.form.recommending_id=n),"close-on-select":!0,searchable:!0,id:"recommending_id",options:o.recommendingOptions,disabled:!!o.form.recommended_at},null,8,["modelValue","options","disabled"])]),o.form.recommended_at?(i(),l("div",ft,"Recommended Date: ("+u(this.$formatDateTime(o.form.recommended_at))+")",1)):d("",!0)]),_:1})]),r("div",ut,[a(p,{label:"Approver"},{default:f(()=>[r("div",At,[a(g,{modelValue:o.form.approver_id,"onUpdate:modelValue":t[13]||(t[13]=n=>o.form.approver_id=n),"close-on-select":!0,searchable:!0,id:"approver_id",options:o.approvingOptions,disabled:!!o.form.approved_at},null,8,["modelValue","options","disabled"])]),o.form.approved_at?(i(),l("div",gt,"Approved Date: ("+u(this.$formatDateTime(o.form.approved_at))+")",1)):d("",!0)]),_:1})])])])),r("div",ht,[this.form.status==0&&o.currentRecommendingId==o.currentEmployeeId||o.currentApprovingId==o.currentEmployeeId&&this.form.status==1&&o.currentApprovingId==this.form.approver_id||this.form.approver_id==this.form.recommending_id&&o.currentEmployeeId==this.form.approver_id?(i(),l("div",vt,[this.form.status<=1?(i(),h(_,{key:0,onClick:m.submitForm,text:o.btnTitle},null,8,["onClick","text"])):d("",!0),o.form.status<=1?(i(),h(T,{key:1,onClick:m.denyForm,text:"Deny"},null,8,["onClick"])):d("",!0)])):this.form.status==0||o.currentApprovingId!=this.form.approver_id?(i(),l("div",yt,[this.form.status<=1?(i(),h(_,{key:0,onClick:m.updateApproverForm,text:"Update Approver"},null,8,["onClick"])):d("",!0)])):d("",!0),a(S,{onClick:m.closeModal},null,8,["onClick"])])],32)])]),_:1},8,["active","sideTitle","badgeColor","onSubmit","onClose"])}const xt=F(ve,[["render",_t],["__scopeId","data-v-f3abea7d"]]),bt="/assets/big-shap1.68df6746.png",wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAFUCAYAAADLbeKHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA7SSURBVHgB7d3fbhvHFcfxWUqydqk/FKUqrqMEiYE4QeOiz9A+TW/zCMob5L4Igl73IfoOQR00cQo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AAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBgBAAgGAEACEYAAIIRAIBg/wd9VaMBGugmyQAAAABJRU5ErkJggg==",It="/assets/big-shap4.66fd56a9.png";const Ct={mixins:[q],components:{ActionCellRendererApprover:he,AgGridVue:ge,Pagination:Ae,Card:z,Button:Q,Badge:j,Layout:N,Icon:L,CreateButton:$,SubmitButton:O,CloseButton:V,ViewButton:ee,DeleteButton:Y,View:xt,InputGroup:W,Loading:G},data(){return{paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",flex:1},{field:"employee id",filter:!0,floatingFilter:!0,flex:2},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"type",filter:!0,floatingFilter:!0,flex:2},{field:"date coverage",filter:!0,floatingFilter:!0,flex:2},{field:"days/hours",filter:!0,floatingFilter:!0},{field:"date created",filter:!0,floatingFilter:!0},{headerName:"Status",field:"status",filter:!0,floatingFilter:!0,cellRenderer:e=>{const t=e.value,s=e.data.validated;return t===0?'<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-yellow-600 bg-gray-100 px-4">For Recommendation</span>':t===1?'<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-blue-600 bg-gray-100 px-4">For Approval</span>':s===1&&t===2?'<div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-green-600 px-4">Aproved & Validated </div>':s===99&&t===2?'<div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-orange-600 px-4">Denied </div>':t===2?'<div class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 bg-gray-100 text-fuchsia-600 px-4">For Validation</div>':t===99?'<span class="inline-block rounded-full text-xs capitalize whitespace-nowrap text-center py-1 text-red-600 bg-gray-100 px-4">Denied</span>':""}},{headerName:"Actions",cellRenderer:"ActionCellRendererApprover",flex:1,cellRendererParams:{context:{componentParent:this}}}],breadcrumbs:[{text:"Home",href:"/"},{text:"Approval",href:"/attendance/leave-approval"},{text:"Leave Approval",active:!0}],statistics:[{title:"Pending",count:[{total:0}],bg:"bg-primary-500",text:"text-primary-500",percent:"1.67% ",icon:"heroicons-outline:clock",img:It},{title:"Approved",count:[{total:0}],bg:"bg-info-500",text:"text-info-500",percent:"25.67% ",icon:"heroicons-outline:menu-alt-1",img:wt},{title:"Denied",count:[{total:0}],bg:"bg-warning-500",text:"text-warning-500",percent:"8.67%",icon:"heroicons-outline:chart-pie",img:bt}],columns:[{label:"#",field:"#"},{label:"Employee ID",field:"employee_id"},{label:"Name",field:"fullname"},{label:"Type",field:"leave_type.name"},{label:"Date Coverage",field:"date_coverage"},{label:"Days",field:"days"},{label:"Hours",field:"hours"},{label:"AM/PM",field:"meridiem"},{label:"Without Pay",field:"without_pay"},{label:"Reason",field:"description"},{label:"Date Created",field:"created_at",formatFn:e=>this.formatDate(e)},{label:"Status",field:"status"},{label:"Action",field:"action"}],perPageOptions:[{value:"10",label:"10"},{value:"50",label:"50"},{value:"100",label:"100"}],items:[],totalItems:0,searchQuery:null,serverOptions:{page:1,rowsPerPage:10,sortBy:"status",sortType:"asc"},state:{isLoading:!1,isEdit:!1,isDeleting:!1}}},watch:{serverOptions:{handler(){console.log(`perPage: ${this.serverOptions.rowsPerPage}`),this.fetchRecords()},deep:!0},searchQuery:H.debounce(function(){this.fetchRecords()},800)},computed:{perPage:function(){return this.serverOptions.rowsPerPage}},methods:{formatDate(e){const t=new Date(e),s=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),A=new Date(s.toLocaleString("en-US",{timeZone:"Asia/Singapore"})),o=A.getFullYear(),m=String(A.getMonth()+1).padStart(2,"0"),v=String(A.getDate()).padStart(2,"0");return`${o}-${m}-${v}`},async fetchRecords(){this.state.isLoading=!0,await R.fetchRecords({keyword:this.searchQuery,page:this.serverOptions.page,per_page:this.serverOptions.rowsPerPage,sortBy:this.serverOptions.sortBy,sortType:this.serverOptions.sortType}).then(e=>{let t=e.data;this.items=t,this.items=t.map((s,A)=>(this.statistics[0].count[0].total=s.pending,this.statistics[1].count[0].total=s.approved,this.statistics[2].count[0].total=s.denied,{...s,"#":A+1,"employee id":s.employee_id,name:s.employee.firstname+" "+s.employee.lastname,type:s.leave_type.name+(s.without_pay?" (Without Pay)":""),"date coverage":s.date_from===s.date_to?this.$formatDate(s.date_from):this.$formatDate(s.date_from)+" - "+this.$formatDate(s.date_to)+(s.half_day?s.meridiem?" (PM)":" (AM)":""),"days/hours":s.days+" Day/s ("+s.hours+" Hour/s)","date created":this.$formatDate(s.leave_created_at),status:s.status}))}).finally(()=>{this.state.isLoading=!1})},reload(){this.$emit("reload")},handlePageChange(e){console.log(e),console.log(this.serverOptions.page),this.serverOptions.page!=e&&(this.serverOptions.page=e)},handlePerPageChange(e){this.serverOptions.page=1,this.serverOptions.rowsPerPage=e},onSortChange(e){console.log(e),e[0].type!="none"&&(this.serverOptions.sortBy=e[0].field,this.serverOptions.sortType=e[0].type)},async deleteRecord(e){this.$swal.fire({title:"Are you sure?",text:"You want to delete this record?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes, delete it!",background:this.$store.themeSettingsStore.isDark?"#1e293b":"#fff"}).then(t=>{console.log(t.value),t.value&&(this.state.isDeleting=!0,K.remove(e).then(s=>{s.status==200&&(this.$swal.fire({title:"Yaaay!",text:"Record has been deleted successfully.",type:"success",icon:"success",timer:2e3}),this.fetchRecords())}))}).catch(t=>{t.response&&t.response.status==401&&this.$swal.fire({title:"Ooops! something is wrong.",text:"Error deleting record. Please contact system administrator",type:"error",icon:"error",timer:2e3})}).finally(()=>{this.reload(),this.state.isDeleting=!1})},viewRecord(e){console.log(e),this.$refs.view.resetForm(),this.$refs.view.loadRecord(e),this.$refs.view.state.showModal=!0},handlePageChange(e){console.log(e),console.log(this.serverOptions.page),this.serverOptions.page!=e&&(this.serverOptions.page=e)},handlePerPageChange(e){this.serverOptions.page=1,this.serverOptions.rowsPerPage=e}},mounted(){this.fetchRecords()}},Bt={class:"space-y-4 mt-4"},Et={class:"flex items-center justify-between mb-4"},Rt={class:"text-lg font-semibold"},Dt={class:"grid grid-cols-1 gap-4 pb-4 md:grid-cols-3"},Pt={class:E("h-14 w-14 flex items-center justify-center rounded-md text-4xl mb-4 shadow-lg bg-white")},kt={class:"text-md font-semibold text-slate-700 dark:text-white mb-2"},Lt={class:"flex justify-center gap-4"},Ft={class:"text-xs font-medium text-slate-500 dark:text-white mb-1"},Mt={class:"text-2xl text-slate-900 dark:text-white font-semibold"},Vt={class:"ag-grid-toolbar flex items-center justify-between px-4 py-2 bg-gray-100 border-b rounded-t-xl border-gray-200"},Yt={class:"flex items-center gap-4"},Ot={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"};function Gt(e,t,s,A,o,m){const v=c("Icon"),g=c("Button"),p=c("ag-grid-vue"),x=c("Card"),b=c("Loading"),w=c("View"),I=c("Layout");return i(),h(I,{breadcrumbs:o.breadcrumbs},{default:f(()=>[r("div",Bt,[a(x,{title:"Leave Approval"},{default:f(()=>[r("div",Et,[r("h6",Rt,u(e.title),1)]),r("div",Dt,[(i(!0),l(k,null,P(o.statistics,(y,C)=>(i(),l("div",{key:C,class:E([y.bg,"flex flex-col items-center rounded-lg p-2 bg-opacity-[0.15] dark:bg-opacity-50 text-center shadow-md hover:shadow-xl transition-transform transform hover:scale-101 w-full"])},[r("div",Pt,[a(v,{icon:y.icon,class:E(["text-2xl",y.text])},null,8,["icon","class"])]),r("div",kt,u(y.title),1),r("div",Lt,[(i(!0),l(k,null,P(y.count,_=>(i(),l("div",{key:_.type},[r("div",Ft,u(_.type),1),r("div",Mt,u(_.total),1)]))),128))])],2))),128))]),r("div",Vt,[t[3]||(t[3]=r("div",{class:"flex items-center justify-center gap-4 text-gray-900"}," Leave Lists ",-1)),r("div",Yt,[a(g,{icon:"mdi:microsoft-excel",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-green-500",iconClass:"text-2xl",onClick:e.exportToCsv},{default:f(()=>[t[2]||(t[2]=r("span",{class:"absolute inset-0 bg-green-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),r("span",Ot,[a(v,{icon:"mdi:microsoft-excel",class:"text-2xl mr-2"}),t[1]||(t[1]=M(" Export to CSV "))])]),_:1},8,["onClick"])])]),a(p,{ref:"agGrid",rowData:o.items,columnDefs:o.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:o.paginationPageSize,paginationPageSizeSelector:o.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1}),o.state.isLoading?(i(),h(b,{key:0,text:"Fetching records"})):d("",!0),a(w,{onCloseModal:t[0]||(t[0]=y=>o.state.showModal=!1),ref:"view",onReload:m.fetchRecords},null,8,["onReload"])])]),_:1},8,["breadcrumbs"])}const Fo=F(Ct,[["render",Gt],["__scopeId","data-v-f035994b"]]);export{Fo as default};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings