<?php

use WpBookingEvent\Factory;
use WpBookingEventFrontend\app\helpers\FrontendHelper;
use WpBookingEventFrontend\app\Html\HtmlFrontend;

$item = $this->item;
$pay = $this->order->list_order_detail[0];
$customer = $this->order->customer[0];
$price = $item->price;
$subtotal = $item->total;
$tax = $this->order->total_tax;
$total = $subtotal + $tax;
if(isset($item->service_image)){
    $image=$item->service_image;
} else{
    $image=$item->event_image;
}
?>
<div class="list-cart">
    <div class="row">
        <div class="col-md-12">
            <div class="content-check">
                <div class="check">
                    <img src="<?php esc_html_e(Factory::getRootUrlPlugin()) ?>/<?php esc_html_e($image) ?>" alt="image" />
                    <?php if($item->daily ==1){?>
                        <p class="recurring"><?php esc_html_e('Daily', 'wpbookingevent')?></p>
                    <?php } else if($item->weekly ==1) { ?>
                        <p class="recurring"><?php esc_html_e('Weekly', 'wpbookingevent')?></p>
                    <?php } else if($item->monthly ==1){ ?>
                        <p class="recurring"><?php esc_html_e('Monthly', 'wpbookingevent')?></p>
                    <?php } else{ ?>
                        <p class="recurring"><?php esc_html_e('Not Recurring', 'wpbookingevent')?></p>
                    <?php } ?>
                </div>
                <div class="text-content-check">
                    <p class="date"><i class="icon-nb-clock"></i><?php esc_html_e($item->duration) ?></p>
                    <p class="location"><i class="icon-nb-pin"></i> <?php esc_html_e($item->location_address)?></p>
                    <p class="employee-location">
                        <p class="employee-name"><i class="icon-nb-phone-call"></i><?php esc_html_e($customer->mobile) ?></p>
                        <p><i class="icon-nb-email"></i><?php esc_html_e($customer->email) ?></p>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
