@if (loading) {

Loading ballot...

} @else if (candidates.length === 0) {
ballot

No candidates available for voting.

} @else { @if (allPostsVoted) {
check_circle
Thank you! Your votes have been recorded.

You have successfully voted for all posts.

Go to Dashboard
} @else {
info Select one candidate per post and click "Cast Vote". Each post must be voted separately.
} @for (group of groupByPost(); track group.postId) {

{{ group.postName }}

@if (votedPosts.has(group.postId)) { check Voted } @else { Select candidate }
@for (candidate of group.candidates; track candidate.id) {
@if (isSelected(group.postId, candidate.id)) { radio_button_checked } @else { radio_button_unchecked }
@if (candidate.photoUrl) { } @else {
{{ candidate.candidateName.charAt(0) }}
}
No. {{ candidate.serialNumber }}

{{ candidate.candidateName }}

@if (candidate.symbol) { {{ candidate.symbol }} }
@if (isSelected(group.postId, candidate.id) && votedPosts.has(group.postId)) {
how_to_vote
}
}
@if (!votedPosts.has(group.postId)) {
}
} }