Add tariff unities management
This commit is contained in:
25
app/Datatables/Shop/TariffUnitiesDataTable.php
Normal file
25
app/Datatables/Shop/TariffUnitiesDataTable.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Datatables\Shop;
|
||||
|
||||
use Yajra\DataTables\Html\Column;
|
||||
use App\Datatables\ParentDataTable as DataTable;
|
||||
use App\Models\Shop\TariffUnity;
|
||||
|
||||
class TariffUnitiesDataTable extends DataTable
|
||||
{
|
||||
public $model_name = 'tariff_unities';
|
||||
|
||||
public function query(TariffUnity $model)
|
||||
{
|
||||
return $this->buildQuery($model);
|
||||
}
|
||||
|
||||
protected function getColumns()
|
||||
{
|
||||
return [
|
||||
Column::make('value')->title('Valeur'),
|
||||
$this->makeColumnButtons(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user