27 lines
425 B
PHP
27 lines
425 B
PHP
<?php
|
|
|
|
namespace App\DataTables\Shop;
|
|
|
|
use Yajra\DataTables\Html\Column;
|
|
use App\DataTables\ParentDataTable as DataTable;
|
|
use App\Models\Shop\Invoice;
|
|
|
|
class InvoicesDataTable extends DataTable
|
|
{
|
|
public $model_name = 'Invoices';
|
|
|
|
public function query(Invoice $model)
|
|
{
|
|
return self::buildQuery($model);
|
|
}
|
|
|
|
protected function getColumns()
|
|
{
|
|
return [
|
|
Column::make('name'),
|
|
self::makeColumnButtons(),
|
|
];
|
|
}
|
|
|
|
}
|