@php use App\Models\Game; use App\Models\GameList; use App\Models\Genre; use App\Models\Platform; @endphp {{-- Check to see if the user is logged in. --}} @if (Auth::check()) {{-- Check role of user. --}} @if ( Auth::user()->role_id != 1 && Auth::user()->role_id != 2 && Auth::user()->role_id != 3 ) {{-- Redirect to home page. --}} @endif @endif

Edit Game - {{ $game->name }}

@if (count($errors) > 0)

Error Editing Game

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Please use the pipe character | to separate each alternative title. Do not include any spaces before or after the pipe.
Boxart images must not be over 512kb and must be a JPG/JPEG, GIF or PNG file.

@php $genres = Genre::all()->sortBy('name'); @endphp @foreach ($genres as $genre)
id, explode(',', $game->genre_ids))) {{ (in_array($genre->id, old('genre_ids', []))) ? "checked" : (in_array($genre->id, explode(',', $game->genre_ids))) }}>
@endforeach
Please ensure this is a comma separated value if there are multiple developers.
Please ensure this is a comma separated value if there are multiple publishers.
Please ensure this is a comma separated value if there are multiple composers.

Hold On!

Before you submit your update, please ensure you've followed our guidelines. Thank you!

Current Boxart

image