@php
    $footerStyle = $settings->footer_style ?? 'dark';
    $validStyles = ['dark', 'light', 'accent', 'transparent'];
    if (!in_array($footerStyle, $validStyles)) {
        $footerStyle = 'dark';
    }
@endphp

@include("website.footers.{$footerStyle}", [
    'sections' => $sections,
    'academy' => $academy,
    'settings' => $settings,
])
