[ 'url' => guard_url('accessory/category/new'), 'method' => 'GET', ], 'create' => [ 'url' => guard_url('accessory/category/create'), 'method' => 'GET', ], 'store' => [ 'url' => guard_url('accessory/category'), 'method' => 'POST', ], 'update' => [ 'url' => guard_url('accessory/category'), 'method' => 'PUT', ], 'list' => [ 'url' => guard_url('accessory/category'), 'method' => 'GET', ], 'delete' => [ 'url' => guard_url('accessory/category'), 'method' => 'DELETE', ], ]; self::$search = [ 'name' => [ "type" => 'text', "label" => trans('accessory::accessory.label.name'), "placeholder" => trans('accessory::accessory.placeholder.name'), "rules" => '', "group" => "main", "section" => "first", "col" => "4", "roles" => [], ] ]; self::$orderBy = [ 'created_at' => trans('accessory::accessory.label.created_at'), 'name' => trans('accessory::accessory.label.name'), 'status' => trans('accessory::accessory.label.status'), ]; self::$groups = [ 'main' => trans('accessory::accessory.groups.main'), 'details' => trans('accessory::accessory.groups.details'), 'images' => trans('accessory::accessory.groups.images'), 'settings' => trans('accessory::accessory.groups.settings'), ]; self::$list = [ [ 'key' => "ref", 'label' => trans('accessory::accessory.label.ref'), 'sortable' => 'true', 'roles' => [], ], [ 'key' => "id", 'label' => trans('accessory::accessory.label.id'), 'sortable' => 'true', 'roles' => [], ], [ 'key' => "name", 'label' => trans('accessory::accessory.label.name'), 'sortable' => 'true', 'roles' => [], ], [ 'key' => "status", 'label' => trans('accessory::accessory.label.status'), 'sortable' => 'true', 'roles' => [], ], ]; self::$fields = [ 'parent_id' => [ "element" => 'numeric', "type" => 'numeric', "label" => trans('accessory::category.label.parent_id'), "placeholder" => trans('accessory::category.placeholder.parent_id'), "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'level' => [ "element" => 'numeric', "type" => 'numeric', "label" => trans('accessory::category.label.level'), "placeholder" => trans('accessory::category.placeholder.level'), "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], 'name' => [ "element" => 'text', "type" => 'text', "label" => trans('accessory::category.label.name'), "placeholder" => trans('accessory::category.placeholder.name'), "rules" => '', "group" => "main", "section" => "first", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ]; return new static(); } }