20 lines
624 B
PHP
20 lines
624 B
PHP
<ul class="cards">
|
|
@foreach ($block['items'] as $item)
|
|
<li class="card">
|
|
@if (filled($item['url'] ?? null))
|
|
<a href="{{ $item['url'] }}">
|
|
<h3>{{ $item['title'] }}</h3>
|
|
@if (filled($item['text'] ?? null))
|
|
<p>{{ $item['text'] }}</p>
|
|
@endif
|
|
</a>
|
|
@else
|
|
<h3>{{ $item['title'] }}</h3>
|
|
@if (filled($item['text'] ?? null))
|
|
<p>{{ $item['text'] }}</p>
|
|
@endif
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
</ul>
|