import React from 'react'
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
import getImage from "../../utils/getImage";

export default function Onboard() {

    const pricingFields ={
        starter: { name: 'Starter', price:  5.99, active: true },
        basic:   { name: 'Basic',   price: 12.99, active: true },
        premium: { name: 'Premium', price: 20.00, active: true },
    }

    return (
        <>
            <BreadcrumbComBS title='Subscription' paths={['Dashboard', 'Subscription']} />



            <div className="row">
                <div className="col-xl-3 col-md-6">
                    <div className="card card-statistics text-center py-3">
                        <div className="card-body pricing-content">
                            <div className="pricing-content-card">
                                <h5>Current Subscription(s)</h5>
                                <h2 className="text-primary pt-3">Basic</h2>
                                {/*<p className="text-primary pb-3">/ Monthly</p>*/}
                                {/*<ul className="py-2">*/}
                                {/*    <li>post jobs</li>*/}
                                {/*    <li>advanced instructors search</li>*/}
                                {/*    <li>invite candidates</li>*/}
                                {/*    <li>post events</li>*/}
                                {/*    <li>cancel any time</li>*/}
                                {/*</ul>*/}


                            </div>
                        </div>
                    </div>
                </div>

                <>
                    {Object.entries(pricingFields)?.map(([key, value]) => (

                        <div key={key} className="col-xl-3 col-md-6">
                            <div className="card card-statistics text-center py-3">
                                <div className="card-body pricing-content">
                                    <div className="pricing-content-card">
                                        <h5>{value.name}</h5>
                                        <h2 className="text-primary pt-3">${value.price}</h2>
                                        <p className="text-primary pb-3">/ Monthly</p>
                                        <ul className="py-2">
                                            <li>post jobs</li>
                                            <li>advanced instructors search</li>
                                            <li>invite candidates</li>
                                            <li>post events</li>
                                            <li>cancel any time</li>
                                        </ul>
                                        <div className="pt-2"><a href="javascript:void(0)" className="btn btn-inverse-secondary btn-round btn-sm">go {value.name}</a></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    ))}
                </>

            </div>

        </>
    )
}
