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

import{X as n,j as a,x as b,A as T}from"./app-B1Sg3jAd.js";import{T as f,a as g,b as i,c as r,d as N,e as s}from"./table-Cs5Vx1o9.js";import{T as w,u as y}from"./useSorting-DUVRHGSY.js";import{u as k,T as v,a as D}from"./useDebouncedSearch-CkES6lzv.js";import{B as l}from"./button-stRSEY7v.js";import{E}from"./eye-C0_lisPn.js";import{P,T as _}from"./trash-zoTwW_H6.js";import"./index-C3qaiukN.js";import"./index-DlZYSKd5.js";import"./createLucideIcon-0gNxh7Fx.js";import"./chevron-left-CkOdvkq8.js";import"./chevron-right-DAKbSkNP.js";import"./input-sp4hCfE7.js";import"./select-D5UGtXgR.js";import"./Combination-DwsDqJsx.js";import"./index-BoNucU06.js";import"./index-UoedJaz0.js";import"./index-CF44vzwl.js";function M(){const{filters:o}=n().props,x=n().props.datatable,{data:c,links:m}=n().props.datatable,{params:t,setParams:d,setTimeDebounce:h}=k(route(`${route().current()}`),o),{sort:p}=y(o,d),u=e=>{var j=window.confirm("Yakin ingin menghapus data ini?");j==!0&&T.post(route("admin.peserta.destroy",{id:e}),{_method:"DELETE"})};return a.jsxs("div",{className:"space-y-4",children:[a.jsx(v,{placeholder:"Cari peserta",search:t.search,params:t,setParams:d,setTimeDebounce:h}),a.jsx("div",{className:"",children:a.jsxs(f,{children:[a.jsx(g,{children:a.jsxs(i,{children:[a.jsx(r,{children:a.jsx(w,{className:"",title:"Waktu Dibuat",onClick:()=>{h(50),p("created_at")},sort:t.col==="created_at"?t.sort:"desc"})}),a.jsx(r,{children:"NIK"}),a.jsx(r,{children:"Nama"}),a.jsx(r,{children:"Email"}),a.jsx(r,{children:"Kab/Kota"}),a.jsx(r,{children:"Tahun"}),a.jsx(r,{className:"cursor-help",title:'Peserta yang "Punya Akun" adalah peserta yang mempunyai email & password',children:"Punya Akun?"}),a.jsx(r,{children:"Action"})]})}),a.jsx(N,{children:c.length>0?c.map(e=>a.jsxs(i,{className:"bg-white",children:[a.jsx(s,{children:e.created_at!=null?new Date(Date.parse(e.created_at)).toLocaleString():"-"}),a.jsx(s,{children:e.nik}),a.jsx(s,{children:e.nama_lengkap}),a.jsx(s,{children:e.email??(e.user!=null?e.user.email:"-")}),a.jsx(s,{children:e.kabupaten.name}),a.jsx(s,{children:e.tahun}),a.jsx(s,{children:e.user!=null?"Iya":"Tidak"}),a.jsx(s,{children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("a",{href:route("admin.peserta.show",{id:e.id}),children:a.jsx(l,{variant:"outline",children:a.jsx(E,{className:"w-4 h-4 text-blue-500"})})}),a.jsx(b,{href:route("admin.peserta.edit",{id:e.id}),children:a.jsx(l,{variant:"secondary",children:a.jsx(P,{className:"w-4 h-4 text-gray-500"})})}),a.jsx(l,{variant:"destructive",onClick:()=>u(e.id),children:a.jsx(_,{className:"w-4 h-4 text-white"})})]})})]},e.id)):a.jsx(i,{children:a.jsx(s,{colSpan:8,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),a.jsx(D,{links:m,meta:x})]})}export{M as default};

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