@if (currentStep > 1) { } @if (currentStep === 1) { } Nuova Richiesta
1
2
3
@if (currentStep === 1) {
Seleziona i servizi

Puoi scegliere più servizi: la durata verrà sommata.

@for (group of groupedServiceTypes; track group) {
@if (groupedServiceTypes.length > 1) {
{{ group.category_name }}
} @for (st of group.services; track st) {
{{ st.st_name }} @if (st.st_description) {

{{ st.st_description }}

}
{{ st.st_duration_minutes }} min @if (st.st_requires_attachments) { Foto richieste }
}
} @if (serviceTypes.length === 0) {

Nessun tipo di servizio disponibile

}
} @if (currentStep === 2 && primaryServiceType) {
@if (companyName) { {{ companyName }} } @for (st of selectedServiceTypes; track st) {
· {{ st.st_name }} ({{ st.st_duration_minutes }} min)
}
Totale: {{ totalDurationMinutes }} min
@if (primaryServiceType.st_mode === 'SLOT_FISSO') {
@if (slotsLoading) {

Caricamento slot...

} @if (!slotsLoading && slotGroups.length === 0) {

Nessuno slot disponibile nelle prossime 2 settimane

} @if (!slotsLoading && slotGroups.length > 0) {

Giorno

@for (group of slotGroups; track group) {
{{ getDayName(group) }} {{ getDayDate(group) }}
}
@if (selectedDateGroup) {

Ora

@if (selectedDateGroup.morningSlots.length > 0 && selectedDateGroup.afternoonSlots.length > 0) {
Mattina
Pomeriggio
}
@if (selectedDateGroup.morningSlots.length > 0) {
@for (slot of selectedDateGroup.morningSlots; track slot) {
{{ slot.start_time.substring(0, 5) }}
} } @if (selectedDateGroup.morningSlots.length > 0 && selectedDateGroup.afternoonSlots.length > 0) {
} @if (selectedDateGroup.afternoonSlots.length > 0) {
@for (slot of selectedDateGroup.afternoonSlots; track slot) {
{{ slot.start_time.substring(0, 5) }}
} }
} Continua
}
} @if (primaryServiceType.st_mode === 'SU_RICHIESTA') {
Indica le tue preferenze
Data preferita * Ora preferita *
Allegati @if (anyRequiresAttachments) { * }
Foto File
@for (file of pendingFiles; track file; let i = $index) { {{ file.name }} } @if (anyRequiresAttachments && pendingFiles.length === 0) {

Almeno un allegato è obbligatorio

}
Continua
} @if (primaryServiceType.st_mode === 'SU_PREVENTIVO') {
Descrivi la richiesta di preventivo
Allegati @if (anyRequiresAttachments) { * }
Foto File
@for (file of pendingFiles; track file; let i = $index) { {{ file.name }} } @if (anyRequiresAttachments && pendingFiles.length === 0) {

Almeno un allegato è obbligatorio

}
Continua
}
} @if (currentStep === 3 && primaryServiceType) {
Riepilogo

Servizi richiesti

@for (st of selectedServiceTypes; track st) {

{{ st.st_name }} ({{ st.st_duration_minutes }} min)

}

Durata totale

{{ totalDurationMinutes }} minuti

@if (primaryServiceType.st_mode !== 'SU_PREVENTIVO') {

Data

{{ getSummaryDate() }}

Ora

{{ getSummaryTime() }}

} @if (primaryServiceType.st_mode === 'SU_PREVENTIVO') {

Tipo richiesta

Preventivo — il professionista ti invierà un'offerta

}
@if (pendingFiles.length > 0) {

{{ pendingFiles.length }} allegat{{ pendingFiles.length === 1 ? 'o' : 'i' }}

} Invia Richiesta
}
@if (currentStep === 1 && selectedServiceTypes.length > 0) { }