So I have this code that should display the pricing depending on what the user selected.
( I am using alpine.js to do so)
Everything on the JS sid is working as expected except, however the side that is initialy set to display non is always empty:
Template:
<div class="pricing-ammount" x-show="monthlySubscription === true">
{{- $plans.price_monthly | safeHTML -}}
</div>
<div class="pricing-ammount" x-show="monthlySubscription === false">
{{- $plans.price | safeHTML -}}
</div>
This is how it is rendered
<div class="pricing-ammount" x-show="monthlySubscription === true" style="display: none;"></div>
<div class="pricing-ammount" x-show="monthlySubscription === false">49<span>€</span> <small>per month</small></div>