@php $args = []; $routeParams = []; if($style->collection_id && $collection = $helper->getProductCollection(['id' => $style->collection_id])){ $args = $collection->urlParams; } if($style->isComponentData){ if($style->sorttype){ $args['sorttype'] = $style->sorttype; } if($style->categories){ $args['categories'] = is_array($style->categories)?implode(',', $style->categories):''; } if($style->match_label && $style->match_label != 'none' && $style->labels){ $args[$style->match_label == 'all' ? 'match_labels' : 'has_label'] = is_array($style->labels)?implode(',', $style->labels):''; } if($style->match_tag && $style->match_tag != 'none' && $style->tags){ $args[$style->match_tag == 'all' ? 'match_tags' : 'has_tag'] = is_array($style->tags)?implode(',', $style->tags):""; } $u = url_merge(route('web.products'), $args, null, null, true); } else{ $u = url_merge(route('web.products', ['style' => $style->id])); } @endphp
{{$style->name?$style->name:$style->title}}
{{$style->name?$style->name:$style->title}}