<?php
$resource_links = $resource_links ?? \NeurogenesisTheme\Helpers\DashboardResources::all();
?>
<footer class="border-t border-gray-200 mt-12">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
        <div class="flex flex-col sm:flex-row items-center justify-between gap-4">
            <div class="flex items-center gap-2 text-gray-400">
                <span class="w-6 h-6 bg-gray-400 rounded flex items-center justify-center">
                    <span class="text-white font-bold text-sm">T</span>
                </span>
                <span class="text-sm">© <?php echo date( 'Y' ); ?> <?php esc_html_e( 'Thinko Theme. All rights reserved.', 'thinko' ); ?></span>
            </div>
            <?php if ( ! empty( $resource_links ) ) : ?>
                <div class="flex items-center gap-6">
                    <?php foreach ( $resource_links as $link ) : ?>
                        <?php if ( ! empty( $link['disabled'] ) ) : ?>
                            <?php continue; ?>
                        <?php endif; ?>
                        <a
                            href="<?php echo esc_url( $link['url'] ); ?>"
                            target="_blank"
                            rel="noopener noreferrer"
                            class="text-sm text-gray-500 hover:text-gray-700">
                            <?php echo esc_html( $link['title'] ); ?>
                        </a>
                    <?php endforeach; ?>
                </div>
            <?php endif; ?>
        </div>
    </div>
</footer>
