2016-07-21 14:35:23 +02:00
|
|
|
<?php namespace App\Ninja\Datatables;
|
2016-05-23 18:52:20 +02:00
|
|
|
|
|
|
|
use URL;
|
|
|
|
|
|
|
|
class BankAccountDatatable extends EntityDatatable
|
|
|
|
{
|
|
|
|
public $entityType = ENTITY_BANK_ACCOUNT;
|
|
|
|
|
|
|
|
public function columns()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
[
|
|
|
|
'bank_name',
|
|
|
|
function ($model) {
|
|
|
|
return link_to("bank_accounts/{$model->public_id}/edit", $model->bank_name)->toHtml();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'bank_library_id',
|
2016-07-21 14:35:23 +02:00
|
|
|
function ($model) {
|
2016-05-23 18:52:20 +02:00
|
|
|
return 'OFX';
|
|
|
|
}
|
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function actions()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
[
|
|
|
|
uctrans('texts.edit_bank_account'),
|
|
|
|
function ($model) {
|
|
|
|
return URL::to("bank_accounts/{$model->public_id}/edit");
|
|
|
|
},
|
|
|
|
]
|
|
|
|
];
|
|
|
|
}
|
2016-07-21 14:35:23 +02:00
|
|
|
|
|
|
|
|
2016-05-23 18:52:20 +02:00
|
|
|
}
|