// * Showing Testimonial data

let testiData = [
  {
    id: 1,
    name: "AMELIA",
    review:
      "I would want to express my gratitude to Fabcare Home Care for sending a companion to visit my mother-in-law, who resides in an assisted living facility. Despite searching through numerous agencies, we were unable to locate anyone. The companion from Fabcare has been amazing and has not only assisted my mother-in-law but also decreased the amount of tension in my house",
    image: "../img/girl.png",
    class: "active",
  },
  {
    id: 2,
    name: "DAVID",
    review:
      "Fantastic service, excellent communication, responsibility, and keeping their word. Fabcare consistently identifies excellent candidates who can be relied upon. Anyone in need of high-quality care for oneself or a loved one would receive my highest recommendation for your service.",
    image: "../img/senior_client.webp",
  },
  {
    id: 3,
    name: "WILLIAM",
    review:
      "I want to express my gratitude for the world`s best care that fabcare just gave my mother not only for the technical assistance and support they provided for my mother, but also for the encouraging and emotional support, I am incredibly grateful and pleased",
    image: "../img/male.png",
  },
  {
    id: 4,
    name: "ANDREW",
    review:
      "I just wanted to say thanks once more for all your assistance. You have great team. I wouldn`t think twice about calling you again, and I`d definitely suggest you. Once more, I want to thank you for saving us on multiple occasions.",
    image: "../img/uncle2.jpg",
  },
];

let showTesiData = "";
testiData.map(
  (item) =>
    (showTesiData += ` <div class="carousel-item ${item.class}">
    <div class="testiBox">
        <div class="clientImg">
            <img src=${item.image} alt="">
        </div>
        <div class="clientName font-weight-bold"> ${item.name} </div>
        <div class="clientReview">${item.review}</div>
    </div>
    </div> `)
);

document.getElementById("allTestiData").innerHTML = showTesiData;
