<?php

namespace RadiusTheme\RadiusBooking\Shortcodes;

class MyBooking {
	/**
	 * Output booking form
	 *
	 * @param mixed $atts Attributes or parameters passed to the method.
	 *
	 * @return void
	 */
	public static function output( $atts ): void {
		self::booking_dashboard( $atts );
	}


	/**
	 * Booking form
	 *
	 * @param mixed $atts Attributes or parameters passed to the method.
	 *
	 * @return void
	 */
	private static function booking_dashboard( $atts ) {
		if ( is_user_logged_in()){
			rtrb_get_template( 'my-booking/dashboard.php', array( 'atts' => $atts ) );
		}else{
			self::login_form();
		}
	}

	public static function login_form(  ) {
		rtrb_get_template( 'my-booking/form-login.php' );
	}
}