27 lines
1.2 KiB
PHP
27 lines
1.2 KiB
PHP
@if ((bool) ($data['enabled'] ?? true))
|
|
@php
|
|
$items = collect($data['items'] ?? [])->filter(static fn ($item) => (bool) ($item['enabled'] ?? true));
|
|
@endphp
|
|
|
|
@if ($items->isNotEmpty())
|
|
<section class="section" id="features">
|
|
<div class="wrap">
|
|
<div class="heading">
|
|
@if (filled($data['eyebrow'] ?? null))<span>{{ $data['eyebrow'] }}</span>@endif
|
|
@if (filled($data['heading'] ?? null))<h2>{{ $data['heading'] }}</h2>@endif
|
|
@if (filled($data['description'] ?? null))<p>{{ $data['description'] }}</p>@endif
|
|
</div>
|
|
<div class="grid three">
|
|
@foreach ($items as $item)
|
|
<article class="card">
|
|
<b>{{ str_pad((string) $loop->iteration, 2, '0', STR_PAD_LEFT) }}</b>
|
|
<h3>{{ $item['title'] ?? '' }}</h3>
|
|
@if (filled($item['description'] ?? null))<p>{{ $item['description'] }}</p>@endif
|
|
</article>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endif
|
|
@endif
|