...
This commit is contained in:
commit
d0e8cd7139
6 changed files with 53030 additions and 9 deletions
52995
dumps/d0274241_2020-03-12_1533.sql
Normal file
52995
dumps/d0274241_2020-03-12_1533.sql
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -134,7 +134,18 @@ class TippsController extends Controller
|
|||
]);
|
||||
|
||||
$user=Auth::user();
|
||||
|
||||
if ( is_null($user) ) {
|
||||
Log::info("TippsController.store: No authenticated user detected. Aborting storage command.");
|
||||
$tippLink="/tipps#";
|
||||
$r=\App\Round::getFirstTippableRound();
|
||||
if($r) $tippLink=$tippLink.$r->id;
|
||||
|
||||
// Redirect to the Rounds Index
|
||||
return redirect($tippLink);
|
||||
}
|
||||
Log::info("TippsController::store for user-id ".$user->id);
|
||||
|
||||
// Fetch, modify, save Tipp
|
||||
$tipp = Tipp::where('id', request('id'))->first();
|
||||
$game = Game::where('id', $tipp->game_id)->first();
|
||||
|
|
@ -207,7 +218,11 @@ class TippsController extends Controller
|
|||
// If one fails, previous saves are kept, but user
|
||||
// is redirected to edit4 page again.
|
||||
public function store4() {
|
||||
Log::debug("### Store4 ###");
|
||||
error_log("--- Store4 ---");
|
||||
// Validate form
|
||||
|
||||
//dd(request());
|
||||
$this->validate(request(), [
|
||||
'round_id' => 'required',
|
||||
'game_id_1' => 'required',
|
||||
|
|
@ -225,9 +240,9 @@ class TippsController extends Controller
|
|||
'score2_1' => 'required',
|
||||
'score2_2' => 'required',
|
||||
'score2_3' => 'required',
|
||||
'score2_4' => 'required',
|
||||
'round_id' => 'required'
|
||||
'score2_4' => 'required'
|
||||
]);
|
||||
error_log("Validation passed.");
|
||||
|
||||
$round_id= request('round_id');
|
||||
$game_id_1=request('game_id_1');
|
||||
|
|
@ -288,7 +303,13 @@ class TippsController extends Controller
|
|||
|
||||
}
|
||||
|
||||
return redirect('/tipps/');
|
||||
$tippLink="/tipps#";
|
||||
$r=\App\Round::getFirstTippableRound();
|
||||
if($r) $tippLink=$tippLink.$r->id;
|
||||
|
||||
// Redirect to the Rounds Index
|
||||
return redirect($tippLink);
|
||||
|
||||
}
|
||||
|
||||
// Store tipp if valid.
|
||||
|
|
|
|||
|
|
@ -105,9 +105,12 @@ class UsersController extends Controller
|
|||
|
||||
|
||||
public function index() {
|
||||
error_log("Starting Controller: UsersController.index");
|
||||
|
||||
|
||||
$a=new TimeLogger("UserController::index()");
|
||||
Log::info($a->getStartMessage());
|
||||
//error_log($a->getStartMessage());
|
||||
error_log($a->getStartMessage());
|
||||
|
||||
if (Auth::guest()) { return redirect("/"); }
|
||||
if (!Auth::user()->admin) { return redirect("/"); }
|
||||
|
|
@ -187,7 +190,9 @@ class UsersController extends Controller
|
|||
if ($round) { $firstTippableRound = $round; }
|
||||
|
||||
Log::info($a->getEndMessage());
|
||||
//error_log($a->getEndMessage());
|
||||
error_log($a->getEndMessage());
|
||||
|
||||
error_log($users);
|
||||
|
||||
return view('users.index', compact('users','active_user_count','total_user_count', 'firstTippableRound'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
'debug' => env('APP_DEBUG', true),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@
|
|||
<input type="checkbox" name="joker_3" id="joker_3" @if($tipp3->joker===1) checked @endif>
|
||||
|
||||
<span>
|
||||
<input type="hidden" name="tipp_id_2" value="{{ $tipp3->id }}">
|
||||
<input type="hidden" name="game_id_2" value="{{ $game3->id }}">
|
||||
<input type="hidden" name="tipp_id_3" value="{{ $tipp3->id }}">
|
||||
<input type="hidden" name="game_id_3" value="{{ $game3->id }}">
|
||||
</span>
|
||||
|
||||
<!-- 4 -->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!-- <div class="container"> -->
|
||||
<div class="lead col-md-8" >registrierte Spieler: {{ $total_user_count }} , davon bezahlt: {{$active_user_count}}</div>
|
||||
|
||||
<p> <a href="/users/payout_with_iban">Kontoliste</a></p>
|
||||
<p> <a href="/users/payout_with_iban">Kontoliste</a></p>index.blade.php
|
||||
|
||||
<div class="col-md-12">
|
||||
<table class="table-bordered" >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue