Skip to content

Commit 167eccd

Browse files
committed
Roll back to allow HTML separator
1 parent 18a938a commit 167eccd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

resources/views/components/tools/filter-pills/item.blade.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
{{
66
$attributes->merge($this->getFilterPillsItemAttributes)
77
->class([
8-
'inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4 capitalize' => $isTailwind && ($this->getFilterPillsItemAttributes['default-styling'] ?? true),
9-
'bg-indigo-100 text-indigo-800 dark:bg-indigo-200 dark:text-indigo-900' => $isTailwind && ($this->getFilterPillsItemAttributes['default-colors'] ?? true),
10-
'badge badge-pill badge-info d-inline-flex align-items-center' => $isBootstrap4 && ($this->getFilterPillsItemAttributes['default-styling'] ?? true),
11-
'badge rounded-pill bg-info d-inline-flex align-items-center' => $isBootstrap5 && ($this->getFilterPillsItemAttributes['default-styling'] ?? true),
8+
'inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4 capitalize' => $isTailwind && $this->getFilterPillsItemAttributes['default-styling'],
9+
'bg-indigo-100 text-indigo-800 dark:bg-indigo-200 dark:text-indigo-900' => $isTailwind && $this->getFilterPillsItemAttributes['default-colors'],
10+
'badge badge-pill badge-info d-inline-flex align-items-center' => $isBootstrap4 && $this->getFilterPillsItemAttributes['default-styling'],
11+
'badge rounded-pill bg-info d-inline-flex align-items-center' => $isBootstrap5 && $this->getFilterPillsItemAttributes['default-styling'],
1212
])
1313
->except(['default-styling', 'default-colors'])
1414
}}
1515
>
1616
{{ $filterPillTitle }}:
1717

1818
@if(is_array($filterPillValue))
19-
{{ implode($separator, $filterPillValue) }}
19+
@foreach($filterPillValue as $filterPillArrayValue)
20+
{{ $filterPillArrayValue }}{!! !$loop->last ? $separator : '' !!}
21+
@endforeach
2022
@else
2123
{{ $filterPillValue }}
2224
@endif

0 commit comments

Comments
 (0)