diff --git a/picquiz/resources/views/game/game.blade.php b/picquiz/resources/views/game/game.blade.php index cc54ec7..f475664 100644 --- a/picquiz/resources/views/game/game.blade.php +++ b/picquiz/resources/views/game/game.blade.php @@ -2,10 +2,17 @@ @php $debug = True; + + $answer = 'asd'; + $pic = 'asd'; + + $hits = 0; + $nth = 1; + $per = 10; @endphp @section('title') -Előkészület +Játék @endsection @@ -23,7 +30,10 @@
- +
@@ -33,11 +43,11 @@

Tipp:

- +
-

N/M

-

K találat

+

{{ $nth }}/{{ $per }}

+

{{ $hits }} találat

Beküldés @@ -50,6 +60,10 @@ Készítette: Karácsony Balázs, Györkis Tamás, Kovács Dávid
+ @if ($debug) + answer: {{$answer}} + @endif + @endsection diff --git a/picquiz/resources/views/game/newGame.blade.php b/picquiz/resources/views/game/newGame.blade.php index b844611..51d3c7b 100644 --- a/picquiz/resources/views/game/newGame.blade.php +++ b/picquiz/resources/views/game/newGame.blade.php @@ -1,9 +1,5 @@ @extends('template') -@php - $debug = True; -@endphp - @section('title') Előkészület @endsection @@ -54,10 +50,13 @@
-

Hány kérdés szerepeljen:

- -
Sok sikert!
- Kezdés +
+ @csrf +

Hány kérdés szerepeljen:

+ +
Sok sikert!
+ +
diff --git a/picquiz/resources/views/game/play.blade.php b/picquiz/resources/views/game/play.blade.php deleted file mode 100644 index 33e1f41..0000000 --- a/picquiz/resources/views/game/play.blade.php +++ /dev/null @@ -1,71 +0,0 @@ -@extends('template') - -@php - $debug = True; -@endphp - -@section('title') -Előkészület -@endsection - - -@section('content') - -
- -
-
-

Új játék beállításai

-
-
- -
- -
-
- -
- -
- -
-

Hány kérdés szerepeljen:

- -
Sok sikert!
- Kezdés -
-
- - -
- Készítette: Karácsony Balázs, Györkis Tamás, Kovács Dávid -
- -
- -@endsection diff --git a/picquiz/routes/web.php b/picquiz/routes/web.php index 3f86ed1..711fb85 100644 --- a/picquiz/routes/web.php +++ b/picquiz/routes/web.php @@ -54,7 +54,7 @@ Route::put('/feedback/all/{id}', [FeedbackController::class, 'update']); //--------- Game routes -------------------------------------------- Route::get('/new', function(){ return view('game/newGame'); }); -Route::get('/play', function(){ return view('game/game'); }); +Route::post('/play', function(){ return view('game/game'); });