Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/.trash/build/assets/JuknisPelatihan-DQauHjf4.js

import{r as b,X as l,j as s,S as u}from"./app-k86Ef-z9.js";import{C as N,a as f,b as T,c as g}from"./card-DhTgm1X4.js";/* empty css                */import{T as v,a as w,b as i,c as C,d as k,e as m}from"./table-D_U6uF2_.js";import{T as S,u as y}from"./useSorting-CcO4ep7L.js";import{u as P,T as H,a as D}from"./useDebouncedSearch-6ug6y-fW.js";import{G as J}from"./GuestLayout-DPnbDiYR.js";import"./index-7WSXypvi.js";import"./index-Cfb_fg3c.js";import"./button-_NvSFZmI.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";import"./toaster-Cq9HAi8u.js";import"./x-BioAQiNH.js";import"./graduation-cap-D9WCOiIx.js";function ss(){const[r,x]=b.useState(-1),{filters:o}=l().props,h=l().props.datatable,{data:n,links:p}=l().props.datatable,{params:a,setParams:c,setTimeDebounce:d}=P(route(`${route().current()}`),o),{sort:j}=y(o,c);return s.jsx(J,{children:s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsx(u,{title:"Home"}),s.jsxs(N,{className:"container mx-auto overflow-hidden mb-4",children:[s.jsx(f,{className:"bg-blue-500 text-white  ",children:s.jsx(T,{children:s.jsx("h1",{children:"Juknis Pelatihan"})})}),s.jsxs(g,{className:"h-[600px] py-6",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx(H,{placeholder:"Cari Juknis Pelatihan",search:a.search,params:a,setParams:c,setTimeDebounce:d}),s.jsx("div",{className:"",children:s.jsxs(v,{children:[s.jsx(w,{children:s.jsx(i,{children:s.jsx(C,{children:s.jsx(S,{className:"",title:"Nama",onClick:()=>{d(50),j("nama")},sort:a.col==="start_date"?a.sort:"desc"})})})}),s.jsx(k,{children:n.length>0?n.map((t,e)=>s.jsx(i,{className:"bg-white",children:s.jsx(m,{children:s.jsxs("div",{className:"list",children:[s.jsx("div",{className:"bg-slate-100 p-5",children:s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("div",{className:"p-1",children:t.nama}),s.jsx("button",{className:"text-3xl font-bold p-1",onClick:()=>x(r===e?0:e),children:r===e?"−":"+"})]})}),r===e&&s.jsx("div",{className:"bg-slate-200 w-[95%] mx-auto p-5",children:s.jsxs("div",{className:"flex justify-between",children:[s.jsx("div",{className:"font-bold",children:t.nama}),s.jsx("a",{href:route("juknis-pelatihan.download",{id:t.id}),target:"_blank",className:"download text-red-600 font-bold",children:"Download"})]})})]},e)})},t.id)):s.jsx(i,{children:s.jsx(m,{colSpan:6,className:"h-24 text-center bg-white",children:"No results found."})})})]})}),s.jsx(D,{links:p,meta:h})]}),s.jsx("br",{})]})]})]})})}export{ss as default};

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