import{j as e,K as l,m as r,L as d}from"./vendor-BKmmeuxg.js";import{B as c}from"./button-BpNwv2aE.js";import x from"./Layout-oBkGmvb1.js";import m from"./StepNavigator-1X0eMKDI.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";const p=n=>{const{allValuesAreTrue:i,requirements:s}=n,a=[{title:`PHP >= ${s.required_php_version}`,key:"php_version"},{title:"OpenSSL PHP Extension",key:"openssl_enabled"},{title:"PDO PHP Extension",key:"pdo_enabled"},{title:"Mbstring PHP Extension",key:"mbstring_enabled"},{title:"Curl PHP Extension",key:"curl_enabled"},{title:"Tokenizer PHP Extension",key:"tokenizer_enabled"},{title:"XML PHP Extension",key:"xml_enabled"},{title:"CTYPE PHP Extension",key:"ctype_enabled"},{title:"Fileinfo PHP Extension",key:"fileinfo_enabled"},{title:"GD PHP Extension",key:"gd_enabled"},{title:"JSON PHP Extension",key:"json_enabled"},{title:"BCmath PHP Extension",key:"bcmath_enabled"},{title:"Symlink Function",key:"symlink_enabled"}];return e.jsxs(e.Fragment,{children:[e.jsx(m,{step1:"active"}),!i&&e.jsx("p",{className:"bg-red-100 text-red-500",children:"Your server doesn't meet the following requirements"}),e.jsx("div",{className:"border border-gray-300",children:a.map(({key:t,title:o})=>e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 text-gray-500 odd:bg-gray-100",children:[o,t==="php_version"?e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"mr-2",children:s.current_php_version}),s[t]?e.jsx(l,{className:"text-green-500"}):e.jsx(r,{className:"text-red-500"})]}):s[t]?e.jsx(l,{className:"text-green-500"}):e.jsx(r,{className:"text-red-500"})]},t))}),!i&&e.jsx("div",{className:"mt-4 rounded-md bg-yellow-50 p-4",children:e.jsx("div",{className:"flex",children:e.jsxs("div",{className:"ml-3",children:[e.jsx("h3",{className:"text-sm font-medium text-yellow-800",children:"Important Notes"}),e.jsx("div",{className:"mt-2 text-sm text-yellow-700",children:e.jsxs("ul",{className:"list-disc space-y-1 pl-5",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Symlink Function:"})," Required for Laravel's storage:link command to make uploaded files publicly accessible"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"PHP Extensions:"})," These extensions are essential for Laravel to function properly"]}),e.jsx("li",{children:"Contact your hosting provider if any requirements are not met"})]})})]})})}),i&&e.jsx("div",{className:"mt-8 flex items-center justify-end",children:e.jsx(d,{href:route("install.show-step2"),children:e.jsx(c,{className:"bg-orange-500 px-6 py-3 text-white uppercase hover:bg-orange-600/90",children:"Next Step"})})})]})};p.layout=n=>e.jsx(x,{children:n});export{p as default};
