@php $brandingSettings = isset($settings) ? $settings->get('branding', collect()) : collect(); $footerBranding = isset($frontendBranding) ? $frontendBranding : collect(); $footerSettings = isset($frontendFooter) ? $frontendFooter : collect(); $footerBrandName = $brandingSettings->get('app_name') ?: config('app.name', 'HyperLocal'); $footerBrandLogo = \App\Support\StorefrontPresenter::mediaUrl( $footerBranding->get('brand_logo') ?? $brandingSettings->get('logo') ?? $brandingSettings->get('dark_logo') ); $footerTagline = $footerBranding->get('brand_tagline'); $footerColumns = collect($footerSettings->get('columns') ?: []); $footerSocialLinks = collect($footerSettings->get('social_links') ?: []) ->filter(fn ($link) => filled(data_get($link, 'label')) && filled(data_get($link, 'url'))); $footerCopy = $footerSettings->get('copyright_text') ?: ('© ' . date('Y') . ' ' . $footerBrandName . '. ' . trans_key('common.allRightsReserved')); @endphp