Fix frequency translation in portal
This commit is contained in:
parent
7a5215e6a0
commit
37db236a7d
1 changed files with 3 additions and 1 deletions
|
|
@ -240,7 +240,9 @@ class InvoiceRepository extends BaseRepository
|
|||
|
||||
$table = \Datatable::query($query)
|
||||
->addColumn('frequency', function ($model) {
|
||||
return trans('texts.freq_' . \Str::snake($model->frequency));
|
||||
$frequency = strtolower($model->frequency);
|
||||
$frequency = preg_replace('/\s/', '_', $frequency);
|
||||
return trans('texts.freq_' . $frequency);
|
||||
})
|
||||
->addColumn('start_date', function ($model) {
|
||||
return Utils::fromSqlDate($model->start_date);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue