		</div>
	</div>				
<!-- Sidebar -->
	<div id="sidebar">
		<div class="inner">
			<!-- Menu -->
				<nav id="menu">
					<header class="major">
						<h2>Menü</h2>
					</header>
					<ul>
						<li><a href="index.php">Meine Kaffeeliste</a></li>




<?php
$saasNavUser = function_exists('saas_current_user') ? saas_current_user() : null;
$saasCanUseLedgerNav = $saasNavUser !== null
	&& function_exists('saas_user_has_role')
	&& saas_user_has_role(['owner', 'admin', 'treasurer'], $saasNavUser);
$legacyCanUseAdminNav = checkKaffeelisteAdmin($conn, $mailadress);

if($legacyCanUseAdminNav){
?>

			<li><a href="einzahlung.php">Einzahlung eintragen</a></li>
			<li><a href="stricheintragen.php"> Striche eintragen</a></li>
<?php
}
?>
<?php
if($saasCanUseLedgerNav || $legacyCanUseAdminNav){
?>
			<li><a href="kaffeeliste.php">Kaffeeliste anzeigen</a></li>
			<li><a href="ledger-preview.php">Ledger Preview</a></li>
<?php
}
?>
<?php
if($legacyCanUseAdminNav){
?>
			<li><a href="mitarbeiterverwalten.php">Mitglieder verwalten</a></li>
			<li><a href="hinweise.php">Hinweise verwalten</a></li>






<?php
}
?>
			<li><a href="faq.php">FAQ Kaffeeliste</a></li>
<?php
if ($saasNavUser !== null) {
?>
			<li><a href="konto.php">Kundenkonto</a></li>
<?php
	if (($saasNavUser['email_verified_at'] ?? null) === null) {
?>
			<li><a href="email-verifikation-senden.php">E-Mail verifizieren</a></li>
<?php
	}
?>
<?php
	if (function_exists('saas_can_manage_tenant_settings') && saas_can_manage_tenant_settings($saasNavUser)) {
?>
			<li><a href="mandant-einstellungen.php">Mandant-Einstellungen</a></li>
<?php
	}
?>
			<li><a href="logout.php">Logout</a></li>
<?php
}
?>
		</ul>
	</nav>		



<!-- Footer -->

					<footer id="footer">
									<p class="copyright">&copy; Copyright: Clemens Creutzburg All rights reserved. Design: <a href="http://html5up.net">HTML5 UP</a></p>
						
								</footer>

						</div>
					</div>

			</div>

		<!-- Scripts -->
			<script src="assets/js/jquery.min.js"></script>
			<script src="assets/js/browser.min.js"></script>
			<script src="assets/js/breakpoints.min.js"></script>
			<script src="assets/js/util.js"></script>
			<script src="assets/js/main.js"></script>

	</body>
</html>
