I am taking data from a BD and depending on the number that I return, it has to show one class or another. I'm doing something like that but it does not work.
@if ($vivienda->etiqueta == 1)
<p class="pLab">¡ {{ $vivienda->etiqueta }} !</p>
@elseif ($vivienda->etiqueta == 2)
<p class="pLab2">¡ {{ $vivienda->etiqueta }} !</p>
@endif
If I put in place of elseif
I put a else
if it works, but of course I have to do up to 7 different states.