first upload all files
This commit is contained in:
22
Modules/Option/Admin/OptionTable.php
Normal file
22
Modules/Option/Admin/OptionTable.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user