| 123456789101112131415161718192021222324 |
- {{--
- Blade-шаблон блока «Почему мы».
- Получает переменную $data (массив из Block::render()):
- $data['label'] — надпись над заголовком
- $data['heading'] — заголовок секции
- $data['items'] — массив карточек: icon, title, text
- --}}
- <section class="section sec-white">
- <div class="container">
- <div class="sh reveal">
- <div class="sh-label">{{ $data['label'] ?? '' }}</div>
- <h2>{{ $data['heading'] ?? '' }}</h2>
- </div>
- <div class="why-grid stagger">
- @foreach($data['items'] ?? [] as $item)
- <div class="why-card">
- <div class="why-icon">{{ $item['icon'] ?? '' }}</div>
- <h4>{{ $item['title'] ?? '' }}</h4>
- <p>{{ $item['text'] ?? '' }}</p>
- </div>
- @endforeach
- </div>
- </div>
- </section>
|