@page "{id:int}"
@model Admin.Pages.Member.Wallet.Transactions.ViewModel
@{
    ViewData["Title"] = "거래 장부 상세";
}

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

    <partial name="_StatusMessage" />

    <div class="row mb-3">
        <label class="col-sm-2">거래 ID</label>
        <div class="col-sm-10">
            @Model.Detail.ID
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">회원</label>
        <div class="col-sm-10">
            [@Model.Detail.MemberID] @Model.Detail.MemberEmail, @(Model.Detail.MemberName ?? "-")
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">지갑 ID</label>
        <div class="col-sm-10">
            @Model.Detail.WalletID
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">지갑 정보</label>
        <div class="col-sm-10">
            보유 P : @Model.Detail.WalletBalance / 후원 받은 P : @Model.Detail.WalletDonationBalance
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">거래 유형</label>
        <div class="col-sm-10">
            @Model.Detail.TxType
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">잔액 구분</label>
        <div class="col-sm-10">
            @Model.Detail.BalanceType
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">거래 금액</label>
        <div class="col-sm-10">
            @Model.Detail.Amount P
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">거래 후 잔액</label>
        <div class="col-sm-10">
            @Model.Detail.BalanceAfter P
            <div class="form-text text-muted">
                거래 시점의 해당 잔액 구분 잔액입니다.
            </div>
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">사유</label>
        <div class="col-sm-10">
            @(Model.Detail.Reason ?? "-")
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">참조 ID</label>
        <div class="col-sm-10">
            @(Model.Detail.RefID ?? "-")
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">사용자 ID</label>
        <div class="col-sm-10">
            @(Model.Detail.UserID ?? "-")
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">메모</label>
        <div class="col-sm-10">
            @(Model.Detail.Memo ?? "-")
        </div>
    </div>
    <div class="row mb-3">
        <label class="col-sm-2">거래 일시</label>
        <div class="col-sm-10">
            @Model.Detail.CreatedAt
        </div>
    </div>
    <hr/>

    <div class="d-grid gap-2 text-center d-md-block">
        <a href="/Member/Wallet/Transactions" class="btn btn-sm btn-secondary">뒤로가기</a>
    </div>
    <br/>
</div>