Display empty_state partial on transactions' index view when necessary
MODIFY
resources/views/transactions/index.blade.php
resources/views/transactions/index.blade.php
</div>
@endforeach
</div>
+ @if ($yearMonths)
@foreach ($yearMonths as $key => $transactions)
<h2 class="mt-3 mb-2">{{ __('calendar.months.' . ltrim(explode('-', $key)[1], 0)) }}, {{ explode('-', $key)[0] }}</h2>
<div class="box">
@endforeach
</div>
@endforeach
+ @else
+ <div class="box mt-3">
+ @include('partials.empty_state', ['payload' => 'transactions'])
+ </div>
+ @endif
</div>
@endsection

Display empty_state partial on transactions' index view when necessary