@if (company && (!isManager || !managerHeaderCollapsed)) {
}
@if (!isManager || !managerHeaderCollapsed) {
@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) {
}
@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) {
@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 (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') {
}
}
}