Replace hard-coded currency on views for earnings and spendings with user's selected currency
MODIFY
resources/views/earnings/index.blade.php
resources/views/earnings/index.blade.php
<div class="color-dark">{{ $earning->description }}</div>
<div class="mt-1" style="font-size: 14px; font-weight: 600;">{{ $earning->formatted_happened_on }}</div>
</div>
- <div class="row__column row__column--middle color-dark">&euro; {{ $earning->formatted_amount }}</div>
+ <div class="row__column row__column--middle color-dark">{!! $currency !!} {{ $earning->formatted_amount }}</div>
<div class="row__column row__column--middle row__column--compact">
<form method="POST" action="/earnings/{{ $earning->id }}">
{{ method_field('DELETE') }}

MODIFY
resources/views/spendings/index.blade.php
resources/views/spendings/index.blade.php
@include('partials.tag', ['payload' => $spending->tag])
@endif
</div>
- <div class="row__column row__column--middle color-dark">&euro; {{ $spending->formatted_amount }}</div>
+ <div class="row__column row__column--middle color-dark">{!! $currency !!} {{ $spending->formatted_amount }}</div>
<div class="row__column row__column--middle row__column--compact">
<form method="POST" action="/spendings/{{ $spending->id }}">
{{ method_field('DELETE') }}

Replace hard-coded currency on views for earnings and spendings with user's selected currency