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-DZNeYSSR.js

import{X as i,j as e,A as p}from"./app-CUF-GqrC.js";import{T as b,a as N,b as l,c as s,d as k,e as r}from"./table-C_jn65WV.js";import{T as v,u as T}from"./useSorting-Cs5Y1wLZ.js";import{u as w,T as y,a as C}from"./useDebouncedSearch-psErXchL.js";import{B as n}from"./button-i5R-NP61.js";import{c as S}from"./createLucideIcon-C7ZqAT4s.js";import{E as _}from"./eye-DXISxtNz.js";import{C as H}from"./Combination-MBps4zR7.js";import{X as A}from"./x-5E-xxK6j.js";import"./utils-CytzSlOG.js";import"./chevron-left-BlS2Z4W9.js";import"./chevron-right-Bz9oXKso.js";import"./input-uGvrs_5j.js";import"./select-Cs0A9TtX.js";import"./index-oRoFqCGB.js";import"./index-Dp-91Bti.js";import"./index-CLBMhdRQ.js";import"./index-Cd8LXMps.js";/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E=[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],P=S("Scroll",E);function O(){const{filters:o}=i().props,h=i().props.datatable,{data:c,links:m}=i().props.datatable,{params:t,setParams:d,setTimeDebounce:x}=w(route(`${route().current()}`),o),{sort:j}=T(o,d),u=a=>{var g=window.confirm("Yakin ingin menolak peserta ini?");g==!0&&p.post(route("admin.pendaftaran.reject",{id:a}))},f=a=>{p.post(route("admin.pendaftaran.approve",{id:a}))};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(y,{placeholder:"Cari peserta",search:t.search,params:t,setParams:d,setTimeDebounce:x}),e.jsx("div",{className:"",children:e.jsxs(b,{children:[e.jsx(N,{children:e.jsxs(l,{children:[e.jsx(s,{children:e.jsx(v,{className:"",title:"Waktu Mendaftar",onClick:()=>{x(50),j("created_at")},sort:t.col==="created_at"?t.sort:"desc"})}),e.jsx(s,{children:"NIK"}),e.jsx(s,{children:"Nama"}),e.jsx(s,{children:"Email"}),e.jsx(s,{children:"Pelatihan"}),e.jsx(s,{children:"Status"}),e.jsx(s,{children:"Action"})]})}),e.jsx(k,{children:c.length>0?c.map(a=>e.jsxs(l,{className:"bg-white",children:[e.jsx(r,{children:a.waktu_mendaftar}),e.jsx(r,{children:a.user?a.user.peserta.nik:"-"}),e.jsx(r,{children:a.user.nama}),e.jsx(r,{children:a.user.email}),e.jsx(r,{children:a.pelatihan.title}),e.jsx(r,{children:a.status=="pending"?e.jsx("span",{className:"inline-flex items-center rounded bg-orange-50 px-2 py-0.5 text-xs font-medium text-orange-500 ring-1 ring-inset ring-orange-600/20",children:"Pending"}):a.status=="reject"?e.jsx("span",{className:"inline-flex items-center rounded bg-red-50 px-2 py-0.5 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-600/10",children:"Reject"}):e.jsx("span",{className:"inline-flex items-center rounded bg-green-50 px-2 py-0.5 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20",children:"Approve"})}),e.jsx(r,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:route("admin.pendaftaran.print-sertifikat",{id:a.id}),target:"_blank",children:e.jsx(n,{variant:"outline",children:e.jsx(P,{className:"w-4 h-4 text-blue-500"})})}),e.jsx("a",{href:route("admin.pendaftaran.show",{id:a.id}),target:"_blank",children:e.jsx(n,{variant:"outline",children:e.jsx(_,{className:"w-4 h-4 text-blue-500"})})}),a.status=="pending"&&e.jsxs(e.Fragment,{children:[e.jsx(n,{variant:"outline",onClick:()=>f(a.id),children:e.jsx(H,{className:"w-4 h-4 text-green-500"})}),e.jsx(n,{variant:"destructive",onClick:()=>u(a.id),children:e.jsx(A,{className:"w-4 h-4 text-white"})})]})]})})]},a.id)):e.jsx(l,{children:e.jsx(r,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(C,{links:m,meta:h})]})}export{O as default};

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