Reflect color in sidenav if one is given

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-10-26 10:48:42 -07:00
parent 476a5cbc02
commit dea0fcefbd

View file

@ -420,7 +420,9 @@
@if (count($status_navs) > 0)
@foreach ($status_navs as $status_nav)
<li><a href="{{ route('statuslabels.show', ['statuslabel' => $status_nav->id]) }}">
<i class="fas fa-circle text-grey fa-fw" aria-hidden="true"></i>
<i class="fas fa-circle text-grey fa-fw" aria-hidden="true"{!! ($status_nav->color!='' ? ' style="color: '.e($status_nav->color).'"' : '') !!}>
</i>
{{ $status_nav->name }} ({{ $status_nav->asset_count }})</a></li>
@endforeach
@endif