protected function getWidgtedDetalhes($layout, $array, $detalhe)
 {
     if (!empty($array)) {
         $html = "<{$layout['container']} id='{$layout['container_id']}' class='{$layout['container_class']}'>";
         if ($layout['title']) {
             $layout['title_label'] = strtoupper(parent::pluralize($detalhe['label']));
             $html .= $this->setTitleLabel($layout);
         }
         $item = '';
         foreach ($array as $key => $value) {
             if ($detalhe['label'] == 'cor') {
                 $cor = $detalhe['referencia']::findFirst("nome = '{$value}' ");
                 $resultado = "<div class='sideColor' style='background-color:{$cor->hexa}'></div> " . $value;
             } else {
                 $resultado = $value;
             }
             $replaces = array($layout['item_class'], 'filtro-detalhe ' . $layout['link_class'], 'javascript:;', "data-categoria='" . $layout['categoria_id'] . "' data-tipo='" . $detalhe['label'] . "' data-valor='" . $value . "'", $resultado, '');
             $item .= parent::replaceWraper(6, $replaces, $layout['item_wrap']);
         }
         $replaces = array($layout['base_class'], $item);
         $html .= parent::replaceWraper(2, $replaces, $layout['wrap']);
         $html .= "</{$layout['container']}>";
         return $html;
     }
 }