"id",
"searchable" => false,
"sortable" => true,
"switchable" => true,
"title" => trans('general.id'),
"visible" => false
],[
"field" => "name",
"searchable" => true,
"sortable" => true,
"switchable" => true,
"title" => trans('admin/companies/table.name'),
"visible" => true,
"formatter" => 'companiesLinkFormatter',
],[
"field" => "image",
"searchable" => false,
"sortable" => true,
"switchable" => true,
"title" => trans('general.image'),
"visible" => true,
"formatter" => 'imageFormatter',
],[
"field" => "users_count",
"searchable" => false,
"sortable" => true,
"title" => ''.trans('general.users').'',
"visible" => true,
],[
"field" => "assets_count",
"searchable" => false,
"sortable" => true,
"title" => ''.trans('general.assets').'',
"visible" => true,
],[
"field" => "licenses_count",
"searchable" => false,
"sortable" => true,
"visible" => true,
"title" => ' '.trans('general.licenses').'',
],[
"field" => "accessories_count",
"searchable" => false,
"sortable" => true,
"visible" => true,
"title" => ' '.trans('general.accessories').'',
],[
"field" => "consumables_count",
"searchable" => false,
"sortable" => true,
"visible" => true,
"title" => ' '.trans('general.consumables').'',
],[
"field" => "components_count",
"searchable" => false,
"sortable" => true,
"visible" => true,
"title" => ' '.trans('general.components').'',
],[
"field" => "updated_at",
"searchable" => false,
"sortable" => true,
"visible" => false,
"title" => trans('general.updated_at'),
],[
"field" => "created_at",
"searchable" => false,
"sortable" => true,
"visible" => false,
"title" => trans('general.created_at'),
],[
"field" => "actions",
"searchable" => false,
"sortable" => false,
"switchable" => false,
"title" => trans('table.actions'),
"visible" => true,
"formatter" => "companiesActionsFormatter",
]
];
return json_encode($layout);
}
/**
* Link to this companies name
* @return string
*/
public function nameUrl()
{
return (string) link_to_route('companies.show', $this->name, $this->id);
}
/**
* Url to view this item.
* @return string
*/
public function viewUrl()
{
return route('companies.show', $this->id);
}
}