@php $footerSections = collect(timebank_config('footer.sections', [])) ->where('visible', true) ->sortBy('order'); @endphp @foreach($footerSections as $section)

{{ __($section['title']) }}

@php // A link to a route this platform does not register (e.g. a disabled local page) is left out $links = collect($section['links'] ?? []) ->where('visible', true) ->filter(fn ($link) => isset($link['url']) || \Illuminate\Support\Facades\Route::has($link['route'] ?? '')) ->sortBy('order'); @endphp @foreach($links as $link) @if(isset($link['auth_required']) && $link['auth_required']) @auth {{ __($link['title']) }} @endauth @elseif(isset($link['url'])) {{ __($link['title']) }} @else {{ __($link['title']) }} @endif @endforeach
@endforeach

{{ __(timebank_config('footer.tagline','')) }}