@extends('layouts.app') @section('title', $game->name) @section('content')
{{ $game->name }} @if($game->rating)
{{ number_format($game->rating, 1) }}
@endif
Rating
@if($game->rating)
@for($i = 1; $i <= 5; $i++) @endfor
({{ number_format($game->rating_count) }} ratings)
@else

No ratings yet

@endif
@auth @endauth

{{ $game->name }}

Released on {{ $game->first_release_date->format('F j, Y') }} @if(isset($game->company)) by {{ $game->company }} @endif

Description

{{ $game->summary }}

@if($game->storyline)
Storyline

{{ $game->storyline }}

@endif
Platforms
@foreach($game->platforms()->get() as $platform) {{ $platform->name }} @endforeach
Genres
@foreach($game->genres()->get() as $genre) {{ $genre->name }} @endforeach
Stats
  • Release Date {{ $game->first_release_date->format('F j, Y') }}
  • @if($game->rating)
  • Rating {{ number_format($game->rating, 1) }}/100 ({{ number_format($game->rating_count) }} ratings)
  • @endif @if($game->url)
  • Website Visit
  • @endif
@if($reviews->isNotEmpty())
Rating Distribution
@foreach($ratingDistribution as $rating)
{{ $rating['range'] }}
{{ $rating['count'] }}
@endforeach
@endif
@if($game->similar_games->count() > 0) @endif @if($game->dlcs->count() > 0)
DLCs & Expansions
@foreach($game->dlcs as $dlc)
{{ $dlc->name }}
{{ $dlc->name }}
View Details
@endforeach
@endif
Latest Reviews
@auth Write a Review @endauth
@if($reviews->isEmpty())

No reviews yet. Be the first to review this game!

@auth Write a Review @else Login to Write a Review @endauth
@else
@foreach($reviews->take(3) as $review)
{{ $review->user->name }}
{{ $review->created_at->diffForHumans() }}
{{ $review->rating }}/10
@if($review->recommended) Recommended @endif
{!! nl2br(e(Str::limit($review->content, 300))) !!} @if(strlen($review->content) > 300) Read more @endif
@endforeach @if($reviews->count() > 3) @endif
@endif
@endsection