--- title: "footer-02" description: "Wide sitemap footer: newsletter row on top, logo beside five link columns, then a legal bar with social icons." category: "Footer" --- # footer-02 Wide sitemap footer: newsletter row on top, logo beside five link columns, then a legal bar with social icons. ## Installation ```bash php artisan ui:add-block footer-02 ``` ## 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-02.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. The five columns are a plain list, so pass three and you get three. --}} @props([ 'brand' => 'LaralCN', 'brandHref' => '#', 'newsletterTitle' => 'Join our newsletter', 'newsletterText' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'formAction' => null, 'emailPlaceholder' => 'Enter your email', 'subscribeLabel' => 'Subscribe', 'privacyHref' => '#', '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'], ], [ 'title' => 'Column Four', 'links' => ['Link Sixteen', 'Link Seventeen', 'Link Eighteen', 'Link Nineteen', 'Link Twenty'], ], [ 'title' => 'Column Five', 'links' => [ 'Link Twenty One', 'Link Twenty Two', 'Link Twenty Three', 'Link Twenty Four', 'Link Twenty Five', ], ], ], '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
{{-- Newsletter --}}

{{ $newsletterTitle }}

{{ $newsletterText }}

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

{{ $disclaimer ?? '' }} @empty($disclaimer) By subscribing you agree to with our Privacy Policy. @endempty

{{-- Logo + link columns --}}
{{ $logo ?? '' }} @empty($logo) @endempty {{ $brand }} @foreach ($columns as $column)

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

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

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

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