<?php

namespace App\Datatables\Admin\Shop;

use App\Datatables\ParentDataTable as DataTable;
use App\Models\Shop\Unity;
use Yajra\DataTables\Html\Column;

class UnitiesDataTable extends DataTable
{
    public $model_name = 'unities';

    public function query(Unity $model)
    {
        return $this->buildQuery($model);
    }

    protected function getColumns()
    {
        return [
            Column::make('value')->title('Valeur'),
            $this->makeColumnButtons(),
        ];
    }
}
