@extends('front_end.layouts.home') @section('title', $game->title) @section('content')
{{ $game->title }}

{{ $game->title }}

@if($game->is_multiplayer) Multiplayer @endif {{ $game->min_age }}+
({{ $game->ratings->count() }} ratings)

{{ $game->description }}

Category: {{ $game->category->name }}

Age Rating: {{ $game->min_age }}+

Multiplayer: {{ $game->is_multiplayer ? 'Yes' : 'No' }}

Total Plays: {{ number_format($game->plays_count) }}

@auth

Rate this game

@csrf
@else

Please login to rate this game.

@endauth
@if($game->instructions)

How to Play

{!! nl2br(e($game->instructions)) !!}
@endif

Similar Games

@foreach($relatedGames as $relatedGame)
@include('front_end.pages.games.partials.game_card', ['game' => $relatedGame])
@endforeach

User Reviews

@if($game->ratings->count() > 0) @foreach($game->ratings as $rating)
{{ $rating->user->name }}
{{ $rating->created_at->diffForHumans() }}
@if($rating->comment)

{{ $rating->comment }}

@else

No written comment

@endif
@endforeach @else
No reviews yet. Be the first to review this game!
@endif
@push('scripts') @endpush @endsection