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

import{X as r,j as e,x as b,A as f}from"./app-k86Ef-z9.js";import{T,a as g,b as t,c as m,d as N,e as i}from"./table-D_U6uF2_.js";import{T as w,u as k}from"./useSorting-CcO4ep7L.js";import{u as v,T as y,a as E}from"./useDebouncedSearch-6ug6y-fW.js";import{B as o}from"./button-_NvSFZmI.js";import{E as P}from"./eye-DrsE4B2k.js";import{P as C,T as D}from"./trash-BdPsMR_a.js";import"./index-7WSXypvi.js";import"./index-Cfb_fg3c.js";import"./createLucideIcon-0-ULngH7.js";import"./chevron-left-B2pxCjy4.js";import"./chevron-right-Fm4h_7HY.js";import"./input-Bp-W19l2.js";import"./select-CllUGkec.js";import"./Combination-48UUUXzm.js";import"./index-CuDCJLcP.js";import"./index-CdhAbvlA.js";import"./index-BtC_bxq7.js";function M(){const{filters:n}=r().props,h=r().props.datatable,{data:l,links:x}=r().props.datatable,{params:s,setParams:c,setTimeDebounce:d}=v(route(`${route().current()}`),n),{sort:p}=k(n,c),j=a=>{var u=window.confirm("Yakin ingin menghapus data ini?");u==!0&&f.post(route("admin.juknis-pelatihan.destroy",{id:a}),{_method:"DELETE"})};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(y,{placeholder:"Cari Juknis Pelatihan",search:s.search,params:s,setParams:c,setTimeDebounce:d}),e.jsx("div",{className:"",children:e.jsxs(T,{children:[e.jsx(g,{children:e.jsxs(t,{children:[e.jsx(m,{children:e.jsx(w,{className:"",title:"Nama",onClick:()=>{d(50),p("nama")},sort:s.col==="start_date"?s.sort:"desc"})}),e.jsx(m,{children:"Action"})]})}),e.jsx(N,{children:l.length>0?l.map(a=>e.jsxs(t,{className:"bg-white",children:[e.jsx(i,{children:a.nama}),e.jsx(i,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:route("storage.file",{path:a.file}),target:"_blank",children:e.jsx(o,{variant:"outline",children:e.jsx(P,{className:"w-4 h-4 text-blue-500"})})}),e.jsx(b,{href:route("admin.juknis-pelatihan.edit",{id:a.id}),children:e.jsx(o,{variant:"secondary",children:e.jsx(C,{className:"w-4 h-4 text-gray-500"})})}),e.jsx(o,{variant:"destructive",onClick:()=>j(a.id),children:e.jsx(D,{className:"w-4 h-4 text-white"})})]})})]},a.id)):e.jsx(t,{children:e.jsx(i,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),e.jsx(E,{links:x,meta:h})]})}export{M as default};

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