@php use App\Models\Game; use App\Models\GameList; use App\Models\Platform; use Illuminate\Support\Str; @endphp

Wishlist

@if (count($wishlist) === 0)

There are no games on this wishlist.

@else @foreach ($wishlist as $item) @php $game = Game::find($item->game_id); if ($game === null) { continue; } $gameName = str_replace('/', '_', str_replace(' ', '_', $game->name)); $platform = Platform::whereId($game->platform_id)->get(); @endphp
@if ($game->alt_titles) @php $altTitles = str_replace('|', ', ', $game->alt_titles); @endphp Alternative Titles: {{ $altTitles }} @endif

{{ Str::words($game->description, 50) }}

@endforeach @endif