<footer class="main-footer">
    <div class="row">
        <div class="col-sm-6">
            <strong>&copy; {{ date('Y') }} {{ config('kylin-adminlte.footer.copyright', config('kylin-adminlte.title', 'Kylin Admin')) }}</strong>
            All rights reserved.
        </div>
        <div class="col-sm-6 text-sm-right">
            {{-- 依据《个人信息保护法》第十七条，提供隐私政策和服务条款链接 --}}
            @if(config('kylin-adminlte.footer.privacy_policy_url'))
                <a href="{{ config('kylin-adminlte.footer.privacy_policy_url') }}" rel="noopener noreferrer">隐私政策</a>
                &nbsp;|&nbsp;
            @endif
            @if(config('kylin-adminlte.footer.terms_url'))
                <a href="{{ config('kylin-adminlte.footer.terms_url') }}" rel="noopener noreferrer">服务条款</a>
                &nbsp;|&nbsp;
            @endif
            {{-- 依据《个人信息保护法》第四十七条，提供注销账号入口 --}}
            @if(config('kylin-adminlte.footer.account_delete_url'))
                <a href="{{ config('kylin-adminlte.footer.account_delete_url') }}" rel="noopener noreferrer">注销账号</a>
            @endif
        </div>
    </div>
    {{-- 依据《互联网信息服务管理办法》第十二条，显示 ICP 备案编号 --}}
    @if(config('kylin-adminlte.footer.icp_number'))
        <div class="row mt-1">
            <div class="col-12 text-center text-muted small">
                <a href="{{ config('kylin-adminlte.footer.icp_url', 'https://beian.miit.gov.cn/') }}" target="_blank" rel="noopener noreferrer">
                    {{ config('kylin-adminlte.footer.icp_number') }}
                </a>
                @if(config('kylin-adminlte.footer.public_security_number'))
                    &nbsp;&nbsp;
                    {{ config('kylin-adminlte.footer.public_security_number') }}
                @endif
            </div>
        </div>
    @endif
</footer>
