Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/DataTable-DZlHpYUm.js

import{X as s,j as e}from"./app-D0phMcm8.js";import{T as x,a as j,b as i,c as l,d as u,e as r}from"./table-DEpMBiGb.js";import{T as b,u as f}from"./useSorting-CDNV57kE.js";import{u as T,T as g,a as N}from"./useDebouncedSearch-DjHiSIZ1.js";import{B as k}from"./button-DbngCeXs.js";import{B as v}from"./badge-6m507vXS.js";import{P as B}from"./printer-BJgVVeRh.js";import"./index-YOUaBSyu.js";import"./index-Bd6qtopx.js";import"./createLucideIcon-C59q94qj.js";import"./chevron-left-CKjkQOoE.js";import"./chevron-right-CjtAt_n8.js";import"./input-fl17Yger.js";import"./select-DumUDtWK.js";import"./Combination--X2dxDPb.js";import"./index-DmNUKXr2.js";import"./index-G1xIjYhy.js";import"./index-CqwfMS9E.js";function J(){s().props.auth.user;const{filters:o}=s().props,p=s().props.datatable,{data:n,links:h}=s().props.datatable,{params:t,setParams:c,setTimeDebounce:d}=T(route(`${route().current()}`),o),{sort:m}=f(o,c);return e.jsxs("div",{className:"space-y-4",children:[e.jsx(g,{placeholder:"Cari sertifikat",search:t.search,params:t,setParams:c,setTimeDebounce:d}),e.jsx("div",{className:"",children:e.jsxs(x,{children:[e.jsx(j,{children:e.jsxs(i,{children:[e.jsx(l,{children:e.jsx(b,{className:"",title:"Pelatihan",onClick:()=>{d(50),m("pelatihan.title")},sort:t.col==="pelatihan.title"?t.sort:null})}),e.jsx(l,{children:"Sertifikat"}),e.jsx(l,{children:"Action"})]})}),e.jsx(u,{children:n.length>0?n.map(a=>e.jsxs(i,{className:"bg-white",children:[e.jsx(r,{children:a.pelatihan.title}),e.jsx(r,{children:"Certificate of completion"}),e.jsxs(r,{children:[a.status=="finish"&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("a",{href:route("sertifikat.print",{id:a.id}),target:"_blank",children:e.jsx(k,{variant:"outline",children:e.jsx(B,{className:"w-4 h-4 text-blue-500"})})})}),a.status!=="finish"&&e.jsx(v,{variant:"secondary",className:"bg-orange-400 hover:bg-orange-400 text-white text-center",children:"Belum Selesai"})]})]},a.id)):e.jsx(i,{children:e.jsx(r,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(N,{links:h,meta:p})]})}export{J as default};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]