Translate payment type in datatables #1225

This commit is contained in:
Hillel Coren 2017-04-18 12:29:35 +03:00
parent b4b8eb77e0
commit 03a1f01d7f

View File

@ -52,7 +52,7 @@ class PaymentDatatable extends EntityDatatable
[
'method',
function ($model) {
return ($model->payment_type && ! $model->last4) ? $model->payment_type : ($model->account_gateway_id ? $model->gateway_name : '');
return ($model->payment_type && ! $model->last4) ? trans('texts.payment_type_' . $model->payment_type) : ($model->account_gateway_id ? $model->gateway_name : '');
},
],
[