@page "/admin/recipes" @model Recipes.IndexModel @using DataServer.Data.Entities @{ ViewData["Title"] = "Recipes"; } @Html.AntiForgeryToken()

Crafting Recipes

Manage crafting recipes

Create Recipe
Clear
@foreach (var recipe in Model.Recipes) { } @if (!Model.Recipes.Any()) { }
ID Recipe Output Skill Lvl Ingredients Base Enabled Actions
@recipe.Id @recipe.Name @if (!string.IsNullOrEmpty(recipe.Description)) {

@recipe.Description

}
@if (recipe.OutputItem != null) {
@if (!string.IsNullOrEmpty(recipe.OutputItem.SpritePath)) { }
@recipe.OutputItem.Name @if (recipe.OutputQuantity > 1) { x@recipe.OutputQuantity }
} else { Missing Item #@recipe.OutputItemDefinitionId }
@recipe.SkillType @recipe.RequiredLevel @recipe.Ingredients.Count @if (recipe.IsBaseRecipe) { ✓ } else { - } @if (recipe.IsEnabled) { } else { }
No recipes found. Create one?
@if (Model.TotalPages > 1) {

Showing @((Model.CurrentPage - 1) * Model.PageSize + 1)-@Math.Min(Model.CurrentPage * Model.PageSize, Model.TotalCount) of @Model.TotalCount

@if (Model.CurrentPage > 1) { ← Prev } @Model.CurrentPage / @Model.TotalPages @if (Model.CurrentPage < Model.TotalPages) { Next → }
}
@functions { string GetSkillBadgeClass(CraftingSkillType skill) => skill switch { CraftingSkillType.Smithing => "badge-common", CraftingSkillType.Fletching => "badge-uncommon", CraftingSkillType.Jewelry => "badge-rare", CraftingSkillType.Alchemy => "badge-epic", CraftingSkillType.Academic => "badge-legendary", _ => "badge-common" }; } @section Scripts { }