@if (isManager && managerHeaderCollapsed) {
{{ company?.name || 'Gestione' }}
Mostra
} @if (!isManager || !managerHeaderCollapsed) {
@if (heroImage) {
} @if (!heroImage) {
}
@if (activeCard) { } @if (isManager) { }
}
@if (company && (!isManager || !managerHeaderCollapsed)) {

{{ company.name }}

{{ getServiceDescription() }}

@if (getCompanyAddress()) {
{{ getCompanyAddress() }}
} @if (company?.cmp_phone_number) {
{{ company.cmp_phone_number }}
}
} @if (!isManager || !managerHeaderCollapsed) {
Prenota
Scan QR
@if (company?.cmp_phone_number) {
Chiama
} @if (getCompanyAddress()) {
Direzioni
} @if (company?.cmp_web) {
Sito Web
}
Chat
} @if (isManager) {
Lista@if (managerListBookings.length > 0) { {{ managerListBookings.length }} } Assegna@if (managerUnassignedBookings.length > 0) { {{ managerUnassignedBookings.length }} } Ordini Mappa
} @if (isManager) {
@if (managerTab === 'lista' || managerTab === 'da-assegnare') {
@if (managerResourceTypes.length > 0) {
} @if (isRestaurantTypeSelected && managerTimeSlots.length > 0) {
} @if (hasNonDefaultManagerFilters()) { }
} @if (managerTab === 'lista') { @if (loading) {
} @if (!loading && managerListBookings.length === 0) {

Nessuna prenotazione

} @if (!loading && managerListBookings.length > 0) {
@for (b of managerListBookings; track b) {
@if (b.bkrt_type !== 'RESTAURANT') { } @if (b.bkrt_type === 'RESTAURANT') { } @if (b.bkrt_type === 'RESTAURANT') { {{ getBookingResourceLabel(b) || 'Tavolo' }} • {{ b.bkb_guests_count }} posti } @if (b.bkrt_type !== 'RESTAURANT') { {{ b.bkr_name || 'Risorsa' }} }
{{ getStatusLabel(b.bkb_status) }}
{{ b.bkb_customer_name || '—' }}@if (b.bkb_customer_phone) { • {{ b.bkb_customer_phone }} }
{{ formatDate(b.bkb_date) }}@if (b.bkb_date_to && toDateStr(b.bkb_date_to) !== toDateStr(b.bkb_date)) { → {{ formatDate(b.bkb_date_to) }} }
@if (b.bkrt_type === 'RESTAURANT' && (b.bkts_name || b.bkb_start_time)) {
{{ b.bkts_name || (b.bkb_start_time + ' - ' + b.bkb_end_time) }}
}
}
} } @if (managerTab === 'da-assegnare') { @if (loading) {
} @if (!loading && managerUnassignedBookings.length === 0) {

Nessuna prenotazione in attesa di assegnazione

} @if (!loading && managerUnassignedBookings.length > 0) {
Apri il dettaglio per assegnare un tavolo e confermare la prenotazione.
@for (b of managerUnassignedBookings; track b) {
{{ getBookingResourceLabel(b) || 'Tavolo' }} • {{ b.bkb_guests_count }} posti
DA ASSEGNARE
{{ b.bkb_customer_name || '—' }}@if (b.bkb_customer_phone) { • {{ b.bkb_customer_phone }} }
{{ formatDate(b.bkb_date) }}
@if (b.bkts_name || b.bkb_start_time) {
{{ b.bkts_name || (b.bkb_start_time + ' - ' + b.bkb_end_time) }}
}
}
} } @if (managerTab === 'ordini') {
@for (f of ordiniStatusFamilies; track f) { }

Tocca più stati per combinarli

@if (ordiniLoading) {
} @if (!ordiniLoading && filteredOrdiniList.length === 0) {

Nessun ordine nel periodo selezionato

} @if (!ordiniLoading && filteredOrdiniList.length > 0) {
@for (g of groupedOrdiniList; track g.bookingId + '-' + g.sendSeq) {
@if (g.bkrtType === 'BEACH') { } @if (g.bkrtType === 'RESTAURANT') { } @if (!g.bkrtType) { } {{ g.bkrName }} @if (g.sendSeq > 0) { #{{ g.sendSeq }} }
@if (g.customerName) { {{ g.customerName }} } @if (g.createdAt) { {{ formatOrdineDate(g.createdAt) }} }
€ {{ g.total | number:'1.2-2' }} @if (g.allReady) { Consegna }
@for (item of g.items; track item) {
×{{ item.bkbi_quantity }}
{{ item.bkmi_name }}
@if (item.bkmc_name) { {{ item.bkmc_name }} } @if (getItemPaymentMethodLabel(item.bkbi_notes)) { {{ getItemPaymentMethodLabel(item.bkbi_notes) }} }
{{ getOrdineStatusLabel(item.bkbi_notes) }} € {{ item.bkbi_total_price | number:'1.2-2' }}
}
}
} } @if (managerTab === 'mappa') {
@if (mappaTimeSlots.length > 0) {
}
Libera In attesa Occupata
@if (mappaLoading) {
} @if (!mappaLoading && mappaResourcesAll.length === 0) {

Nessuna risorsa configurata per questo tipo

} @if (!mappaLoading && mappaResourcesAll.length > 0) { } }
} @if (!isManager) {
Attive @if (activeBookings.length > 0) { {{ activeBookings.length }} } Storico @if (pastBookings.length > 0) { {{ pastBookings.length }} } Annullate @if (cancelledBookings.length > 0) { {{ cancelledBookings.length }} }
} @if (!isManager) {
@if (activeTab === 'active') { Le tue prenotazioni } @if (activeTab === 'past') { Prenotazioni passate } @if (activeTab === 'cancelled') { Annullate }
{{ currentList.length }}
@if (loading) {
} @if (!loading && currentList.length === 0) {
@if (activeTab === 'active') { } @if (activeTab === 'past') { } @if (activeTab === 'cancelled') { }

@if (activeTab === 'active') { Nessuna prenotazione attiva } @if (activeTab === 'past') { Nessuna prenotazione passata } @if (activeTab === 'cancelled') { Nessuna prenotazione annullata }

} @if (!loading && currentList.length > 0) {
@for (b of currentList; track b) {
@if (b.bkrt_type !== 'RESTAURANT') { } @if (b.bkrt_type === 'RESTAURANT') { } @if (b.bkrt_type === 'RESTAURANT') { {{ getBookingResourceLabel(b) || 'Tavolo' }} • {{ b.bkb_guests_count }} posti } @if (b.bkrt_type !== 'RESTAURANT') { {{ b.bkr_name || ('Ombrellone' + (b.bkb_resource_id ? ' #' + b.bkb_resource_id : '')) }} }
{{ getStatusLabel(b.bkb_status) }}
{{ formatDate(b.bkb_date) }} @if (b.bkb_date_to && b.bkb_date_to !== b.bkb_date) { → {{ formatDate(b.bkb_date_to) }} }
@if (b.bkrt_type === 'RESTAURANT' && (b.bkts_name || b.bkb_start_time)) {
{{ b.bkts_name || (b.bkb_start_time + ' - ' + b.bkb_end_time) }}
} @if (b.bkb_total_amount > 0 || b.bkrt_type !== 'RESTAURANT') { } @if (activeTab !== 'cancelled' && b.bkb_total_amount > 0) {
} @if (activeTab === 'active') {
}
}
}
}
{{ getCompanyInitials() }}

{{ company?.name || company?.cmp_name }}

Invia un messaggio

{{ chatMessage.length }} / 1000