@extends('admin.layouts.home') @section('title', 'Edit Game') @section('content')

Edit Game: {{ $game->title }}

View Game Back to Games
Edit Game Information
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Basic Information
Game Embed
Enter the URL of the HTML5 game. This should be a direct link to the game file or embed URL.
Note: Make sure the game URL is from a trusted source and the game is compatible with iframe embedding.
Game Instructions
Provide clear instructions on how to play the game, including controls and objectives.
Game Thumbnail
Recommended size: 400x300 pixels. Max file size: 2MB.
@if($game->thumbnail_url) {{ $game->title }} @else
@endif
Statistics

Total Plays: {{ number_format($game->plays_count) }}

Average Rating: {{ number_format($game->avgRating, 1) }}/5

Total Ratings: {{ $game->ratings->count() }}

Added On: {{ $game->created_at->format('M d, Y') }}

Last Updated: {{ $game->updated_at->format('M d, Y') }}

Game Settings
is_active) ? 'checked' : '' }}>
If enabled, this game will be visible to users.
is_featured) ? 'checked' : '' }}>
If enabled, this game will be highlighted in featured sections.
is_multiplayer) ? 'checked' : '' }}>
Enable if this game supports multiplayer functionality.
@endsection @push('scripts') @endpush