@page "/registry/{Code}/item/{ItemId:guid}/contribution-amount" @rendermode InteractiveServer @using BirthList.Web.Features.Registries Contribution Amount @if (Registry is null || Item is null) {

Item not found.

} else if (!IsAuthenticated) {

Please log in first.

} else {

Partially fulfill: @Item.Name

@if (RepresentableAmounts.Count == 0) {

No representable amount can be formed from configured QR codes up to €200.

} else { } @if (Suggestions.Count == 0) {

No QR combination available for this amount.

} else {

Suggested QR combination:

@foreach (var suggestion in Suggestions) { @for (var i = 0; i < suggestion.RepeatCount; i++) {
€@suggestion.Amount
QR code @suggestion.Amount
} }
}
}