2017-06-20 08:43:36 +02:00
@ extends ( 'layouts.layout' )
@ section ( 'content' )
< section class = " jumbotron text-center " >
< div class = " container " >
2017-08-18 16:44:11 +02:00
@ if ( $currentSeason )
< div class = " lead " > Aktiv : < strong > {{ $currentSeason -> name }} </ strong ></ div >
2017-06-21 17:12:07 +02:00
@ endif
2017-06-20 08:43:36 +02:00
2017-09-11 10:38:57 +02:00
< div >< a href = " /seasons/create " class = " btn btn-primary " > Neue Saison anlegen </ a ></ div >
2017-08-18 16:44:11 +02:00
@ if ( $currentSeason )
2017-06-20 08:43:36 +02:00
< div >
< ul >
@ foreach ( $seasons as $season )
2017-06-26 17:21:30 +02:00
< li class = " text list-unstyled " >< a href = " /seasons/setcurrent/ { { $season->id }} " > {{ $season -> name }} </ a ></ li >
2017-06-20 08:43:36 +02:00
@ endforeach
</ ul >
</ div >
2017-09-11 10:38:57 +02:00
@ endif
2017-08-17 17:41:11 +02:00
2017-08-18 16:44:11 +02:00
@ if ( $currentSeason )
2017-08-17 17:41:11 +02:00
< div >
2017-10-25 10:42:05 +02:00
2017-08-18 16:44:11 +02:00
< form method = " POST " action = " /seasons/store_quota " >
{{ csrf_field () }}
2017-08-30 14:52:21 +02:00
< h3 > Anzahl Runden </ h3 >
< div class = " form-group " >
< h4 >
< label style = " float:left; width:200px; " > Anzahl Runden :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " round_count " name = " round_count " value = " { { App \R ound::getCount() }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
</ h4 >
</ div >
< p >& nbsp ; </ p >
< h3 > Spiel - Einsatz </ h3 >
2017-08-18 16:44:11 +02:00
< div class = " form-group " >
< h4 >
< label style = " float:left; width:200px; " > Einsatz pro Spieler :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " einsatz " name = " einsatz " value = " { { $quotas['Einsatz'] }} " style = " float:left; width:75px; " required >
2017-08-18 16:44:11 +02:00
< label style = " float:left; " >& nbsp ; € </ label >
</ h4 >
</ div >
< p >& nbsp ; </ p >< p >& nbsp ; </ p >
< h3 > Spielquoten </ h3 >
2018-01-10 08:45:01 +01:00
< div class = " form-group " style = " width:450px; " >
2017-08-18 16:44:11 +02:00
< h4 >
< label style = " float:left; width:200px; " > Tagessieg :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " tagessieg " name = " tagessieg " value = " { { $quotas['Tagessieg'] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'tagessieg' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platzierung :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platzierung " name = " platzierung " value = " { { $quotas['Platzierung'] }} " style = " float:left; width:75px; " required >
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz1' ] + $payouts [ 'platz2' ] + $payouts [ 'platz3' ] + $payouts [ 'platz4' ] + $payouts [ 'platz5' ] + $payouts [ 'platz6' ] + $payouts [ 'platz7' ] + $payouts [ 'platz8' ] + $payouts [ 'platz9' ] + $payouts [ 'platz10' ] }} € </ label >
2018-01-07 15:40:30 +01:00
2017-08-18 16:44:11 +02:00
< label style = " float:left; width:200px; " > Grünes Trikot :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " gruenes_trikot " name = " gruenes_trikot " value = " { { $quotas ['Gruenes Trikot'] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'gruenes_trikot' ]}} € </ label >
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Pokal :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " pokal " name = " pokal " value = " { { $quotas['Pokal'] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'pokal' ] }} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
2017-08-19 16:53:39 +02:00
< label style = " float:left; width:200px; " > Liga :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga " name = " liga " value = " { { $quotas['Liga-Wertung'] }} " style = " float:left; width:75px; " required >
2018-01-07 15:40:30 +01:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'liga_platz1' ] + $payouts [ 'liga_platz2' ] + $payouts [ 'liga_platz3' ] + $payouts [ 'liga_platz2_1' ] + $payouts [ 'liga_platz3_1' ] }} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
</ h4 >
</ div >
< p >& nbsp ; </ p >< p >& nbsp ; </ p >
< h3 > Platzierungsquoten :</ h3 >
< div class = " form-group " >
< h4 >
< label style = " float:left; width:200px; " > Platz 1 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz1 " name = " platz1 " value = " { { $quotas [ " Platz 1 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz1' ]}} € </ label >
2017-08-18 16:44:11 +02:00
<!-- < label > Test </ label >-->
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 2 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz2 " name = " platz2 " value = " { { $quotas [ " Platz 2 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz2' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 3 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz3 " name = " platz3 " value = " { { $quotas [ " Platz 3 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz3' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 4 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz4 " name = " platz4 " value = " { { $quotas [ " Platz 4 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz4' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 5 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz5 " name = " platz5 " value = " { { $quotas [ " Platz 5 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz5' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 6 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz6 " name = " platz6 " value = " { { $quotas [ " Platz 6 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz6' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 7 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz7 " name = " platz7 " value = " { { $quotas [ " Platz 7 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz7' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 8 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz8 " name = " platz8 " value = " { { $quotas [ " Platz 8 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz8' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 9 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz9 " name = " platz9 " value = " { { $quotas [ " Platz 9 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz9' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Platz 10 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " platz10 " name = " platz10 " value = " { { $quotas [ " Platz 10 " ] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'platz10' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
</ h4 >
< h3 > Liga :</ h3 >
2017-09-11 10:38:57 +02:00
@ if ( $currentSeason )
< div >
< a class = " btn btn-primary " href = " /league_settings/season= { { $currentSeason -> id } } " > Liga bearbeiten </ a >
</ div >
@ endif
2018-01-16 08:50:29 +01:00
< div class = " form-group " style = " width:650px; " >
2017-08-18 16:44:11 +02:00
< h4 >
2018-01-07 15:40:30 +01:00
< label style = " float:left; width:200px; " > Liga 1 , Platz 1 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga_platz1 " name = " liga_platz1 " value = " { { $quotas ['Liga Platz 1'] }} " style = " float:left; width:75px; " required >
2018-01-16 08:50:29 +01:00
< span class = " dropdown " id = " dropdown1 " >
< button id = " btn_winner " onclick = " toggleDropdown('dropdown_winner'); return false; " class = " dropbtn " > Sieger festlegen </ button >
< div id = " dropdown_winner " class = " dropdown-content " >
@ foreach ( $users as $user )
< a onclick = " setWinner(' { { $user -> id } }', { { $user -> name } });return false; " > {{ $user -> name }} </ a >
@ endforeach
</ div >
</ span >
2017-08-30 14:52:21 +02:00
< label style = " float:left " >& nbsp ; % = {{ $payouts [ 'liga_platz1' ]}} € </ label >
2018-01-16 08:50:29 +01:00
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
2018-01-07 15:40:30 +01:00
< label style = " float:left; width:200px; " > Liga 1 , Platz 2 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga_platz2 " name = " liga_platz2 " value = " { { $quotas ['Liga Platz 2'] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'liga_platz2' ]}} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
2018-01-07 15:40:30 +01:00
< label style = " float:left; width:200px; " > Liga 1 , Platz 3 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga_platz3 " name = " liga_platz3 " value = " { { $quotas ['Liga Platz 3'] }} " style = " float:left; width:75px; " required >
2017-08-30 14:52:21 +02:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'liga_platz3' ] }} € </ label >
2017-08-18 16:44:11 +02:00
< p >& nbsp ; </ p >
2018-01-07 15:40:30 +01:00
< label style = " float:left; width:200px; " > Liga 2 , Platz 1 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga_platz2_1 " name = " liga_platz2_1 " value = " { { $quotas ['Liga Platz 2_1'] }} " style = " float:left; width:75px; " required >
2018-01-07 15:40:30 +01:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'liga_platz2_1' ] }} € </ label >
< p >& nbsp ; </ p >
< label style = " float:left; width:200px; " > Liga 3 , Platz 1 :</ label >
2018-01-10 08:45:01 +01:00
< input type = " text " class = " form-control " id = " liga_platz3_1 " name = " liga_platz3_1 " value = " { { $quotas ['Liga Platz 3_1'] }} " style = " float:left; width:75px; " required >
2018-01-07 15:40:30 +01:00
< label style = " float:left; " >& nbsp ; % = {{ $payouts [ 'liga_platz3_1' ] }} € </ label >
< p >& nbsp ; </ p >
2017-08-18 16:44:11 +02:00
</ h4 >
</ div >
2017-09-04 12:45:08 +02:00
< p >& nbsp ;
2017-08-18 16:44:11 +02:00
</ div >
2017-09-04 12:45:08 +02:00
2017-08-18 16:44:11 +02:00
< input type = " hidden " name = " season_id " value = " { { $currentSeason->id }} " >
< div class = " form-group " >
< button type = " submit " class = " btn btn-primary " > Speichern </ button >
</ div >
</ form >
2017-08-17 17:41:11 +02:00
</ div >
@ endif
2017-06-20 08:43:36 +02:00
</ div >
2017-08-18 16:44:11 +02:00
2017-06-20 08:43:36 +02:00
</ section >
2018-01-16 08:50:29 +01:00
< script >
function setWinner ( $user_id , $user_name , $elem_name = " btn_winner " ) {
var global_winner_id = document . getElementById ( $elem_winner ) . innerHTML = $roundname ;
}
// When the user clicks on the button,toggle between hiding and showing the dropdown content
function toggleDropdown ( $elementName ) {
document . getElementById ( $elementName ) . classList . toggle ( " show " );
}
// Close the dropdown menu if the user clicks outside of it
window . onclick = function ( event ) {
if ( ! event . target . matches ( '.dropbtn' )) {
var dropdowns = document . getElementsByClassName ( " dropdown-content " );
var i ;
for ( i = 0 ; i < dropdowns . length ; i ++ ) {
var openDropdown = dropdowns [ i ];
if ( openDropdown . classList . contains ( 'show' )) {
openDropdown . classList . remove ( 'show' );
}
}
}
event . cancelBubble = true ;
}
</ script >
2017-06-20 08:43:36 +02:00
@ endsection