Fix empty list on dashboard view
MODIFY
resources/views/dashboard/index.blade.php
resources/views/dashboard/index.blade.php
</div>
</div>
<h2 class="spacing-top-large spacing-bottom-medium">Budgets</h2>
+ @if ($budgets->count())
<ul class="box">
@foreach ($budgets as $budget)
<li>
</li>
@endforeach
</ul>
+ @else
+ <div class="box spacing-small">You don't have any budgets</div>
+ @endif
<div class="row spacing-top-large">
<div class="column">
<h2 class="spacing-bottom-medium">Earnings</h2>
+ @if ($budgets->count())
<ul class="box">
@foreach ($earnings as $earning)
<li>
</li>
@endforeach
</ul>
+ @else
+ <div class="box spacing-small">You don't have any earnings</div>
+ @endif
</div>
<div class="column">
<h2 class="spacing-bottom-medium">Spendings</h2>
+ @if ($budgets->count())
<ul class="box">
@foreach ($spendings as $spending)
<li>
</li>
@endforeach
</ul>
+ @else
+ <div class="box spacing-small">You don't have any spendings</div>
+ @endif
</div>
</div>
@endsection

Fix empty list on dashboard view