@props(['subCategory', 'items', 'bundle']) @php $index = 0; @endphp

{!! $subCategory !!}

@foreach($items as $key => $item) @if(is_string($item)) @if(Str::contains($item, '://')) {!! App\Models\Url::from($item, $bundle)->toHtmlElement('[1]') !!} @else

{{ $item }}

@endif @else @php $index++; @endphp @if(Str::contains($key, '://')) {!! App\Models\Url::from($key, $bundle)->toHtmlElement('[' . $index . ']') !!} @else {{ $key }} @endif @endif @endforeach