tippspiel/pfosten/resources/views/layouts/nav.blade.php

52 lines
No EOL
3.1 KiB
PHP

<div class="container">
<div class="navbar">
<div class="container text-center">
@if (Auth::check())
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/">Start</a>
&nbsp;
@if (Auth::user()->admin)
<label class="dropdown" id="dropdown1">
<a href="#" id="btn_admin" onclick="toggleSelect('dropdown_admin'); return false;" style="font-weight:normal; font-color: blue; font-size: 22px;">Administration</a>
<div id="dropdown_admin" class="dropdown-content">
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/seasons">Saison</a>
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/rounds#{{\App\Round::getFirstIncompleteRound()}}">Runden</a>
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/users">Spieler</a>
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/roundmails">Rundmail</a>
</div>
</label>
@endif
&nbsp;
<a style="font-color: blue; font-size: 22px;" href="/tipps#{{\App\Round::getFirstTippableRoundId()}}">Tipps</a> &nbsp;
&nbsp;
<a style="font-color: blue; font-size: 22px;" href="/users/ranking/roundid_-1#playerid_{{Auth::user()->id}}" >Rangliste</a> &nbsp;
&nbsp;
<label class="dropdown" id="dropdown3">
<a href="#" id="btn_info" onclick="toggleSelect('dropdown_info'); return false;" style="font-weight:normal; font-color: blue; font-size: 22px;">Info</a>
<div id="dropdown_info" class="dropdown-content">
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/users/show_payouts">Quoten</a> &nbsp;
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/users/payout#playerid_{{Auth::user()->id}}">Geldrangliste</a> &nbsp;
</div>
</label>
&nbsp;
<label class="dropdown" id="dropdown4">
<a href="#" id="btn_player" onclick="toggleSelect('dropdown_player'); return false;" style="font-weight:normal; font-color: blue; font-size: 22px;">&nbsp;( {{Auth::user()->name}} )</a>
<div id="dropdown_player" class="dropdown-content">
<a style="font-weight: normal; font-color: blue; font-size: 22px;" href="/users/useredit/{{ Auth::user()->id }}">Einstellungen</a>
<a style="font-weight: normal; font-color: blue; font-size: 22px;" href="/logout">Abmelden</a>
</div>
</label>
@endif
</div>
</div>
<script>
// When the user clicks on the button,toggle between hiding and showing the dropdown content
function toggleSelect($elementName) {
document.getElementById($elementName).classList.toggle("show");
}
</script>
</div>