list_bookings_for_date( $vefmb_today ); $vefmb_upcoming = $vefmb_booking_service->list_bookings( $vefmb_today, $vefmb_upcoming_to ); $vefmb_pending_payments = $vefmb_booking_service->list_pending_payments( $vefmb_today, $vefmb_upcoming_to ); $vefmb_confirmed_revenue = 0.0; foreach ( $vefmb_upcoming as $vefmb_b ) { if ( 'confirmed' === $vefmb_b['status'] && 'paid' === $vefmb_b['payment_status'] ) { $vefmb_confirmed_revenue += (float) $vefmb_b['total_amount']; } } ?>