Files
opensem/app/Datatables/OrdersDataTable.php
2020-04-13 01:43:04 +02:00

33 lines
697 B
PHP

<?php
namespace App\DataTables;
use Yajra\DataTables\Html\Column;
use App\DataTables\ParentDataTable as DataTable;
use App\Models\Shop\Product;
class ProductsDataTable extends DataTable
{
public $model_name = 'Products';
public function query(Product $model)
{
return self::buildQuery($model);
}
protected function getColumns()
{
return [
Column::make('name'),
Column::make('alias'),
Column::make('latin'),
Column::computed('action')
->exportable(false)
->printable(false)
->width(60)
->addClass('text-center'),
];
}
}