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/Index-YM69I6Yc.js

import{X as d,r as i,j as e,S as x}from"./app-Bf4UmhRa.js";import{G as h}from"./GuestLayout-CmIp5NXM.js";import{S as p}from"./search-DBkpxIUN.js";import{c as u}from"./createLucideIcon-GYHh43pT.js";import{S as f}from"./star-DwnBidIE.js";import{C as j}from"./clock-DEKeIpXm.js";import{U as g}from"./users-Dv5tVJx-.js";import{B as v}from"./book-open-CBNQcEIE.js";import{C as N}from"./chevron-right-S6YU6UJq.js";import"./toaster-Cxfec_un.js";import"./index-FTzdnD8v.js";import"./index-ClYRUrhl.js";import"./index-2GHgVU-j.js";import"./x-JfB7dLEQ.js";import"./graduation-cap-tqw75YPH.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 w=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],b=u("Filter",w);function U({pelatihans:t}){d().props.auth.user;const[r,n]=i.useState(""),[a,o]=i.useState("all"),l=t!=null?t==null?void 0:t.filter(s=>{const c=s.title.toLowerCase().includes(r.toLowerCase()),m=a==="all"||s.level.toLowerCase()===a.toLowerCase();return c&&m}):[];return e.jsxs(h,{children:[e.jsx(x,{title:"Cari Pelatihan"}),e.jsxs("main",{className:"max-w-7xl mx-auto px-4",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-4 mb-8",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(p,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 h-5 w-5"}),e.jsx("input",{type:"text",placeholder:"Cari pelatihan...",className:"w-full pl-10 pr-4 py-3 rounded-lg border border-gray-200 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:border-transparent",value:r,onChange:s=>n(s.target.value)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(b,{className:"text-gray-500 h-5 w-5"}),e.jsxs("select",{className:"px-4 py-3 rounded-lg border border-gray-200 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-white",value:a,onChange:s=>o(s.target.value),children:[e.jsx("option",{value:"all",children:"Level"}),e.jsx("option",{value:"beginner",children:"Beginner"}),e.jsx("option",{value:"intermediate",children:"Intermediate"}),e.jsx("option",{value:"advanced",children:"Advanced"})]})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map(s=>e.jsxs("div",{className:"bg-white rounded-xl shadow-xs hover:shadow-md transition-shadow duration-300 flex flex-col justify-center items-center",children:[e.jsx("img",{src:route("course.thumbnail",s.id),alt:s.title,className:"w-full h-48 object-cover rounded-t-xl flex-grow"}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:s.title}),e.jsxs("span",{className:"flex items-center text-yellow-500",children:[e.jsx(f,{className:"h-4 w-4 fill-current"}),e.jsx("span",{className:"ml-1 text-sm",children:5*((s.pelatihan_pesertas_sum_review!=null?s.pelatihan_pesertas_sum_review:0)/(s.pelatihan_pesertas_review_count*5))||0})]})]}),e.jsxs("p",{className:"text-gray-600 mb-4",children:["oleh ",e.jsx("b",{children:s.instructor.nama})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-4",children:[e.jsxs("span",{className:"flex items-center",children:[e.jsx(j,{className:"h-4 w-4 mr-1"}),s.duration]}),e.jsxs("span",{className:"flex items-center",children:[e.jsx(g,{className:"h-4 w-4 mr-1"}),s.pesertas_count.toLocaleString()," peserta"]}),e.jsxs("span",{className:"flex items-center",children:[e.jsx(v,{className:"h-4 w-4 mr-1"}),s.level]})]}),e.jsxs("a",{href:route("course.show",s.id),className:"w-full flex items-center justify-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-300",children:["Lihat",e.jsx(N,{className:"h-4 w-4 ml-2"})]})]})]},s.id))}),l.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500 text-lg",children:"No pelatihans found matching your criteria."})})]})]})}export{U as default};

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