¨4.0.1¨
This commit is contained in:
@@ -14,6 +14,7 @@ class AttributeSetTabs extends Tabs
|
||||
->add($this->general());
|
||||
}
|
||||
|
||||
|
||||
private function general()
|
||||
{
|
||||
return tap(new Tab('general', trans('attribute::attribute_sets.tabs.general')), function (Tab $tab) {
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
namespace Modules\Attribute\Admin;
|
||||
|
||||
use Modules\Admin\Ui\AdminTable;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
class AttributeTable extends AdminTable
|
||||
{
|
||||
/**
|
||||
* Make table response for the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function make()
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@ class AttributeTabs extends Tabs
|
||||
->add($this->values());
|
||||
}
|
||||
|
||||
|
||||
private function general()
|
||||
{
|
||||
return tap(new Tab('general', trans('attribute::admin.tabs.general')), function (Tab $tab) {
|
||||
@@ -30,12 +31,14 @@ class AttributeTabs extends Tabs
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private function getAttributeSets()
|
||||
{
|
||||
return AttributeSet::all()->sortBy('name')->pluck('name', 'id')
|
||||
->prepend(trans('admin::admin.form.please_select'), '');
|
||||
}
|
||||
|
||||
|
||||
private function values()
|
||||
{
|
||||
return tap(new Tab('values', trans('attribute::admin.tabs.values')), function (Tab $tab) {
|
||||
|
||||
Reference in New Issue
Block a user