@model SubAccountModel
@using Grand.Web.Models.Customer;
@inject IPageHeadBuilder pagebuilder
@{
    Layout = "_TwoColumns";

    //title
    pagebuilder.AddTitleParts(Loc["Title.Account"]);
}
@section left
{
    @await Component.InvokeAsync("CustomerNavigation", new { selectedTabId = AccountNavigationEnum.SubAccounts })
}
<validation-observer v-slot="{ handleSubmit }">
    <form asp-route="CustomerSubAccountEdit" asp-antiforgery="true" method="post" autocomplete="off" ref="form" v-on:submit.prevent="handleSubmit(formSubmit)">
        <div class="page account-page subaccount-edit-page pl-lg-3 mb-3 pt-lg-0 pt-3">
            <h1 class="generalTitle h2">@Loc["Account.SubAccount.Edit"]</h1>
            <div asp-validation-summary="ModelOnly" class="message-error alert alert-danger"></div>
            <partial name="Partials/CreateOrUpdateSubAccount" model="Model" />
            <div class="buttons generalMarginSupporter">
                <input type="submit" class="btn btn-info save-subaccount-button" value="@Loc["Common.Save"]" />
            </div>
        </div>
    </form>
</validation-observer>