--- title: "footer-04" description: "Call-to-action footer: headline, blurb and two buttons on the left, two link columns and social icons on the right, inside a bordered card." category: "Footer" --- # footer-04 Call-to-action footer: headline, blurb and two buttons on the left, two link columns and social icons on the right, inside a bordered card. ## Installation ```bash php artisan ui:add-block footer-04 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/footer-04.blade.php` ```blade {{-- Every piece of content is a prop, so you can drive this footer from a CMS. A link is either a plain string or ['label' => ..., 'href' => ...]. An action is ['label' =>, 'href' =>, 'variant' =>]; give it an href and it renders as a link, leave href out and it stays a plain button. Variants are default, outline, secondary, ghost, link and destructive. A social is ['label' =>, 'href' =>, 'icon' =>] where icon is a key of the $icons map below ('facebook', 'instagram', 'x', 'linkedin', 'youtube'), or pass 'svg' => '' to use a mark of your own. --}} @props([ 'brand' => 'LaralCN', 'brandHref' => '#', 'heading' => 'Medium length footer heading goes here', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.', 'actions' => [ ['label' => 'Button', 'href' => null, 'variant' => 'default'], ['label' => 'Button', 'href' => null, 'variant' => 'outline'], ], 'columns' => [ ['links' => ['Link One', 'Link Two', 'Link Three', 'Link Four', 'Link Five']], ['links' => ['Link Six', 'Link Seven', 'Link Eight', 'Link Nine', 'Link Ten']], ], 'socials' => [ ['label' => 'Facebook', 'icon' => 'facebook'], ['label' => 'Instagram', 'icon' => 'instagram'], ['label' => 'X', 'icon' => 'x'], ['label' => 'LinkedIn', 'icon' => 'linkedin'], ['label' => 'Youtube', 'icon' => 'youtube'], ], 'legal' => ['Privacy Policy', 'Terms of Service', 'Cookies Settings'], 'copyright' => null, ]) @php $link = static fn($item): array => is_array($item) ? $item + ['href' => '#'] : ['label' => $item, 'href' => '#']; $icons = [ 'facebook' => '', 'instagram' => '', 'x' => '', 'linkedin' => '', 'youtube' => '', ]; @endphp
{{-- Bordered card --}}
{{-- Pitch --}}
{{ $logo ?? '' }} @empty($logo) @endempty {{ $brand }}

{{ $heading }}

{{ $text }}

@foreach ($actions as $action) {{ $action['label'] ?? '' }} @endforeach
{{-- Links + socials --}}
@foreach ($columns as $column)
    @foreach ($column['links'] ?? [] as $item) @php($entry = $link($item))
  • {{ $entry['label'] }}
  • @endforeach
@endforeach

{{ $copyright ?? '© ' . date('Y') . ' ' . $brand . '. All rights reserved.' }}

```