This commit is contained in:
parent
6eeda76d63
commit
4c3660c9f9
@ -374,6 +374,9 @@ function GuestList({ eventId, onBack, onShowMembers }) {
|
|||||||
confirmed: guests.filter(g => g.rsvp_status === 'confirmed').length,
|
confirmed: guests.filter(g => g.rsvp_status === 'confirmed').length,
|
||||||
declined: guests.filter(g => g.rsvp_status === 'declined').length,
|
declined: guests.filter(g => g.rsvp_status === 'declined').length,
|
||||||
invited: guests.filter(g => g.rsvp_status === 'invited').length,
|
invited: guests.filter(g => g.rsvp_status === 'invited').length,
|
||||||
|
totalCompany: guests
|
||||||
|
.filter(g => g.rsvp_status === 'confirmed')
|
||||||
|
.reduce((sum, g) => sum + (g.companion_count > 0 ? g.companion_count : 1), 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportToExcel = () => {
|
const exportToExcel = () => {
|
||||||
@ -523,6 +526,10 @@ function GuestList({ eventId, onBack, onShowMembers }) {
|
|||||||
<span className="stat-label">{he.invited}</span>
|
<span className="stat-label">{he.invited}</span>
|
||||||
<span className="stat-value" style={{ color: 'var(--color-warning)' }}>{stats.invited}</span>
|
<span className="stat-value" style={{ color: 'var(--color-warning)' }}>{stats.invited}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="stat-card">
|
||||||
|
<span className="stat-label">סה"כ מגיעים</span>
|
||||||
|
<span className="stat-value" style={{ color: 'var(--color-primary)' }}>{stats.totalCompany}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{showColumnSettings && (
|
{showColumnSettings && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user