30 lines
824 B
PHP
30 lines
824 B
PHP
|
@props(['subCategory', 'items', 'bundle'])
|
||
|
|
||
|
@php
|
||
|
$index = 0;
|
||
|
@endphp
|
||
|
|
||
|
<div class="two-columns">
|
||
|
<h4>{!! $subCategory !!}</h4>
|
||
|
<div>
|
||
|
@foreach($items as $key => $item)
|
||
|
@if(is_string($item))
|
||
|
@if(Str::contains($item, '://'))
|
||
|
{!! (new \App\Classes\Link($item, '[1]', $bundle))->toHtmlElement() !!}
|
||
|
@else
|
||
|
<p>{{ $item }}</p>
|
||
|
@endif
|
||
|
@else
|
||
|
@php
|
||
|
$index++;
|
||
|
@endphp
|
||
|
@if(Str::contains($key, '://'))
|
||
|
{!! (new \App\Classes\Link($key, '[' . $index . ']', $bundle))->toHtmlElement() !!}
|
||
|
@else
|
||
|
{{ $key }}
|
||
|
@endif
|
||
|
@endif
|
||
|
@endforeach
|
||
|
</div>
|
||
|
</div>
|