@page "{id:int}"
@model Admin.Pages.Channel.List.ViewModel
@{
    ViewData["Title"] = "채널 정보";
}

<div class="container">
    <h3>@ViewData["Title"]</h3>
    <hr />

    <partial name="_StatusMessage" />

    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <colgroup>
                <col style="width: 15%;" />
                <col />
            </colgroup>
            <tr>
                <th>PK</th>
                <td>@Model.ID</td>
            </tr>
            <tr>
                <th>회원(소유자)</th>
                <td>@Model.MemberInfo</td>
            </tr>
            <tr>
                <th>SID</th>
                <td>@Model.SID</td>
            </tr>
            <tr>
                <th>이름</th>
                <td>@Model.Name</td>
            </tr>
            <tr>
                <th>핸들</th>
                <td>@(Model.Handle ?? "-")</td>
            </tr>
            <tr>
                <th>YouTube 주소</th>
                <td>
                    <a href="@Model.YouTubeUrl" target="_blank" rel="external">@Model.YouTubeUrl</a>
                </td>
            </tr>
            <tr>
                <th>수수료(%)</th>
                <td>@Model.PlatformFeeRate%</td>
            </tr>
            <tr>
                <th>인증 여부</th>
                <td>@(Model.IsVerified ? "Y" : "N")</td>
            </tr>
            <tr>
                <th>사용 여부</th>
                <td>@(Model.IsActive ? "Y" : "N")</td>
            </tr>
            <tr>
                <th>수정일시</th>
                <td>@(Model.UpdatedAt ?? "-")</td>
            </tr>
            <tr>
                <th>등록일시</th>
                <td>@Model.CreatedAt</td>
            </tr>
        </table>
    </div>

    <div class="d-grid gap-2 text-center d-md-block">
        <a href="/Channel/List/Edit/@Model.ID" class="btn btn-info">수정</a>
        <a href="/Channel/List" class="btn btn-secondary">목록</a>
    </div>

    <br />
</div>
