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

import{X as t,j as e,A as p}from"./app-0M1xUxwK.js";import{T as f,a as N,b as i,c as r,d as T,e as a}from"./table-BQxZbOwD.js";import{u as k,T as v,a as w,b as C,c as y}from"./useSorting-0stdOKxg.js";import{B as l,C as S}from"./Combination-FGxwZbkT.js";import{E as A}from"./eye-hLmBpHXu.js";import{X as E}from"./x-DS3_jN76.js";import"./utils-CytzSlOG.js";import"./createLucideIcon-Cek0QINP.js";import"./chevron-right-xSHRehHM.js";import"./input-OZIIGGJz.js";import"./select-OXwAtB6Q.js";import"./index-Ah5ZtQqA.js";import"./index-CATK79Eq.js";import"./index-BsSg6l7f.js";import"./index-DVuHqJC0.js";function z(){const{filters:o}=t().props,h=t().props.datatable,{data:c,links:m}=t().props.datatable,{params:n,setParams:d,setTimeDebounce:x}=k(route(`${route().current()}`),o),{sort:j}=C(o,d),u=s=>{var b=window.confirm("Yakin ingin menolak peserta ini?");b==!0&&p.post(route("admin.dashboard.reject",{id:s}))},g=s=>{p.post(route("admin.dashboard.approve",{id:s}))};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{placeholder:"Cari peserta",search:n.search,params:n,setParams:d,setTimeDebounce:x}),e.jsx("div",{className:"",children:e.jsxs(f,{children:[e.jsx(N,{children:e.jsxs(i,{children:[e.jsx(r,{children:e.jsx(w,{className:"",title:"Waktu Mendaftar",onClick:()=>{x(50),j("created_at")},sort:n.col==="created_at"?n.sort:"desc"})}),e.jsx(r,{children:"NIK"}),e.jsx(r,{children:"Nama"}),e.jsx(r,{children:"Email"}),e.jsx(r,{children:"Pelatihan"}),e.jsx(r,{children:"Status"}),e.jsx(r,{children:"Action"})]})}),e.jsx(T,{children:c.length>0?c.map(s=>e.jsxs(i,{className:"bg-white",children:[e.jsx(a,{children:s.waktu_mendaftar}),e.jsx(a,{children:s.user?s.user.peserta.nik:"-"}),e.jsx(a,{children:s.user.nama}),e.jsx(a,{children:s.user.email}),e.jsx(a,{children:s.pelatihan.title}),e.jsx(a,{children:s.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"}):s.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(a,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:route("admin.pendaftaran.show",{id:s.id}),target:"_blank",children:e.jsx(l,{variant:"outline",children:e.jsx(A,{className:"w-4 h-4 text-blue-500"})})}),e.jsx(l,{variant:"outline",onClick:()=>g(s.id),children:e.jsx(S,{className:"w-4 h-4 text-green-500"})}),e.jsx(l,{variant:"destructive",onClick:()=>u(s.id),children:e.jsx(E,{className:"w-4 h-4 text-white"})})]})})]},s.id)):e.jsx(i,{children:e.jsx(a,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(y,{links:m,meta:h})]})}export{z as default};

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