aboutsummaryrefslogtreecommitdiff
path: root/resources/views/dashboard.blade.php
blob: 6961cdbdf08aaa7195c744bd0a83b886caff8516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!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="/dashboard">
    @csrf

    <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>