Share Letter

A letter to shareholding members, merged with their own details and printed — one page each.
Merged per member: @for (p of placeholders; track p) { {{ p }}{{ $last ? '.' : ', ' }} } Anything else you write is sent as it stands.
@if (loading) {
Loading the mailing list…
} @else if (loadError) {
{{ loadError }}
} @else if (!filteredRows.length) {
No shareholding member matches the filters applied.
} @else {
@for (row of filteredRows; track row.clientId) { }
Member Folio No Area Shares Postable
{{ row.clientName }} {{ row.folioNumber || '—' }} {{ row.area }} {{ row.sharesHeld | number }} @if (row.addressable) { Yes } @else { No address }
{{ recipients.length | number }} letter{{ recipients.length === 1 ? '' : 's' }} will print @if (!selectedIds.length) { (everyone shown — tick rows to narrow it) }
@for (row of recipients; track row.clientId) {
{{ institution?.name || institution?.institutionName || 'Co-operative Bank' }}
@if (institution?.addressLine1 || institution?.address) {
{{ institution?.addressLine1 || institution?.address }}
}
{{ row.clientName }}
@for (line of lines(row); track line) {
{{ line }}
} @if (row.folioNumber) {
Folio {{ row.folioNumber }}
}
Date: {{ today }}
@if (subject.trim()) {
Subject: {{ subject }}
}
Dear {{ row.clientName }},
{{ merged(row) }}
Yours faithfully,
Authorised Signatory
} }