@page "/admin/faqs/{id:int}"
@model TaxBaik.Web.Pages.Admin.Faqs.DetailModel
@{ ViewData["Title"] = "FAQ 상세"; }

<section class="admin-page-shell">
    @await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Support", "FAQ 상세", "FAQ의 질문, 답변, 상태를 확인합니다.", null, null))

    @if (Model.Item is null)
    {
        @await Html.PartialAsync("_EmptyState", "FAQ를 찾을 수 없습니다.")
    }
    else
    {
        <div class="row g-4">
            <div class="col-lg-8">
                <div class="card">
                    <div class="card-body">
                        <dl class="row details-grid mb-0">
                            <dt class="col-sm-3">질문</dt>
                            <dd class="col-sm-9">@Model.Item.Question</dd>
                            <dt class="col-sm-3">답변</dt>
                            <dd class="col-sm-9"><div class="pre-wrap">@Model.Item.Answer</div></dd>
                            <dt class="col-sm-3">카테고리</dt>
                            <dd class="col-sm-9">@Model.Item.Category</dd>
                            <dt class="col-sm-3">활성</dt>
                            <dd class="col-sm-9">@await Html.PartialAsync("_StatusBadge", Model.Item.IsActive ? "active" : "inactive")</dd>
                            <dt class="col-sm-3">정렬</dt>
                            <dd class="col-sm-9">@Model.Item.SortOrder</dd>
                        </dl>
                    </div>
                </div>
            </div>
            <div class="col-lg-4">
                <div class="card">
                    <div class="card-body d-grid gap-2">
                        <a class="btn btn-primary" href="/admin/faqs/@Model.Item.Id/edit">수정</a>
                        <a class="btn btn-outline-secondary" href="/admin/faqs">목록</a>
                    </div>
                </div>
            </div>
        </div>
    }
</section>









