Associa Dipendenti Cantiere - {{ worksite.ws_name || 'Caricamento...' }}
Dipendenti Disponibili ({{ filteredAvailableEmployee.length }})
@for (employee of filteredAvailableEmployee; track employee.emId) {
{{ employee.emLastname }} {{ employee.emFirstname }} @if (employee.emEmail) { ({{ employee.emEmail }}) }
} @if (filteredAvailableEmployee.length === 0) {

Nessun dipendente disponibile

}
Dipendenti Assegnati ({{ assignedEmployee.length }})
@for (employee of assignedEmployee; track employee.emId) {
{{ employee.emLastname }} {{ employee.emFirstname }} @if (employee.emEmail) { ({{ employee.emEmail }}) }
dal {{ formatDate(employee.dateStart) }} @if (employee.dateEnd) { al {{ formatDate(employee.dateEnd) }} } @if (!employee.dateEnd) { (in corso) }
} @if (assignedEmployee.length === 0) {

Nessun dipendente assegnato al cantiere

}
Storico associazioni ({{ historical.length }})
@if (showHistory) {
@if (historical.length === 0) {
Nessuna associazione storica
} @if (historical.length > 0) {
@for (h of historical; track h) { }
Dipendente Dal Al Stato
{{ h.emLastname }} {{ h.emFirstname }}
{{ formatDate(h.dateStart) }} {{ h.dateEnd ? formatDate(h.dateEnd) : '—' }}
}
}
Totale: {{ allItems.length }} | Assegnati: {{ assignedEmployee.length }} | Disponibili: {{ availableEmployee.length }} | Storici: {{ historical.length }}
@if (selectedItem) {
{{ selectedItem.emLastname }} {{ selectedItem.emFirstname }}
Cantiere: {{ worksite.ws_name }}
}