---
title: "faq-03"
description: "Two-column FAQ: title, text and a contact button on one side, an accordion of questions on the other."
category: "FAQ"
---
# faq-03
Two-column FAQ: title, text and a contact button on one side, an accordion of questions on the other.
## Installation
```bash
php artisan ui:add-block faq-03
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [accordion](https://laralcn-ui.abdulkadersafi.com/ar/components/accordion.md) — the CLI installs it for you.
- component: [button](https://laralcn-ui.abdulkadersafi.com/ar/components/button.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/faq-03.blade.php`
```blade
{{--
Two-column FAQ: title, text and a contact button beside an accordion of
questions. 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 $i => $item)
{{ $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
```