Skip to content

A free open source IT asset/license management system

1.5 KB
Raw Blame
<?php

namespace App\Presenters;

class CompanyIntegrationsPresenter extends Presenter
{
    /**
     * Json Column Layout for bootstrap table
     *
     * @return string
     */
    public static function dataTableLayout()
    {
        $layout = [
            [
                'field' => 'name',
                'searchable' => true,
                'sortable' => true,
                'switchable' => false,
                'title' => trans('admin/companies/table.name'),
                'visible' => true,
                'formatter' => 'companiesLinkFormatter',
            ], [
                'field' => 'webhook_selected',
                'searchable' => false,
                'sortable' => true,
                'switchable' => false,
                'title' => trans('admin/settings/general.webhook_provider'),
                'visible' => true,
                'formatter' => 'companyWebhookIntegrationFormatter',
                'class' => 'text-center',
            ],
            [
                'field' => 'actions',
                'scope' => 'col',
                'searchable' => false,
                'sortable' => false,
                'switchable' => false,
                'title' => trans('table.actions'),
                'visible' => true,
                'formatter' => 'companyWebhookActionsFormatter',
                'printIgnore' => true,
                'class' => 'hidden-print',
            ],
        ];

        return json_encode($layout);
    }
}