@extends('admin.layouts.app') @section('title', 'Detail Game: ' . $game->title) @section('content') {{-- Back + Action Buttons --}}
Kembali ke daftar game
✏️ Edit Game
@csrf @method('DELETE')
{{-- ===================== KOLOM KIRI: Info Utama ===================== --}}
{{-- Hero Thumbnail + Title --}}
@if($game->thumbnail_url)
{{ $game->title }}
{{-- Discount badge --}} @if($game->detail && $game->detail->discount > 0) -{{ $game->detail->discount }}% DISKON @endif

{{ $game->title }}

ID: {{ $game->game_id }} @if($game->detail && $game->detail->appid)  ·  AppID: {{ $game->detail->appid }} @endif

@else

{{ $game->title }}

ID: {{ $game->game_id }}

@endif {{-- Genres --}} @if($game->genres->count())
@foreach($game->genres as $genre) {{ $genre->name }} @endforeach
@endif {{-- Short description --}} @if($game->detail && $game->detail->short_description)

{{ $game->detail->short_description }}

@endif {{-- Description --}}

Deskripsi Lengkap

@if($game->description)

{{ $game->description }}

@else

Tidak ada deskripsi.

@endif
{{-- Minimum Requirements --}} @if($game->detail && $game->detail->minimum_requirements)

Minimum Requirements

{{ $game->detail->minimum_requirements }}
@endif
{{-- ===================== SCREENSHOTS GALLERY ===================== --}}

Screenshots

{{ $game->screenshots->count() }} gambar
@if($game->screenshots->count()) {{-- Main viewer --}}
Screenshot
{{-- Thumbnail strip --}}
@foreach($game->screenshots as $i => $screenshot) @endforeach
@else

Belum ada screenshot untuk game ini.

@endif
{{-- ===================== KOLOM KANAN: Meta Info ===================== --}}
{{-- Info Box --}}

Informasi Game

{{-- Harga + Diskon --}} @php $disc = $game->detail->discount ?? 0; $orig = $game->price; $final = $disc > 0 ? $orig * (1 - $disc / 100) : $orig; @endphp
Harga
@if($disc > 0)
-{{ $disc }}% Rp {{ number_format($orig, 0, ',', '.') }}
Rp {{ number_format($final, 0, ',', '.') }} @else {{ $orig == 0 ? 'Gratis' : 'Rp ' . number_format($orig, 0, ',', '.') }} @endif
{{-- Developer --}}
Developer {{ $game->developer->name ?? '-' }}
{{-- Publisher --}}
Publisher {{ $game->publisher->name ?? '-' }}
{{-- Tanggal Rilis --}}
Tanggal Rilis {{ $game->release_date ? $game->release_date->format('d F Y') : 'Belum diset' }}
{{-- Website --}} @if($game->detail && $game->detail->website) @endif {{-- Ditambahkan --}}
Ditambahkan {{ $game->created_at ? $game->created_at->format('d M Y') : '-' }}
{{-- Diperbarui --}}
Diperbarui {{ $game->updated_at ? $game->updated_at->format('d M Y') : '-' }}
{{-- Platform Box --}} @if($game->platforms->count())

Platform ({{ $game->platforms->count() }})

@foreach($game->platforms as $platform)
@if($platform->icon) {!! $platform->icon !!} @endif {{ $platform->name }}
@endforeach
@endif {{-- Screenshots Table --}} @if($game->screenshots->count())

Daftar Screenshot ({{ $game->screenshots->count() }})

@foreach($game->screenshots as $i => $ss)
#{{ $i + 1 }} #{{ $i+1 }} {{ Str::limit($ss->url, 50) }}
@endforeach
@endif {{-- Genre Box --}}

Genre ({{ $game->genres->count() }})

@forelse($game->genres as $genre) {{ $genre->name }} @empty

Tidak ada genre.

@endforelse
@endsection @push('scripts') @endpush