Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
$currentUser = getCurrentUser();
$currentPage = basename($_SERVER['PHP_SELF']);
?>
<nav class="bg-white shadow-md">
<div class="container mx-auto px-4 max-w-7xl">
<div class="flex justify-between items-center h-16">
<div class="flex items-center">
<a href="index.php" class="text-xl font-bold text-blue-600 hover:text-blue-700">
🤝 Gouden Voetbalschoen
</a>
</div>
<div class="flex items-center space-x-4">
<?php if (isLoggedIn()): ?>
<a href="index.php" class="<?php echo $currentPage === 'index.php' ? 'text-blue-600 font-semibold' : 'text-gray-700 hover:text-blue-600'; ?>">
Dashboard
</a>
<a href="tasks.php" class="<?php echo $currentPage === 'tasks.php' ? 'text-blue-600 font-semibold' : 'text-gray-700 hover:text-blue-600'; ?>">
Taken
</a>
<?php if (isAdmin()): ?>
<a href="admin_tasks.php" class="<?php echo $currentPage === 'admin_tasks.php' ? 'text-blue-600 font-semibold' : 'text-gray-700 hover:text-blue-600'; ?>">
Beheer
</a>
<?php endif; ?>
<div class="flex items-center space-x-3 pl-4 border-l border-gray-300">
<span class="text-gray-700">
👤 <?php echo e($currentUser['username']); ?>
</span>
<?php if (isAdmin()): ?>
<span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2 py-1 rounded">Admin</span>
<?php endif; ?>
<a href="logout.php" class="px-3 py-1.5 text-sm bg-red-600 text-white font-medium rounded-lg hover:bg-red-700 transition-colors duration-200">Uitloggen</a>
</div>
<?php else: ?>
<a href="login.php" class="<?php echo $currentPage === 'login.php' ? 'text-blue-600 font-semibold' : 'text-gray-700 hover:text-blue-600'; ?>">
Inloggen
</a>
<a href="register.php" class="px-3 py-1.5 text-sm bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition-colors duration-200">
Registreren
</a>
<?php endif; ?>
</div>
</div>
</div>
</nav>