@model iyixiGames.Domain.DTOs.Games.GameResponse

@{
    ViewData["Title"] = "游戏详情 - " + Model.Name;
}

<div class="container mt-4">
    <div class="d-flex justify-content-between align-items-center mb-3">
        <h1>@ViewData["Title"]</h1>
        <div>
            <a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-info me-2">编辑</a>
            <a asp-action="Index" class="btn btn-secondary">返回列表</a>
        </div>
    </div>

    <div class="card shadow-sm">
        <div class="card-body">
            <h4 class="card-title mb-4">基本信息</h4>
            <dl class="row">
                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.Id)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.Id)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.Name)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.Name)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.Path)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.Path)</dd>
                
                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.Category)</dt>
                <dd class="col-sm-9">@(string.Join(", ", Model.Category))</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.Popularity)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.Popularity)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.AvgRating)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.AvgRating)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.ReleaseDate)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.ReleaseDate)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.CreatedAt)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.CreatedAt)</dd>

                <dt class="col-sm-3">@Html.DisplayNameFor(model => model.UpdatedAt)</dt>
                <dd class="col-sm-9">@Html.DisplayFor(model => model.UpdatedAt)</dd>
            </dl>
        </div>
    </div>
</div>