import{j as e,r as x,X as k,S as w,x as C}from"./app-BS0Mi5CH.js";import{A}from"./AuthenticatedLayout-DT5b_I7v.js";import{C as n,a as c,b as o,c as u}from"./card-Cr6FSsbc.js";import{B as m}from"./Combination-BmwREokW.js";import{T as g,a as j,b as i,c as l,d as f,e as r}from"./table-CUfTBRG6.js";import{f as p}from"./index-CoFumDt_.js";import{c as d}from"./utils-CytzSlOG.js";import{c as h}from"./createLucideIcon-BqjyEKxG.js";import{S as T}from"./search-DZq-9XRd.js";import{C as B}from"./circle-plus-ywVZKw-e.js";import{G as _}from"./graduation-cap-DnDzPdZn.js";import{U as P}from"./users-C-ocVDlL.js";import"./dropdown-menu-DhhZdaV3.js";import"./toaster-CDoIse9q.js";import"./index-BQ95NZR7.js";import"./x-CPbCm0DX.js";import"./chevron-right-D6R1xOap.js";import"./book-open-C6uPgXGY.js";import"./file-text-bj1V015N.js";import"./award-TejFQBQ2.js";import"./index-PcnpzidS.js";/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S=[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]],R=h("BookOpenCheck",S);/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],D=h("CircleAlert",M);/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],H=h("Rocket",V),K=p("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function $({className:a,variant:s,...t}){return e.jsx("div",{className:d(K({variant:s}),a),...t})}const z=p("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),b=x.forwardRef(({className:a,variant:s,...t},y)=>e.jsx("div",{ref:y,role:"alert",className:d(z({variant:s}),a),...t}));b.displayName="Alert";const N=x.forwardRef(({className:a,...s},t)=>e.jsx("h5",{ref:t,className:d("mb-1 font-medium leading-none tracking-tight",a),...s}));N.displayName="AlertTitle";const v=x.forwardRef(({className:a,...s},t)=>e.jsx("div",{ref:t,className:d("text-sm [&_p]:leading-relaxed",a),...s}));v.displayName="AlertDescription";function E({materi:a}){return e.jsxs(e.Fragment,{children:[e.jsxs(i,{className:"even:bg-gray-50",children:[e.jsx(r,{className:"font-medium",children:a.code}),e.jsx(r,{children:a.name}),e.jsx(r,{children:a.tanggal}),e.jsx(r,{className:"text-right"})]}),a.materi_tugas.map(s=>e.jsxs(i,{className:"even:bg-gray-50",children:[e.jsx(r,{className:"font-medium",children:s.code}),e.jsx(r,{children:s.name}),e.jsx(r,{children:s.tanggal}),e.jsx(r,{className:"text-right",children:e.jsx($,{variant:"secondary",className:s.status==="Terkirim"?"bg-emerald-500 hover:bg-emerald-500 text-white":"bg-red-400 hover:bg-red-400 text-white",children:"Belum"})})]},`tugas-${s.id}`))]})}function U(a){return e.jsxs("div",{className:"py-2",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-6 mb-8",children:[e.jsx(n,{className:"bg-[#5BA4CF] text-white",children:e.jsxs(c,{children:[e.jsx(o,{className:"text-sm font-normal",children:"Pelatihan yang diikuti"}),e.jsx("p",{className:"text-lg font-semibold",children:a.title})]})}),e.jsxs(n,{className:"bg-[#E6C88A]",children:[e.jsx(c,{children:e.jsx(o,{className:"text-sm font-normal",children:"Sertifikasi BNSP"})}),e.jsxs(u,{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm",children:"Tidak Ada"}),e.jsx(m,{variant:"outline",className:"bg-white hover:bg-gray-100",children:"Ajukan"})]})]}),e.jsxs(n,{className:"bg-[#4CAF50] text-white",children:[e.jsx(c,{children:e.jsx(o,{className:"text-sm font-normal",children:"Progress Anda"})}),e.jsx(u,{className:"space-y-4",children:e.jsx("h1",{children:"Belum Ada"})})]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Jadwal Pelatihan"}),e.jsx(n,{className:"overflow-auto",children:e.jsxs(g,{children:[e.jsx(j,{className:"bg-gray-200",children:e.jsxs(i,{children:[e.jsx(l,{className:"font-semibold",children:"Kode Unit"}),e.jsx(l,{className:"font-semibold",children:"Kompetensi"}),e.jsx(l,{className:"font-semibold",children:"Tanggal"}),e.jsx(l,{className:"font-semibold",children:"Instruktur"})]})}),e.jsx(f,{children:a.pelatihan_jadwals.map(s=>e.jsxs(i,{children:[e.jsx(r,{className:"font-medium",children:s.code}),e.jsx(r,{children:s.name}),e.jsx(r,{children:s.course_date}),e.jsx(r,{children:s.instructor.nama})]},`jadwal-${s.id}`))})]})})]}),e.jsxs("div",{className:" rounded-lg",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Pengumpulan Tugas"}),e.jsx(n,{className:"overflow-auto",children:e.jsxs(g,{children:[e.jsx(j,{className:"bg-gray-200",children:e.jsxs(i,{children:[e.jsx(l,{className:"font-semibold",children:"Kode Unit"}),e.jsx(l,{className:"font-semibold",children:"Kompentensi"}),e.jsx(l,{className:"font-semibold",children:"Tanggal"}),e.jsx(l,{className:"font-semibold text-right",children:"Tugas"})]})}),e.jsx(f,{children:a.pelatihan_materis.map(s=>e.jsx(E,{materi:s},`materi-${s.id}`))})]})})]})]})}function ce({pelatihan:a,aku:s}){const t=k().props.auth.user;return e.jsxs(A,{user:t,header:e.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Dashboard"}),children:[e.jsx(w,{title:"Dashboard"}),s!=null&&s.status=="pending"&&e.jsxs(b,{children:[e.jsx(D,{className:"h-4 w-4"}),e.jsx(N,{children:"Status Pendaftaran"}),e.jsx(v,{children:"Terima kasih sudah mendaftar pelatihan. Saat ini status pendfataraanmu sedang diproses oleh admin."})]}),a!=null&&U(a),a==null&&e.jsxs("div",{className:"text-center max-w-2xl mx-auto py-12",children:[e.jsx("div",{className:"bg-blue-50 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(H,{className:"w-8 h-8 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold mb-3",children:"Mulai tingkatkan skill-mu sekarang juga"}),e.jsx("p",{className:"text-gray-600 mb-8",children:"Kamu belum terdaftar di pelatihan manamupun. Yuk cari dan daftar pelatiha untuk meningkatan skill-mu."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(C,{href:route("course.index"),children:e.jsxs(m,{className:"gap-2",children:[e.jsx(T,{className:"w-4 h-4"}),"Cari Pelatihan"]})}),e.jsxs(m,{variant:"outline",className:"gap-2",children:[e.jsx(R,{className:"w-4 h-4"}),"Lihat Rekomendasi"]})]}),e.jsxs("div",{className:"mt-12 grid grid-cols-1 sm:grid-cols-3 gap-6 text-left",children:[e.jsxs(n,{className:"p-6",children:[e.jsx(B,{className:"w-8 h-8 text-blue-600 mb-4"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Berbagai macam pelatihan"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Browse through our extensive catalog of professional courses."})]}),e.jsxs(n,{className:"p-6",children:[e.jsx(_,{className:"w-8 h-8 text-blue-600 mb-4"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Dapatka sertifikat BNSP"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Earn industry-recognized certificates to boost your career."})]}),e.jsxs(n,{className:"p-6",children:[e.jsx(P,{className:"w-8 h-8 text-blue-600 mb-4"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Bergabung bersama komunitas"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Connect with fellow learners and industry experts."})]})]})]})]})}export{ce as default};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]