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