In the online store there is a history of orders of the User, and there are two types of Users: Eureka and Physics. And the trick is that for Yurikov more information is shown in the history of orders, not for Physicists. And because of this, in a template that displays a history of orders all kinds of ifs appear, such as
{% if user.isB2b() %} <div>bla-bla-bla</div> {% endif %} So besides this, our Controller is increasing, which should receive additional. data from services for Yurikov.
Is there any way to make it more beautiful, transparent? Maybe there are some techniques? I don’t even have ideas ...