formatting

This commit is contained in:
Denis Duliçi 2022-06-02 10:26:07 +03:00
parent 506e3ec381
commit 61a35c6295
4 changed files with 34 additions and 32 deletions

View File

@ -1082,14 +1082,14 @@ abstract class Show extends Component
return $textRecurringType; return $textRecurringType;
} }
$default_key = config('type.' . $type . '.translation.prefix'); $default_key = config('type.transaction.' . $type . '.translation.transactions');
$translation = $this->getTextFromConfig($type, 'recurring_tye', $default_key); $translation = $this->getTextFromConfig($type, 'recurring_type', $default_key);
if (! empty($translation)) { if (! empty($translation)) {
return $translation; return $translation;
} }
return 'general.revenues'; return 'general.incomes';
} }
} }

View File

@ -326,7 +326,7 @@ return [
'translation' => [ 'translation' => [
'prefix' => 'transactions', // this translation file name. 'prefix' => 'transactions', // this translation file name.
'new' => 'general.recurring_incomes', 'new' => 'general.recurring_incomes',
'transactions' => 'general.expenses', 'transactions' => 'general.incomes',
], ],
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png', 'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
'script' => [ 'script' => [
@ -377,7 +377,9 @@ return [
//'create' => 'create-banking-transactions', //'create' => 'create-banking-transactions',
], ],
'translation' => [ 'translation' => [
'prefix' => 'transactions', // this translation file name.
'new' => 'general.recurring_expenses', 'new' => 'general.recurring_expenses',
'transactions' => 'general.expenses',
], ],
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png', 'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
'script' => [ 'script' => [

View File

@ -26,7 +26,7 @@
@if ($next = $transaction->recurring->getNextRecurring()) @if ($next = $transaction->recurring->getNextRecurring())
{{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }} {{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
<br> <br>
@if (($transaction->recurring->limit_by == 'count')) @if ($transaction->recurring->limit_by == 'count')
@if ($transaction->recurring->limit_count == 0) @if ($transaction->recurring->limit_count == 0)
{{ trans('recurring.ends_never') }} {{ trans('recurring.ends_never') }}
@else @else