import{r as x,j as e,X as k,S as w,x as C}from"./app-Dya7xgxE.js";import{A}from"./AuthenticatedLayout-BOjZMICK.js";import{C as i,a as d,b as m,c as u}from"./card-B4PWe38U.js";import{B as o}from"./button-acCq_yhQ.js";import{T as g,a as p,b as n,c as l,d as f,e as r}from"./table-B4f8TwNU.js";import{B as b}from"./badge-Jb25M1ns.js";import{d as T}from"./index-DyzdQ7UL.js";import{c as h}from"./utils-CytzSlOG.js";import{c as j}from"./createLucideIcon-D9qyNW4s.js";import{S as B}from"./search-BlkbpSCA.js";import{C as _}from"./circle-plus-iTkCJ9C-.js";import{G as P}from"./graduation-cap-Bw00h9At.js";import{U as S}from"./users-B8vjazVs.js";import"./dropdown-menu-Cs8AJsj2.js";import"./toaster-VAdguPDR.js";import"./index-BMNE8zxA.js";import"./x-CBtnB5aT.js";import"./Combination-CIxOTAwt.js";import"./index-GwShY9ah.js";import"./chevron-right-C3ZACqca.js";import"./book-open-Bu1beKvj.js";import"./calendar-Duaxvag2.js";import"./award-nA8Pl5n7.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 R=[["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"}]],M=j("BookOpenCheck",R);/**
* @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 D=[["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"}]],H=j("CircleAlert",D);/**
* @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 K=[["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"}]],$=j("Rocket",K),z=T("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"}}),N=x.forwardRef(({className:s,variant:a,...t},c)=>e.jsx("div",{ref:c,role:"alert",className:h(z({variant:a}),s),...t}));N.displayName="Alert";const v=x.forwardRef(({className:s,...a},t)=>e.jsx("h5",{ref:t,className:h("mb-1 font-medium leading-none tracking-tight",s),...a}));v.displayName="AlertTitle";const y=x.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:h("text-sm [&_p]:leading-relaxed",s),...a}));y.displayName="AlertDescription";function E({materi:s}){return e.jsxs(e.Fragment,{children:[e.jsxs(n,{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.due_date}),e.jsx(r,{className:"text-right",children:e.jsx(b,{variant:"secondary",className:s.tugas_pesertas.length>0?"bg-emerald-500 hover:bg-emerald-500 text-white":"bg-red-400 hover:bg-red-400 text-white",children:"Belum"})})]}),s.materi_tugas.map(a=>e.jsxs(n,{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",children:e.jsx(b,{variant:"secondary",className:a.status==="Terkirim"?"bg-emerald-500 hover:bg-emerald-500 text-white":"bg-red-400 hover:bg-red-400 text-white",children:"Belum"})})]},`tugas-${a.id}`))]})}function U(s,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(i,{className:"bg-[#5BA4CF] text-white",children:e.jsxs(d,{children:[e.jsx(m,{className:"text-sm font-normal",children:"Pelatihan yang diikuti"}),e.jsx("p",{className:"text-lg font-semibold",children:s.title})]})}),e.jsxs(i,{className:"bg-[#E6C88A]",children:[e.jsx(d,{children:e.jsx(m,{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(o,{variant:"outline",className:"bg-white hover:bg-gray-100",children:"Ajukan"})]})]}),e.jsxs(i,{className:"bg-[#4CAF50] text-white",children:[e.jsx(d,{children:e.jsx(m,{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(i,{className:"overflow-auto",children:e.jsxs(g,{children:[e.jsx(p,{className:"bg-gray-200",children:e.jsxs(n,{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:s.pelatihan_jadwals.map(t=>e.jsxs(n,{children:[e.jsx(r,{className:"font-medium",children:t.code}),e.jsx(r,{children:t.name}),e.jsx(r,{children:t.course_date}),e.jsx(r,{children:t.instructor.nama})]},`jadwal-${t.id}`))})]})})]}),e.jsxs("div",{className:" rounded-lg",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Pengumpulan Tugas"}),e.jsx(i,{className:"overflow-auto",children:e.jsxs(g,{children:[e.jsx(p,{className:"bg-gray-200",children:e.jsxs(n,{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.map(t=>e.jsx(E,{materi:t},`materi-${t.id}`))})]})})]})]})}function me({pelatihan:s,aku:a,tugas:t}){const c=k().props.auth.user;return e.jsxs(A,{user:c,header:e.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Dashboard"}),children:[e.jsx(w,{title:"Dashboard"}),a!=null&&a.status=="pending"&&e.jsxs(N,{children:[e.jsx(H,{className:"h-4 w-4"}),e.jsx(v,{children:"Status Pendaftaran"}),e.jsx(y,{children:"Terima kasih sudah mendaftar pelatihan. Saat ini status pendfataraanmu sedang diproses oleh admin."})]}),s!=null&&U(s,t),s==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($,{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(o,{className:"gap-2",children:[e.jsx(B,{className:"w-4 h-4"}),"Cari Pelatihan"]})}),e.jsxs(o,{variant:"outline",className:"gap-2",children:[e.jsx(M,{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(i,{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:"Berbagai macam pelatihan"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Browse through our extensive catalog of professional courses."})]}),e.jsxs(i,{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:"Dapatka sertifikat BNSP"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Earn industry-recognized certificates to boost your career."})]}),e.jsxs(i,{className:"p-6",children:[e.jsx(S,{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{me as default};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]