@using Blazored.Toast @inherits LayoutComponentBase @inject NavigationManager Navigation
YOUR CART (@ShoppingCart.Items.Count())
@if (!ShoppingCart.Items.Any()) {
Your collection is empty.
} else {
@foreach (var item in ShoppingCart.Items) {
@if (!string.IsNullOrWhiteSpace(item.Product!.ImageUrl)) { @item.Product.Name } else { @:[COVER] }
@item.Product!.Name

by @($"{item.Author!.Name} {item.Author.LastName}")

@ShoppingCart.Items.FirstOrDefault(i => i.Price!.Id == item.Price!.Id)!.Quantity
R @(item.Price!.Amount * item.Quantity)
}
}
@if (ShoppingCart.Items.Any()) { }
@Body