---
title: "contact-11"
description: "Email, phone and office details stacked beside a large map, with an optional map embed and a directions link."
category: "Contact"
---
# contact-11
Email, phone and office details stacked beside a large map, with an optional map embed and a directions link.
## Installation
```bash
php artisan ui:add-block contact-11
```
## 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/contact-11.blade.php`
```blade
{{--
Email, phone and office details stacked beside a map. Every piece of
content is a prop. No map is embedded by default: the block shows a
placeholder until you pass `map`, an embed URL (Google Maps, OpenStreetMap
and so on), which renders as a lazy-loaded iframe titled `map-title`.
Set any of email, phone or address to null to hide that item. The
directions link defaults to a Google Maps search for the address.
--}}
@props([
'tagline' => 'Tagline',
'heading' => 'Contact us',
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'emailTitle' => 'Email',
'emailDescription' => 'Lorem ipsum dolor sit amet.',
'email' => 'email@example.com',
'phoneTitle' => 'Phone',
'phoneDescription' => 'Lorem ipsum dolor sit amet.',
'phone' => '+1 (555) 000-0000',
'addressTitle' => 'Office',
'address' => '123 Sample St, Sydney NSW 2000 AU',
'directionsLabel' => 'Get Directions',
'directionsHref' => null,
'map' => null,
'mapTitle' => 'Map',
])
@php
$tel = $phone ? 'tel:' . preg_replace('/[^\d+]/', '', $phone) : null;
$directions = $directionsHref ?? ($address ? 'https://www.google.com/maps/search/?api=1&query=' . urlencode($address) : null);
@endphp
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>