diff options
Diffstat (limited to 'resources/views/dashboard.blade.php')
-rw-r--r-- | resources/views/dashboard.blade.php | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 7001be3..6961cdb 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -1,17 +1,37 @@ - <ul> - <li>name: {{ $player->name }}</li> - <li>team: {{ $player->team }}</li> - <li>score: {{ $player->score }}</li> - </ul> +<!DOCTYPE html> +<html> +<head> + <title>Dashboard</title> + <link rel="stylesheet" href="{{ asset('css/app.css') }}"> +</head> +<body> +@if(Auth::check()) + <pre>You are logged in successfully</pre> +@endif +<ul> + <li>name: {{ $player->name }}</li> + <li>team: {{ $player->team }}</li> + <li>score: {{ $player->score }}</li> +</ul> -<form method="POST" action="/login/score"> +<form method="POST" action="/dashboard"> @csrf - <input type="hidden" name="id" value="{{ $player->id }}"> <div> <label for="score">Score:</label> <input name="score"> </div> + @if($errors->any()) + <div class="error">{{ $errors->first() }}</div> + @endif + <button type="submit">submit</button> </form> +<form method="POST" action="/logout"> + @csrf + + <button type="submit">logout</button> +</form> +</body> +</html> |