—
{$t('history.exportJSON')}
{$t('history.exportCSV')}
{#if sessions.length > 0}
{$t('history.deleteAll')}
{/if}
{#if loading}
{$t('common.loading')}
{:else} {#if stats}
{$t('participants.stats')}
{stats.totalSessions}
{$t('participants.totalMeetings')}
{formatTime(Math.round(stats.averageMeetingTime))}
{$t('history.avgTime')}
{stats.overtimePercentage.toFixed(0)}%
{$t('history.overtimeRate')}
{stats.averageAttendance.toFixed(1)}
{$t('history.avgAttendance')}
{#if stats.participantBreakdown?.length > 0}
{$t('history.participantBreakdown')}
{$t('history.name')}
{$t('history.sessions')}
{$t('history.avgTime')}
{$t('history.overtime')}
{$t('history.attendance')}
{#each stats.participantBreakdown as p}
{p.name}
{p.sessionsAttended}
{formatTime(Math.round(p.averageSpeakingTime))}
0}>{p.overtimeCount}
{p.attendanceRate.toFixed(0)}%
{/each}
{/if}
{/if}
{$t('history.recentSessions')}
{#if sessions.length === 0}
{$t('history.noSessions')}
{:else} {#each sessions as session}
900}>
{formatDate(session.startedAt)}
{formatTime(session.totalDuration)}
{#if session.totalDuration > 900}
OVERTIME
{/if}
handleDeleteSession(session.id)} title={$t('history.deleteSession')}>🗑️
{#if session.participantLogs?.length > 0}
{#each session.participantLogs as log}
#{log.order}
{log.participant?.name || 'Unknown'}
(log.participant?.timeLimit || 0)}> {formatTime(log.duration)}
{#if log.participant?.timeLimit}
/
{formatTime(log.participant.timeLimit)}
{/if}
{#if log.overtime}
⚠️
{/if} {#if log.skipped}
⏭️
{/if}
{/each}
{/if}
{/each} {/if}
{/if}
{#if deletingSessionId !== null}
deletingSessionId = null}>
{$t('history.confirmDeleteTitle')}
{$t('history.confirmDeleteSession')}
deletingSessionId = null}>{$t('common.cancel')}
{$t('common.delete')}
{/if} {#if showDeleteAllConfirm}
showDeleteAllConfirm = false}>
{$t('history.confirmDeleteAllTitle')}
{$t('history.confirmDeleteAll')}
showDeleteAllConfirm = false}>{$t('common.cancel')}
{$t('history.deleteAll')}
{/if}