31 lines
632 B
PHP
31 lines
632 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(Product $model)
|
|
{
|
|
return self::buildQuery($model);
|
|
}
|
|
|
|
protected function getColumns()
|
|
{
|
|
return [
|
|
Column::make('name'),
|
|
Column::computed('action')
|
|
->exportable(false)
|
|
->printable(false)
|
|
->width(60)
|
|
->addClass('text-center'),
|
|
];
|
|
}
|
|
|
|
}
|