@page
@model TaxBaik.Web.Pages.Admin.TaxProfiles.IndexModel
@{ ViewData["Title"] = "세무 프로필"; }

<section class="admin-page-shell">
    @await Html.PartialAsync("_AdminPageHeader", new TaxBaik.Web.Models.AdminPageHeaderModel("Tax", "세무 프로필 관리", "고객별 세무 속성을 관리합니다.", null, null))
    @if (Model.Items.Count == 0)
    {
        <div class="card">
            <div class="card-body">
                @await Html.PartialAsync("_EmptyState", "세무 프로필이 없습니다.")
            </div>
        </div>
    }
    else
    {
        <div class="card">
            <div class="table-responsive">
                <table class="table table-vcenter card-table">
                    <thead>
                        <tr><th>고객ID</th><th>사업유형</th><th>세무위험</th><th>다음신고일</th></tr>
                    </thead>
                    <tbody>
                    @foreach (var item in Model.Items)
                    {
                        <tr>
                            <td>@item.ClientId</td>
                            <td>@item.BusinessType</td>
                            <td>@await Html.PartialAsync("_StatusBadge", item.TaxRiskLevel ?? "normal")</td>
                            <td>@item.NextFilingDueDate?.ToString("yyyy-MM-dd")</td>
                        </tr>
                    }
                    </tbody>
                </table>
            </div>
        </div>
    }
</section>









