first of all, the question is not about the solution, but about the best practice.
my blade is:
@if (!empty($amount))
<div class="amount {{$color}}">
{{$amount}}
</div>
@endif
color class is defined in service by amount. But I can bet, that is bad architectural solution.
So I need an advice for the best practice in laravel for customizing blade class.