Translate labels on create views for earnings and spendings
MODIFY
resources/lang/en/fields.php
resources/lang/en/fields.php
@@ -9,5 +9,9 @@ return [
'language' => 'Language',
'theme' => 'Theme',
'currency' => 'Currency',
- 'weekly_report' => 'Weekly Report'
+ 'weekly_report' => 'Weekly Report',
+
+ 'date' => 'Date',
+ 'description' => 'Description',
+ 'amount' => 'Amount'
];

MODIFY
resources/lang/nl/fields.php
resources/lang/nl/fields.php
@@ -9,5 +9,9 @@ return [
'language' => 'Taal',
'theme' => 'Thema',
'currency' => 'Valuta',
- 'weekly_report' => 'Wekelijks Verslag'
+ 'weekly_report' => 'Wekelijks Verslag',
+
+ 'date' => 'Datum',
+ 'description' => 'Omschrijving',
+ 'amount' => 'Bedrag'
];

MODIFY
resources/views/earnings/create.blade.php
resources/views/earnings/create.blade.php
{{ csrf_field() }}
<div class="box__section">
<div class="input input--small">
- <label>Date</label>
+ <label>{{ __('fields.date') }}</label>
<DatePicker></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" />
@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" />
@include('partials.validation_error', ['payload' => 'amount'])
</div>

MODIFY
resources/views/spendings/create.blade.php
resources/views/spendings/create.blade.php
{{ csrf_field() }}
<div class="box__section">
<div class="input input--small">
- <label>Tag</label>
+ <label>{{ __('models.tag') }}</label>
<select name="tag_id">
<option value="">-</option>
@foreach ($tags as $tag)
@include('partials.validation_error', ['payload' => 'tag_id'])
</div>
<div class="input input--small">
- <label>Date</label>
+ <label>{{ __('fields.date') }}</label>
<DatePicker></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" />
@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" />
@include('partials.validation_error', ['payload' => 'amount'])
</div>

Translate labels on create views for earnings and spendings