tippspiel/pfosten/resources/views/layouts/nav.blade.php
2017-10-29 07:13:52 +01:00

59 lines
No EOL
3.8 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;
<label class="dropdown" id="dropdown2">
<a href="#" id="btn_league" onclick="toggleSelect('dropdown_league'); return false;" style="font-weight:normal; font-color: blue; font-size: 22px;">Spieler-Liga</a>
<div id="dropdown_league" class="dropdown-content">
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/league_show_rounds/league_rank=4/round_id=30">Spielplan</a> &nbsp;
<a style="font-weight:normal; font-color: blue; font-size: 22px;" href="/league/show/rank=4/max_round_id=-1#playerid_{{Auth::user()->id}}">Tabellen</a> &nbsp;
</div>
</label>
&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>