openclassify/addons/default/visiosoft/location-module/src/District/Table/DistrictTableBuilder.php
2020-03-31 12:45:53 +03:00

85 lines
1.6 KiB
PHP

<?php namespace Visiosoft\LocationModule\District\Table;
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
class DistrictTableBuilder extends TableBuilder
{
/**
* The table views.
*
* @var array|string
*/
protected $views = [];
/**
* The table filters.
*
* @var array|string
*/
protected $filters = [
'search' => [
'filter' => 'search',
'fields' => [
'name',
'slug',
'order',
],
],
];
/**
* The table columns.
*
* @var array|string
*/
protected $columns = [];
/**
* The table buttons.
*
* @var array|string
*/
protected $buttons = [
'add_sub_neighborhoods' => [
'icon' => 'fa fa-caret-square-o-down',
'type' => 'success',
'href' => '/admin/location/neighborhoods/create?neighborhoods={entry.id}'
],
'sub_neighborhoods' => [
'icon' => 'fa fa-caret-square-o-down',
'type' => 'success',
'href' => '/admin/location/neighborhoods?district={entry.id}'
],
'edit'
];
/**
* The table actions.
*
* @var array|string
*/
protected $actions = [
'delete'
];
/**
* The table options.
*
* @var array
*/
protected $options = [
'order_by' => [
'order' => 'ASC',
],
];
/**
* The table assets.
*
* @var array
*/
protected $assets = [];
}