--- title: "footer-03" description: "Boxed footer: logo, three link columns and a subscribe form inside a bordered card, with the legal bar outside it." category: "Footer" --- # footer-03 Boxed footer: logo, three link columns and a subscribe form inside a bordered card, with the legal bar outside it. ## Installation ```bash php artisan ui:add-block footer-03 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you. - component: [input](https://laralcn-ui.abdulkadersafi.com/components/input.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/footer-03.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' => ...]. 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' => '#', 'columns' => [ ['title' => 'Column One', 'links' => ['Link One', 'Link Two', 'Link Three', 'Link Four', 'Link Five']], ['title' => 'Column Two', 'links' => ['Link Six', 'Link Seven', 'Link Eight', 'Link Nine', 'Link Ten']], [ 'title' => 'Column Three', 'links' => ['Link Eleven', 'Link Twelve', 'Link Thirteen', 'Link Fourteen', 'Link Fifteen'], ], ], 'newsletterTitle' => 'Subscribe', 'newsletterText' => 'Join our newsletter to stay up to date on features and releases.', 'formAction' => null, 'emailPlaceholder' => 'Enter your email', 'subscribeLabel' => 'Subscribe', 'privacyHref' => '#', '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 --}}
{{ $logo ?? '' }} @empty($logo) @endempty {{ $brand }} @foreach ($columns as $column)

{{ $column['title'] ?? '' }}

    @foreach ($column['links'] ?? [] as $item) @php($entry = $link($item))
  • {{ $entry['label'] }}
  • @endforeach
@endforeach {{-- Subscribe --}}

{{ $newsletterTitle }}

{{ $newsletterText }}

@if ($formAction) @csrf @endif {{ $subscribeLabel }}

{{ $disclaimer ?? '' }} @empty($disclaimer) By subscribing you agree to with our Privacy Policy and provide consent to receive updates from our company. @endempty

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

@foreach ($legal as $item) @php($entry = $link($item)) {{ $entry['label'] }} @endforeach
```