I honestly don't understand what the issue precisely is. Can you elaborate a little more?
I'm not seeing any foreach loop in your markup.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This is how my view looks like now, and I would like that each therapy has like a separate part in this div. https://imgur.com/a/owqtAkj
Here is my code:
<div class="grid md:grid-cols-3 gap-2 w-full mx-auto mt-11 text-gray-700">
<div class="md:col-span-1 ml-20">
<div class="sm:px-0 h-full bg-contain bg-no-repeat bg-center" style="background-image: url('/images/Expert.png')"></div>
</div>
<div class="ml-28 mb-12">
<div class="md:col-span-2 bg-white py-8 px-20">
<h2 class="mb-5 text-center">Appropriate therapy for your problem</h2>
<div class="flex flex-col md:flex-row md:max-w-xl rounded-lg bg-white shadow-lg">
<img class="w-full h-96 md:h-auto object-cover rounded-t-lg md:rounded-none md:rounded-l-lg" style="background-image: url('/images/Sikavica.jpg')" alt="" />
<div class="p-6 flex flex-col justify-start">
<h3 class="text-gray-700 text-base mb-4"
v-for="(therapy, id) in therapies" :key="id" :value="id">{{ therapy }}
</h3>
</div>
</div>
</div>
</div>
</div>
Why I feel confused is because this line v-for="(therapy, id) in therapies" :key="id" :value="id">{{ therapy }} is listing all the three groups of therapies, so I don't know how to format this one, for three that are appearing in view?
Please or to participate in this conversation.