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') @push('scripts')
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@@context": "https://schema.org",
"@type": "VideoGame", "@@type": "VideoGame",
"name": {{ json_encode($game->title) }}, "name": {{ json_encode($game->title) }},
"description": {{ json_encode($game->summary ?? '') }}, "description": {{ json_encode($game->summary ?? '') }},
"url": {{ json_encode(route('games.show', $game)) }} "url": {{ json_encode(route('games.show', $game)) }}
@@ -559,7 +559,7 @@
@endif @endif
@if($game->rating_count > 0) @if($game->rating_count > 0)
,"aggregateRating": { ,"aggregateRating": {
"@type": "AggregateRating", "@@type": "AggregateRating",
"ratingValue": {{ $game->rating_avg }}, "ratingValue": {{ $game->rating_avg }},
"ratingCount": {{ $game->rating_count }}, "ratingCount": {{ $game->rating_count }},
"bestRating": 10, "bestRating": 10,