import Link from "next/link"
import Rehabilitation from "@/utils/Rehabilitation.utils"
import Accident from "@/utils/Accident.utils"
import { areaOfInjuryData } from "@/utils/AreaOfInjery.utils"
import { servicesList } from "@/utils/Services.utils"

export default function Footer2() {

    const servicesCols = [
        servicesList.slice(0, 6),
        servicesList.slice(6, 12),
        servicesList.slice(12, 18),
    ];



    return (
        <>
            <footer className="main-footer">
                <div className="pattern-layer">
                    <div
                        className="pattern-1"
                        style={{ backgroundImage: "url(/assets/images/shape/shape-23.png)" }}
                    ></div>
                    <div
                        className="pattern-2"
                        style={{ backgroundImage: "url(/assets/images/shape/shape-24.png)" }}
                    ></div>
                    <div
                        className="pattern-3"
                        style={{ backgroundImage: "url(/assets/images/shape/shape-25.png)" }}
                    ></div>
                    <div className="pattern-4"></div>
                </div>

                <div className="widget-section pt_120 pb_100">
                    <div className="auto-container">
                        <div className="row clearfix">
                            <div className="col-lg-3 col-md-6 col-sm-12 footer-column">
                                <div className="footer-widget logo-widget">
                                    <figure className="footer-logo">
                                        <Link href="/">
                                            <img src="/assets/images/footer-logo.png" alt="" />
                                        </Link>
                                    </figure>
                                    <p>
                                        Welcome to Rapha Rehab Physiotherapy & Massage Therapy Clinic in Etobicoke.
                                    </p>
                                    <ul className="social-links clearfix">
                                        <li>
                                            <Link href="https://www.instagram.com/elrapharehab/" target="_blank"
                                                rel="noopener noreferrer"><i className="icon-4"></i></Link>
                                        </li>
                                        <li>
                                            <Link href="/"><i className="icon-5"></i></Link>
                                        </li>
                                        <li>
                                            <Link href="/"><i className="icon-6"></i></Link>
                                        </li>
                                        <li>
                                            <Link href="https://www.facebook.com/ELRaphaRehabCenter/" target="_blank"
                                                rel="noopener noreferrer"><i className="icon-7"></i></Link>
                                        </li>
                                    </ul>
                                </div>
                            </div>

                            <div className="col-lg-9 col-md-12 col-sm-12 footer-column">
                                <div className="footer-widget links-widget">
                                    <div className="widget-title text-center">
                                        <h3>SERVICES</h3>
                                    </div>
                                    <div className="row">
                                        {servicesCols.map((col, index) => (
                                            <div
                                                key={index}
                                                className="col-lg-4 col-md-4 col-sm-12 widget-content"
                                            >
                                                <ul className="links-list clearfix">
                                                    {col.map((item) => (
                                                        <li key={item.id}>
                                                            <Link
                                                                href={`/etobicoke-treatment-service/${item.slug}`}
                                                            >
                                                                {item.shortTitle}
                                                            </Link>
                                                        </li>
                                                    ))}
                                                </ul>
                                            </div>
                                        ))}
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div className="row clearfix mt-5">
                            <div className="col-lg-3 col-md-6 col-sm-12 footer-column">
                                <div className="footer-widget links-widget">
                                    <div className="widget-title">
                                        <h3>AREA OF INJURY</h3>
                                    </div>
                                    <div className="widget-content">
                                        <ul className="links-list clearfix">
                                            {areaOfInjuryData.map((item) => (
                                                <li key={item.id}>
                                                    <Link href={`/area-of-injury/${item.slug}`}>
                                                        {item.title}
                                                    </Link>
                                                </li>
                                            ))}
                                        </ul>
                                    </div>
                                </div>
                            </div>

                            <div className="col-lg-3 col-md-6 col-sm-12 footer-column">
                                <div className="footer-widget links-widget">
                                    <div className="widget-title">
                                        <h3>REHABILITATION</h3>
                                    </div>
                                    <div className="widget-content">
                                        <ul className="links-list clearfix">
                                            {Rehabilitation.map((item) => (
                                                <li key={item.id}>
                                                    <Link href={`/rehabilitation/${item.slug}`}>
                                                        {item.title}
                                                    </Link>
                                                </li>
                                            ))}
                                        </ul>
                                    </div>
                                </div>
                            </div>

                            <div className="col-lg-3 col-md-6 col-sm-12 footer-column">
                                <div className="footer-widget links-widget">
                                    <div className="widget-title">
                                        <h3>ACCIDENT</h3>
                                    </div>
                                    <div className="widget-content">
                                        <ul className="links-list clearfix">
                                            {Accident.map((item) => (
                                                <li key={item.id}>
                                                    <Link href={`/accident/${item.slug}`}>
                                                        {item.title}
                                                    </Link>
                                                </li>
                                            ))}
                                        </ul>
                                    </div>
                                </div>
                            </div>

                            <div className="col-lg-3 col-md-6 col-sm-12 footer-column">
                                <div className="footer-widget contact-widget">
                                    <div className="widget-title">
                                        <h3>CONTACT US</h3>
                                    </div>
                                    <div className="widget-content">
                                        <ul className="info-list">
                                            <li>
                                                <img
                                                    src="/assets/images/icons/icon-1.png"
                                                    alt=""
                                                />6 – 4335 Bloor Street West Etobicoke, M9C5S2
                                            </li>
                                            <li>
                                                <i className="icon-2"></i>
                                                <Link href="tel:647-722-3434">647-722-3434</Link>
                                            </li>
                                            <li>
                                                <i className="icon-26"></i>
                                                <Link href="mailto:example@info.com">
                                                    bloor@rapharehab.ca
                                                </Link>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div className="footer-bottom">
                    <div className="auto-container">
                        <div className="bottom-inner d-flex justify-content-center text-center">
                            <div className="copyright">
                                <p>
                                    © Copyright {new Date().getFullYear()} Rapha Rehab | Powered by{" "}
                                    <a
                                        href="https://metatroncubesolutions.com/"
                                        target="_blank"
                                        rel="noopener noreferrer"
                                        style={{ color: "#fff", fontWeight: "700" }}
                                    >
                                        MetatronCube
                                    </a>{" "}
                                    All Rights Reserved
                                </p>
                            </div>
                        </div>

                    </div>
                </div>

            </footer>
        </>
    )
}
