---
title: "faq-06"
description: "Two-column FAQ: title, text and a contact button beside an always-open list of questions and answers."
category: "FAQ"
---
# faq-06
Two-column FAQ: title, text and a contact button beside an always-open list of questions and answers.
## Installation
```bash
php artisan ui:add-block faq-06
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [button](https://laralcn-ui.abdulkadersafi.com/ar/components/button.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/faq-06.blade.php`
```blade
{{--
Two-column FAQ: title, text and a contact button beside an always-open
list of questions and answers. Every piece of content is a prop.
Each item is ['question' => ..., 'answer' => ...]. Set :schema="true" to
print FAQPage JSON-LD for search engines.
--}}
@props([
'heading' => 'FAQs',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.',
'items' => array_fill(0, 5, [
'question' => 'Question text goes here',
'answer' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.',
]),
'ctaLabel' => 'Contact',
'ctaHref' => '#',
'schema' => false,
])
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
{{ $heading }}
{{ $description }}
{{ $ctaLabel }}
@foreach ($items as $item)
{{ $item['question'] ?? '' }}
{{ $item['answer'] ?? '' }}
@endforeach
@if ($schema)
@php
// Built in a php block: Blade would read the '@context' key below as a directive anywhere else.
$faqSchema = [
'@context' => 'https://schema.org',
'@type' => 'FAQPage',
'mainEntity' => array_map(fn ($item) => [
'@type' => 'Question',
'name' => $item['question'] ?? '',
'acceptedAnswer' => ['@type' => 'Answer', 'text' => $item['answer'] ?? ''],
], array_values($items)),
];
@endphp
@endif
```