<?php
/**
 * The template for displaying mini cart js template.
 *
 * This template can be overridden by copying it to yourtheme/wp-hotel-booking/cart/mini_cart_layout.php.
 *
 * @author  ThimPress, leehld
 * @package WP-Hotel-Booking/Templates
 * @version 1.6.1
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit; ?>

<script type="text/html" id="tmpl-hb-minicart-item">
	<div class="hb_mini_cart_item active" data-cart-id="{{ data.cart_id }}">

		<div class="hb_mini_cart_top">
			<h4 class="hb_title"><a href="{{{ data.permalink }}}">{{ data.name }}</a></h4>
			<span class="hb_mini_cart_remove"><i class="fa fa-times"></i></span>
		</div>

		<div class="hb_mini_cart_number">
			<label><?php _e( 'Quantity: ', 'wp-hotel-booking' ); ?></label>
			<span>{{ data.quantity }}</span>
		</div>

		<div class="hb_mini_cart_price">
			<label><?php _e( 'Price: ', 'wp-hotel-booking' ); ?></label>
			<span>{{{ data.total }}}</span>
		</div>

	</div>
</script>

<script type="text/html" id="tmpl-hb-minicart-footer">
	<div class="hb_mini_cart_footer">
		<a href="<?php echo hb_get_checkout_url(); ?>" class="hb_button hb_checkout"><?php _e( 'Check Out', 'wp-hotel-booking' ); ?></a>
		<a href="<?php echo hb_get_cart_url(); ?>" class="hb_button hb_view_cart"><?php _e( 'View Cart', 'wp-hotel-booking' ); ?></a>
	</div>
</script>

<script type="text/html" id="tmpl-hb-minicart-empty">
	<p class="hb_mini_cart_empty"><?php _e( 'Your cart is empty!', 'wp-hotel-booking' ); ?></p>
</script>
