Replace hard-coded English with translations on pages for editing earnings and spendings
MODIFY
resources/views/earnings/edit.blade.php
resources/views/earnings/edit.blade.php
{{ csrf_field() }}
<div class="box__section">
<div class="input input--small">
- <label>Date</label>
+ <label>{{ __('fields.date') }}</label>
<DatePicker start-date="{{ $earning->happened_on }}"></DatePicker>
@include('partials.validation_error', ['payload' => 'date'])
</div>
@include('partials.validation_error', ['payload' => 'description'])
</div>
<div class="input input--small mb-0">
- <label>Amount</label>
+ <label>{{ __('fields.amount') }}</label>
<input type="text" name="amount" value="{{ $earning->formatted_amount }}" />
@include('partials.validation_error', ['payload' => 'amount'])
</div>

MODIFY
resources/views/spendings/edit.blade.php
resources/views/spendings/edit.blade.php
{{ csrf_field() }}
<div class="box__section">
<div class="input input--small">
- <label>Date</label>
+ <label>{{ __('fields.date') }}</label>
<DatePicker start-date="{{ $spending->happened_on }}"></DatePicker>
@include('partials.validation_error', ['payload' => 'date'])
</div>
<div class="input input--small">
- <label>Description</label>
+ <label>{{ __('fields.description') }}</label>
<input type="text" name="description" value="{{ $spending->description }}" />
@include('partials.validation_error', ['payload' => 'description'])
</div>
<div class="input input--small mb-0">
- <label>Amount</label>
+ <label>{{ __('fields.amount') }}</label>
<input type="text" name="amount" value="{{ $spending->formatted_amount }}" />
@include('partials.validation_error', ['payload' => 'amount'])
</div>

Replace hard-coded English with translations on pages for editing earnings and spendings