@include('front.partials.social')
{{-- Footer --}}
@php
// One column per menu: Admin > Menus > landing-footer-one, -two, -three
// (separate from footer-one/two, which the rest of the site's footer uses).
// An item with sub-items (e.g. "Our Services") links to its first sub-item.
$footer_columns = collect(['landing-footer-one', 'landing-footer-two', 'landing-footer-three'])->map(function ($menu_slug) {
$menu = \Modules\Menu\Entities\Menu::where('slug', $menu_slug)->first();
return collect($menu ? json_decode($menu->json) : [])->map(function ($item) {
$slug = !empty($item->children) ? $item->children[0]->slug : $item->slug;
return (object) [
'name' => $item->name,
'url' => preg_match('#^https?://#', $slug) ? $slug : '/' . ltrim($slug, '/'),
'target' => $item->target ?? '_self',
];
});
});
$footer_site = $site ?? App\Site::find(1);
@endphp