import{u as d,j as t,e as o}from"./vendor-BKmmeuxg.js";import{B as c}from"./button-gradient-primary-CuKxTw1k.js";import{C as a}from"./card-D9_SJYq6.js";import{g as x,S as p}from"./section-Bz0LxI_C.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./dialog-B2gN9MvT.js";import"./use-lang-YfV87_zl.js";import"./chunked-uploader-input-D0XPVOTS.js";import"./input-DM0goJrn.js";import"./index-D9-QKOod.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./label-HmIcv5Yx.js";import"./textarea-CyndvowL.js";import"./inertia-SZXqLvQm.js";import"./icon-picker-dialog-AqyWbPod.js";import"./icon-picker-iXyBXP6r.js";import"./debounce-CWHP_ANh.js";import"./tooltip-BsX7Z6vz.js";import"./scroll-area-C8HGru-R.js";import"./table-header-DVkEnG6Y.js";import"./table-DWOXv4Pu.js";import"./table-page-size-OCfjNXER.js";import"./dropdown-menu-DO-po5c1.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";const K=()=>{var r,l;const{props:i}=d(),{page:m,topCourse:e,customize:n}=i,s=x(m,"top_course");return t.jsx(p,{customize:n,pageSection:s,containerClass:"py-20",children:t.jsxs("div",{className:"grid grid-cols-1 items-end gap-20 md:grid-cols-2 md:gap-28",children:[t.jsxs("div",{className:"relative",children:[t.jsxs("div",{className:"relative z-10 mb-10",children:[t.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:s==null?void 0:s.title}),t.jsx("h2",{className:"mb-4 text-2xl font-bold sm:text-3xl",children:e==null?void 0:e.title})]}),t.jsx("img",{alt:e==null?void 0:e.title,src:(e==null?void 0:e.thumbnail)||"/assets/images/blank-image.jpg",className:"relative z-10 h-[348px] w-full rounded-xl object-cover object-center"}),t.jsx("div",{className:"after:pointer-events-none after:absolute after:top-1/2 after:left-1/2 after:h-[260px] after:w-[260px] after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]}),t.jsxs("div",{className:"relative",children:[t.jsxs("div",{className:"relative z-10 grid grid-cols-1 gap-7 pt-12 pb-7 sm:grid-cols-2",children:[t.jsxs(a,{className:"px-6 py-7",children:[t.jsx("h2",{className:"mb-2 font-bold sm:text-3xl",children:e==null?void 0:e.formatted_duration}),t.jsx("p",{className:"text-muted-foreground",children:"Course Duration"})]}),t.jsxs(a,{className:"px-6 py-7",children:[t.jsx("h2",{className:"mb-2 font-bold sm:text-3xl",children:e==null?void 0:e.total_lessons}),t.jsxs("p",{className:"text-muted-foreground",children:["Course Lesson",(e==null?void 0:e.total_lessons)>1?"s":""]})]}),t.jsxs(a,{className:"px-6 py-7",children:[t.jsx("h2",{className:"mb-2 font-bold sm:text-3xl",children:e==null?void 0:e.total_quizzes}),t.jsxs("p",{className:"text-muted-foreground",children:["Total Quiz",(e==null?void 0:e.total_quizzes)>1?"zes":""]})]}),t.jsxs(a,{className:"px-6 py-7",children:[t.jsx("h2",{className:"mb-2 font-bold sm:text-3xl",children:e==null?void 0:e.enrollments_count}),t.jsxs("p",{className:"text-muted-foreground",children:["Enrolled Student",((e==null?void 0:e.enrollments_count)??0)>1?"s":""]})]})]}),((r=s==null?void 0:s.properties)==null?void 0:r.button_text)&&t.jsx(c,{shadow:!1,onClick:()=>o.post(route("course-cart.store"),{course_id:e.id}),className:"relative z-10 mt-10 md:mt-14",children:(l=s==null?void 0:s.properties)==null?void 0:l.button_text}),t.jsx("div",{className:"after:pointer-events-none after:absolute after:right-[120px] after:bottom-10 after:h-[200px] after:w-[200px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})]})})};export{K as default};
