1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00
invoiceninja/app/Ninja/Datatables/SubscriptionDatatable.php
2019-01-30 22:25:37 +11:00

41 lines
877 B
PHP

<?php
namespace App\Ninja\Datatables;
use URL;
class SubscriptionDatatable extends EntityDatatable
{
public $entityType = ENTITY_SUBSCRIPTION;
public function columns()
{
return [
[
'event',
function ($model) {
return trans('texts.subscription_event_' . $model->event);
},
],
[
'target',
function ($model) {
return $this->showWithTooltip($model->target, 40);
},
],
];
}
public function actions()
{
return [
[
uctrans('texts.edit_subscription'),
function ($model) {
return URL::to("subscriptions/{$model->public_id}/edit");
},
],
];
}
}