Hide most expensive tags on dashboard if not enough data is present
MODIFY
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
</div>
</div>
</div>
+ @if (count($mostExpensiveTags))
<div class="box mb-3">
<div class="box__section box__section--header">Most Expensive {{ __('models.tags') }}</div>
- @if (count($mostExpensiveTags))
@foreach ($mostExpensiveTags as $index => $tag)
<div class="box__section row row--seperate">
<div class="row__column row__column--compact mr-2" style="width: 50px;">
</div>
</div>
@endforeach
- @else
- <div class="box__section">Not enough data</div>
- @endif
</div>
</div>
+ @endif
+ </div>
@endsection
@section('scripts')

Hide most expensive tags on dashboard if not enough data is present