23 lines
512 B
PHP
23 lines
512 B
PHP
<?php
|
|
|
|
namespace Modules\Option\Admin;
|
|
|
|
use Modules\Admin\Ui\AdminTable;
|
|
|
|
class OptionTable extends AdminTable
|
|
{
|
|
/**
|
|
* Make table response for the resource.
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
public function make()
|
|
{
|
|
return $this->newTable()
|
|
->editColumn('type', function ($option) {
|
|
return trans("option::options.form.option_types.{$option->type}");
|
|
})
|
|
->removeColumn('values');
|
|
}
|
|
}
|