<?php
$item = $this->item;
$arrTitle = explode(' ', $item->address);
$char = '';
for ($i = 0; $i < 3; $i++) {
	$char .= substr($arrTitle[$i], 0, 1);
}
$char = strtoupper($char);
?>
<div class="wrapper-location-item btn-edit-location" data-id="<?php esc_html_e($item->id) ?>">
    <div class="wrapper-location-content">
        <div class="location-item-image pull-left">
            <img class="image-cover" src="<?php echo Factory::getRootUrl() . $item->image ?>" alt="service-cover">
        </div>
        <div class="location-item-content pull-left">
            <div class="location-item-avatar">
                <span><?php esc_html_e($char); ?></span>
            </div>
            <div class="location-item-content-right">
                <h3><?php esc_html_e($item->address) ?></h3>
                <p>
                    <span><img src="<?php echo Factory::getRootUrl() . $item->icon ?>" alt="gps" /></span>
					<?php esc_html_e($item->address) ?>
                </p>
            </div>
            <a class="btn-location-edit">
                <button class="btn btn-primary" data-id="<?php esc_html_e($item->id) ?>"><?php esc_attr_e('Edit','wpbookingpro')?></button>
            </a>
        </div>
    </div>
</div>
