28 lines
505 B
PHP
28 lines
505 B
PHP
<?php
|
|
|
|
namespace App\DataTables\Shop;
|
|
|
|
use Yajra\DataTables\Html\Column;
|
|
use App\DataTables\ParentDataTable as DataTable;
|
|
use App\Models\Shop\ArticlePrice;
|
|
|
|
class ArticlePricessDataTable extends DataTable
|
|
{
|
|
public $model_name = 'ArticlePrices';
|
|
|
|
public function query(ArticlePrice $model)
|
|
{
|
|
$model = $model::with(['Article', 'ArticleAttributes']);
|
|
return self::buildQuery($model);
|
|
}
|
|
|
|
protected function getColumns()
|
|
{
|
|
return [
|
|
Column::make('name'),
|
|
self::makeColumnButtons(),
|
|
];
|
|
}
|
|
|
|
}
|