TimeLogger moved, League ranking also for not completed but started rounds
This commit is contained in:
parent
78a4a04cdf
commit
90c6d60ecd
26 changed files with 692 additions and 376 deletions
|
|
@ -13,6 +13,7 @@ use Auth;
|
|||
use DB;
|
||||
use Log;
|
||||
use Carbon;
|
||||
use App\MyClasses\TimeLogger;
|
||||
|
||||
class RoundmailController extends Controller
|
||||
{
|
||||
|
|
@ -22,6 +23,9 @@ class RoundmailController extends Controller
|
|||
if (Auth::guest()) { return redirect("/"); }
|
||||
if (!Auth::user()->admin) { return redirect("/"); }
|
||||
|
||||
$a=new TimeLogger("RoundmailController::index()");
|
||||
Log::info($a->getStartMessage());
|
||||
|
||||
$mails_db = Roundmail::all();
|
||||
$mails=array();
|
||||
foreach($mails_db as $mail_db) {
|
||||
|
|
@ -39,6 +43,8 @@ class RoundmailController extends Controller
|
|||
}
|
||||
$mails=array_reverse($mails);
|
||||
|
||||
Log::info($a->getEndMessage());
|
||||
|
||||
return view('roundmails.index',compact('mails'));
|
||||
}
|
||||
|
||||
|
|
@ -46,6 +52,9 @@ class RoundmailController extends Controller
|
|||
if (Auth::guest()) { return redirect("/"); }
|
||||
if (!Auth::user()->admin) { return redirect("/"); }
|
||||
|
||||
$a=new TimeLogger("RoundmailController::show start");
|
||||
Log::info($a->getStartMessage());
|
||||
|
||||
$user_id=Auth::user()->id;
|
||||
|
||||
$users = DB::table('users')->where('deleted',null)->orderBy('lastname')->get();
|
||||
|
|
@ -124,6 +133,8 @@ class RoundmailController extends Controller
|
|||
if ($sender) {$sender_name = $sender->name;}
|
||||
}
|
||||
|
||||
Log::info($a->getEndMessage());
|
||||
|
||||
return view('roundmails.show',compact('mail_id','activeMailList','inactiveMailList','missingTippMailList','missingJokerMailList','adminMailList','send_date','user_id','topic', 'mail_message', 'recipients', 'sender_name','viewmode','tippSpielLink'));
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue