---
title: "contact-05"
description: "Two columns: heading with email, phone and address links on one side, a short contact form on the other."
category: "Contact"
---
# contact-05
Two columns: heading with email, phone and address links on one side, a short contact form on the other.
## Installation
```bash
php artisan ui:add-block contact-05
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [button](https://laralcn-ui.abdulkadersafi.com/ar/components/button.md) — the CLI installs it for you.
- component: [checkbox](https://laralcn-ui.abdulkadersafi.com/ar/components/checkbox.md) — the CLI installs it for you.
- component: [input](https://laralcn-ui.abdulkadersafi.com/ar/components/input.md) — the CLI installs it for you.
- component: [label](https://laralcn-ui.abdulkadersafi.com/ar/components/label.md) — the CLI installs it for you.
- component: [textarea](https://laralcn-ui.abdulkadersafi.com/ar/components/textarea.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/contact-05.blade.php`
```blade
{{--
Every piece of content is a prop, so you can drive this block from a CMS.
A field is ['name' =>, 'label' =>, 'type' =>, 'placeholder' =>, 'required' =>,
'width' =>, 'options' =>]. type is text, email, tel, textarea, select or
radio (any other value is passed to the input as its type). width is full
(default), half (half width at every size) or md:half (full on phones,
half from md up). select and radio read 'options': plain strings or
['label' => ..., 'value' => ...]. Pass :terms="false" to drop the checkbox.
method can be GET, POST, PUT, PATCH or DELETE; a @csrf field is added for
anything but GET unless you pass :csrf="false".
--}}
@props([
'tagline' => 'Tagline',
'heading' => 'Contact us',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'action' => '#',
'method' => 'POST',
'csrf' => true,
'fields' => [
['name' => 'name', 'label' => 'Name', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
[
'name' => 'message',
'label' => 'Message',
'type' => 'textarea',
'placeholder' => 'Type your message...',
'required' => true,
],
],
'terms' => 'I accept the',
'termsLink' => ['label' => 'Terms', 'href' => '#'],
'submitLabel' => 'Submit',
'email' => 'email@example.com',
'phone' => '+1 (555) 000-0000',
'address' => '123 Sample St, Sydney NSW 2000 AU',
])
@php
// A plain form only knows GET and POST; anything else is spoofed with _method.
$verb = strtoupper($method);
$formMethod = $verb === 'GET' ? 'GET' : 'POST';
@endphp
merge(['class' => 'bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>