Displaying info messages in dashboard

If you want to display messages to your clients if certain conditions are met, you can easily do so in the clients/dashboard.twig. Below are a few different examples for your inspiration.

If client does not have a subscription

{% if not user.subscriptions %}
	<div class="alert alert-warning">
		<p>You’re currently not on a subscription plan.
			<a href="/portal/services">Click here</a> to see the available subscriptions.
		</p>
	</div>
{% endif %}

Remind to fill out intake form

{% if 1 in orders|column('status') %}
	<div class="alert alert-warning">
		<p>You have intake forms to fill out. Please click on the “Start order” button below.</p>
	</div>
{% endif %}

Show account manager

{% if user.managers[0].id == 66 %}
	<div class="alert alert-info">
    	Your account manager is Deian
	</div>
{% endif %}

Further information