game page bug fix

This commit is contained in:
Doar Mihai
2026-05-30 12:38:40 +03:00
parent 14047dfe37
commit 5d45797fa9
+3 -3
View File
@@ -546,8 +546,8 @@
@push('scripts')
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoGame",
"@@context": "https://schema.org",
"@@type": "VideoGame",
"name": {{ json_encode($game->title) }},
"description": {{ json_encode($game->summary ?? '') }},
"url": {{ json_encode(route('games.show', $game)) }}
@@ -559,7 +559,7 @@
@endif
@if($game->rating_count > 0)
,"aggregateRating": {
"@type": "AggregateRating",
"@@type": "AggregateRating",
"ratingValue": {{ $game->rating_avg }},
"ratingCount": {{ $game->rating_count }},
"bestRating": 10,