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/Detail-Tq0tE4lI.js

import{X as l,j as e,S as m,x as c}from"./app-IOXEkjZV.js";import{A as x}from"./AdminLayout-DglA0Z72.js";import n from"./DetailDataTable-CQ90adEV.js";import{C as o,a as h,b as j,c as p}from"./card-veRe2dlF.js";import{B as r}from"./Combination-BNwF1qlx.js";import{C as g}from"./circle-plus-CEGnAHIy.js";import{C as f}from"./calendar-DJA3vEJW.js";import{M as u}from"./map-pin-C9w1ik4m.js";import{U as N}from"./user-CWWK6sky.js";import{B as a}from"./book-open-Bv2Yz7YR.js";import{D as y}from"./download-vcJTpAa0.js";import{C as b}from"./clock-BLjlgLgZ.js";import"./utils-CytzSlOG.js";import"./dropdown-menu-B-1W3h9a.js";import"./index-2qmCrqIB.js";import"./toaster-_N7EqnDW.js";import"./index-4MJacFxF.js";import"./x-CHnh41XH.js";import"./createLucideIcon-CiCxt4rN.js";import"./chevron-right-jusdPylV.js";import"./users-UVnlJKLd.js";import"./graduation-cap-E5ZpbfEd.js";import"./table-DqH29bHE.js";import"./useSorting-Cmai0EQf.js";import"./input-DSAKdGbg.js";import"./select-Ce0S2nMA.js";import"./index-Cg-qGOAP.js";import"./eye-BoFXgF4t.js";import"./index-Dygw6O6N.js";function W({pelatihan:s}){const i=l().props.auth.user,d=t=>{switch(t){case"beginner":return"bg-green-100 text-green-800";case"intermediate":return"bg-yellow-100 text-yellow-800";case"advanced":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return e.jsxs(x,{user:i,children:[e.jsx(m,{title:"Pelatihan"}),e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h1",{className:"text-lg font-bold md:text-2xl",children:"Detail Pelatihan"}),e.jsx(c,{href:route("admin.pelatihan.edit",{id:s.id}),children:e.jsxs(r,{children:[e.jsx(g,{})," Edit Pelatihan"]})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:[e.jsx("div",{className:"p-6 border-b border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:s.title}),e.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium ${d(s.level)} capitalize`,children:s.level})]}),e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${s.status?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:s.status?"Active":"Inactive"})})]})}),e.jsxs("div",{className:"p-6 grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(f,{className:"w-5 h-5 text-gray-400 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"Durasi"}),e.jsxs("p",{className:"text-base text-gray-900",children:[new Date(s.start_date).toLocaleDateString()," - ",new Date(s.end_date).toLocaleDateString()]})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(u,{className:"w-5 h-5 text-gray-400 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"Lokasi"}),e.jsxs("p",{className:"text-base text-gray-900",children:[s.province.name,", ",s.regency.name]})]})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(N,{className:"w-5 h-5 text-gray-400 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-gray-500",children:"Instruktur"}),e.jsx("p",{className:"text-base text-gray-900",children:s.instructor.nama})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Deskripsi"}),e.jsx("p",{className:"text-gray-600",children:s.description}),e.jsx("div",{children:e.jsx("img",{src:`${route("storage.images")}?path=${s.thumbnail}`,alt:"Thumbnail",className:"w-full rounded-lg"})})]})]}),e.jsxs("div",{className:"p-6 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[e.jsx(a,{className:"w-5 h-5 text-gray-400"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Materi"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:s.pelatihan_materis.map(t=>e.jsxs("div",{className:"border rounded-lg p-4 flex justify-between",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium text-gray-900",children:t.name}),e.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Kode: ",t.code]}),e.jsx("p",{className:"text-sm text-gray-600 mt-2",children:t.description})]}),e.jsx("div",{children:e.jsx("a",{href:`${route("storage.file")}?path=${t.file}`,target:"_blank",children:e.jsx(y,{className:"w-5 h-5 text-gray-400"})})})]},t.id))})]}),e.jsxs("div",{className:"p-6 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[e.jsx(b,{className:"w-5 h-5 text-gray-400"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Jadwal"})]}),e.jsx("div",{className:"space-y-4",children:s.pelatihan_jadwals.map(t=>e.jsxs("div",{className:"border rounded-lg p-4",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium text-gray-900",children:t.name}),e.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Kode: ",t.code]})]}),e.jsxs("div",{className:"text-end",children:[e.jsx("p",{className:"text-sm text-gray-500",children:new Date(t.course_date).toLocaleDateString()}),e.jsx("a",{href:route("admin.pelatihan.absensi",{pelatihan_jadwal_id:t.id}),children:e.jsxs(r,{children:[e.jsx(a,{})," Absensi"]})})]})]}),e.jsx("p",{className:"text-sm text-gray-600 mt-2",children:t.description})]},t.id))})]})]}),e.jsxs(o,{children:[e.jsx(h,{children:e.jsx(j,{children:"Peserta Pelatihan"})}),e.jsx(p,{children:e.jsx(n,{pelatihanId:s.id})})]})]})]})}export{W as default};

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