--- title: "footer-05" description: "Large sitemap footer: headline with two buttons, six link columns, and a logo row with an overlapping avatar stack." category: "Footer" --- # footer-05 Large sitemap footer: headline with two buttons, six link columns, and a logo row with an overlapping avatar stack. ## Installation ```bash php artisan ui:add-block footer-05 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [avatar](https://laralcn-ui.abdulkadersafi.com/components/avatar.md) — the CLI installs it for you. - component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/footer-05.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. An avatar is ['src' =>, 'alt' =>]; a null src draws an empty placeholder. 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 six columns are a plain list, so pass four and you get four. --}} @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' => [ ['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', ], ], [ 'title' => 'Column Six', 'links' => [ 'Link Twenty Six', 'Link Twenty Seven', 'Link Twenty Eight', 'Link Twenty Nine', 'Link Thirty', ], ], ], 'avatars' => [ ['src' => null, 'alt' => ''], ['src' => null, 'alt' => ''], ['src' => null, 'alt' => ''], ['src' => null, 'alt' => ''], ['src' => null, 'alt' => ''], ], 'socials' => [ ['label' => 'Facebook', 'icon' => 'facebook'], ['label' => 'Instagram', 'icon' => 'instagram'], ['label' => 'X', 'icon' => 'x'], ['label' => 'LinkedIn', 'icon' => 'linkedin'], ['label' => 'Youtube', 'icon' => 'youtube'], ], 'copyright' => null, ]) @php $link = static fn($item): array => is_array($item) ? $item + ['href' => '#'] : ['label' => $item, 'href' => '#']; $icons = [ 'facebook' => '', 'instagram' => '', 'x' => '', 'linkedin' => '', 'youtube' => '', ]; @endphp
{{-- Heading + actions --}}

{{ $heading }}

@foreach ($actions as $action) {{ $action['label'] ?? '' }} @endforeach

{{ $text }}

{{-- Link columns --}}
@foreach ($columns as $column)

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

    @foreach ($column['links'] ?? [] as $item) @php($entry = $link($item))
  • {{ $entry['label'] }}
  • @endforeach
@endforeach
{{-- Logo + avatar stack --}}
{{ $logo ?? '' }} @empty($logo) @endempty {{ $brand }}
@foreach ($avatars as $avatar) @endforeach

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

```