@php
    $pages = App\Models\Frontend::where('data_keys', 'policy_pages.element')->get();
@endphp
<footer class="footer-section py-4">
    <div class="container">
        <div class="flex-between gap-2">
            <p class="text-center fs-14">&copy; {{ date('Y') }} <a href="{{ route('home') }}" class="text--base">{{ __(gs('site_name')) }}</a>. @lang('All Rights Reserved')</p>
            <div>
                @foreach ($pages as $page)
                    <a class="fs-14 text--body text-decoration-underline" href="{{ route('policy.pages', $page->slug) }}">{{ __($page->data_values->title) }}</a>
                    @if (!$loop->last)
                        ,
                    @endif
                @endforeach
            </div>
        </div>
    </div>
</footer>
