<?php /* Smarty version Smarty-3.1.8, created on 2019-10-16 13:53:08
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/Nearestshowroom.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9424750405da6e884124328-96420107%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ca86c315068b72574278ddc4d9f597c80ee0170f' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/Nearestshowroom.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9424750405da6e884124328-96420107',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'SelCurrLanguage' => 0,
    'languageDirection' => 0,
    'language' => 0,
    'view_styles' => 0,
    'listShowRooms' => 0,
    'showroom' => 0,
    'mapLink' => 0,
    'showroomImg' => 0,
    'view_public_path' => 0,
    'compiled_js_path' => 0,
    'common_frontend_js' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da6e8841ca183_27870370',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da6e8841ca183_27870370')) {function content_5da6e8841ca183_27870370($_smarty_tpl) {?><!DOCTYPE html>
<html lang="<?php echo $_smarty_tpl->tpl_vars['SelCurrLanguage']->value;?>
" dir="<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFindyourNearestShowroom'];?>
</title>
    <meta name="viewport" content="width=device-width"> 
    <link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/cms.css" rel="stylesheet" type="text/css" media="screen" />
    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->rootpath_script(array(),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

    
</head>
<body ng-controller="SearchCtrl" class="<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
">
    <!-- Begin : Outer Pane -->
    <div id="main">
        <!-- Begin : Header Pane-->
        <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

        <!-- End : Header -->
        <!-- Begin : Content Pane -->
        <div id="content-wrapper" ng-show="!query">
            <nav class="breadcrumb-block" aria-label="breadcrumb">
                <div class="container">
                    <ol class="breadcrumb font-weight-bold font-small mb-0 px-0 py-3">
                        <li class="breadcrumb-item"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblHome'])),$_smarty_tpl);?>
</li>
                        <li class="breadcrumb-item active font-weight-bold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFindyourNearestShowroom'];?>
</li>
                    </ol>
                </div>
            </nav> 

          <div class="nearestshowroom-block">
            <div class="row m-0">
                <div class="col-lg-4 col-md-4 col-sm-12 col-12 p-0">
                    <h4 class="text-dark-grey font-weight-bold px-4 py-4 border-bottom m-0"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblReachoutdirectly'];?>
</h4>
                      <?php if (count((($tmp = @$_smarty_tpl->tpl_vars['listShowRooms']->value)===null||$tmp==='' ? array() : $tmp))>0){?>
                            <ul class="nearest-shoroom-listing list-unstyled">
                                <?php  $_smarty_tpl->tpl_vars["showroom"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["showroom"]->_loop = false;
 $_from = (($tmp = @$_smarty_tpl->tpl_vars['listShowRooms']->value)===null||$tmp==='' ? array() : $tmp); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["showroom"]->key => $_smarty_tpl->tpl_vars["showroom"]->value){
$_smarty_tpl->tpl_vars["showroom"]->_loop = true;
?>
                                        <li class="px-4 py-3 font-family-secondary font-semibold border-bottom">
                                            <a class="d-block font-weight-light shname" rel="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['showroom']->value['showroomImg'])===null||$tmp==='' ? '' : $tmp);?>
" style="cursor:pointer;"><h5 class="d-block font-weight-bold"><?php echo $_smarty_tpl->tpl_vars['showroom']->value['name'];?>
</h5>
                                         <?php echo $_smarty_tpl->tpl_vars['showroom']->value['address'];?>
</a>
                                         <span class="phone d-block my-2" style="direction:ltr"> <i class="icon-phone-receiver text-muted-light mr-2"></i><?php echo $_smarty_tpl->tpl_vars['showroom']->value['phone'];?>
</span>
                                         <span class="mail d-block"><i class="icon-close-envelope text-muted-light mr-2"></i><?php echo $_smarty_tpl->tpl_vars['showroom']->value['email'];?>
</span>
										 <?php if ($_smarty_tpl->tpl_vars['showroom']->value['showroomID']=='1'){?>
											<?php $_smarty_tpl->tpl_vars["mapLink"] = new Smarty_variable("https://goo.gl/maps/7noFaQykVP72", null, 0);?>
										 <?php }elseif($_smarty_tpl->tpl_vars['showroom']->value['showroomID']=='3'){?>
											<?php $_smarty_tpl->tpl_vars["mapLink"] = new Smarty_variable("https://goo.gl/maps/Ze5QxPvcVvz", null, 0);?>
										 <?php }elseif($_smarty_tpl->tpl_vars['showroom']->value['showroomID']=='4'){?>
											<?php $_smarty_tpl->tpl_vars["mapLink"] = new Smarty_variable("https://goo.gl/maps/D6wAy9XuBxu", null, 0);?>
										 <?php }elseif($_smarty_tpl->tpl_vars['showroom']->value['showroomID']=='5'){?>
											<?php $_smarty_tpl->tpl_vars["mapLink"] = new Smarty_variable("https://goo.gl/maps/gXqaDR9kvP52", null, 0);?>
										 <?php }else{ ?>
											<?php $_smarty_tpl->tpl_vars["mapLink"] = new Smarty_variable("https://goo.gl/maps/7noFaQykVP72", null, 0);?>
										 <?php }?>
                                         <a class="align-items-baseline d-inline-flex mt-2" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['mapLink']->value;?>
"><i class="icon-placeholder">&nbsp;</i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblViewOnMap'];?>
</a>
                                        </li>
                               <?php } ?>                                                     
                           </ul>
                      <?php }?>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-12 col-12 p-0 p-0"><div class="nearest-map-block"><?php if ((($tmp = @$_smarty_tpl->tpl_vars['showroomImg']->value)===null||$tmp==='' ? '' : $tmp)!=''){?><img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/showroom/<?php echo $_smarty_tpl->tpl_vars['showroomImg']->value;?>
" class="img-fluid h-100 nearest-mapimg"><?php }?></div></div>
            </div>
        </div>

        </div>
        
        <!-- End : Content Pane -->
        <!-- Begin : Footer	Pane -->
        <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

        <!-- End : Footer Pane -->
    </div>
    <!-- End : Outer Pane -->
    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_start(array('name'=>($_smarty_tpl->tpl_vars['compiled_js_path']->value)."/specialoffers.js"),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_frontend_js']->value)."/offerview.page.js"),$_smarty_tpl);?>
   
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_end(array(),$_smarty_tpl);?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"formSubscription"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

    <script type="text/javascript">
        var publicpathimg = '<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/showroom/';
        $(".nearest-shoroom-listing").mCustomScrollbar({
         axis:"y",       
});
     $(document).on('click', '.shname', function () {
         
         $(".nearest-mapimg").attr("src",publicpathimg+$(this).attr('rel'));
        
    });
    </script>
</body>

</html>
<?php }} ?>