@extends('layouts.app') @section('title', 'Edit Game - Admin Panel') @section('content')
@include('admin.partials.sidebar')

{{ __('Edit Game') }}: {{ $game->title }}

{{ __('Back to Games') }}
@csrf @method('PUT')
@error('title')
{{ $message }}
@enderror
@error('title_mm')
{{ $message }}
@enderror
@error('category_id')
{{ $message }}
@enderror
@error('game_type')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('description_mm')
{{ $message }}
@enderror
@if($game->swf_file_path)

{{ basename($game->swf_file_path) }}

{{ __('Uploaded') }}: {{ $game->created_at->format('M d, Y') }} @else

{{ __('No file uploaded') }}

@endif
{{ __('Leave empty to keep current file. Upload .swf file (max 50MB)') }}
@error('swf_file')
{{ $message }}
@enderror
{{ __('Enter the URL of the game to embed') }}
@error('iframe_url')
{{ $message }}
@enderror
{{ __('Or paste complete iframe code (optional - will override URL if provided)') }}
@error('iframe_code')
{{ $message }}
@enderror
@if($game->isIframeGame())
@if($game->iframe_code)

{{ __('Custom Iframe Code') }}:

{{ $game->iframe_code }}
@elseif($game->iframe_url)

{{ __('Iframe URL') }}: {{ $game->iframe_url }}

@endif
@endif @error('iframe_content')
{{ $message }}
@enderror
@if($game->thumbnail) {{ $game->title }} @else

{{ __('No thumbnail uploaded') }}

@endif
{{ __('Leave empty to keep current thumbnail. Upload image (max 5MB)') }}
@error('thumbnail')
{{ $message }}
@enderror
@error('width')
{{ $message }}
@enderror
@error('height')
{{ $message }}
@enderror
@error('sort_order')
{{ $message }}
@enderror
is_featured) ? 'checked' : '' }}>
is_active) ? 'checked' : '' }}>
{{ __('Game Statistics') }}
{{ __('Total Plays') }}: {{ $game->plays_count }}
{{ __('Created') }}: {{ $game->created_at->format('M d, Y') }}
{{ __('Last Updated') }}: {{ $game->updated_at->format('M d, Y') }}
{{ __('Status') }}: @if($game->is_active) {{ __('Active') }} @else {{ __('Inactive') }} @endif
@push('styles') @endpush @push('scripts') @endpush @endsection