Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
@model CoursesModel
@inject IPageHeadBuilder pagebuilder
@{
Layout = "_TwoColumns";
//title
pagebuilder.AddTitleParts(Loc["Title.Courses"]);
}
@section left
{
@await Component.InvokeAsync("CustomerNavigation", new { selectedTabId = AccountNavigationEnum.Courses })
}
<div class="page account-page auction-list-page ps-lg-3 pt-3 pt-lg-0">
<h1 class="h2 generalTitle">@Loc["Account.Courses"]</h1>
@if (Model.CourseList.Any())
{
foreach (var item in Model.CourseList)
{
<div class="card mb-3">
<div class="card-header">
<h3 class="h5 mb-0 d-inline-flex">
<a href="@Url.RouteUrl("Course", new { item.SeName })">
@item.Name
</a>
</h3>
<div class="d-inline-flex flex-column align-items-end">
@if (item.Approved)
{
<div class="form-check my-1 me-sm-2">
<input type="checkbox" class="form-check-input" id="customControlInline" checked disabled>
<label class="form-check-label" for="customControlInline"></label>
</div>
}
else
{
<div class="form-check disabled form-check my-1 me-sm-2">
<input type="checkbox" class="form-check-input" id="customControlInline" disabled>
<label class="form-check-label" for="customControlInline"></label>
</div>
}
</div>
</div>
@if (!string.IsNullOrEmpty(item.ShortDescription))
{
<div class="card-body" v-pre>
@Html.Raw(item.ShortDescription)
</div>
}
</div>
}
}
else
{
<div class="no-data alert alert-info my-3">
@Loc["Account.Courses.NoExists"]
</div>
}
</div>