<?php

/* @var $this yii\web\View */

use common\models\HomeSlider;
use common\models\MiddleContent;
use common\models\Faq;
use common\models\Locations;
use yii\helpers\Url;
use yii\helpers\Html;
$this->params['breadcrumbs'][] = ['label' => 'Locations'];
?>

<section id="content" class="light_section blog left-sidebar">
	<div class="container" style="padding-top:20px;">
		<div class="row">
			<!-- main content -->
			<div class="col-sm-12 col-md-12 col-lg-12">
			<?php $locations = Locations::find()->all();
				foreach($locations as $location){ ?>
				<article class="side-item events-grid to_animate">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="item-content right">
                                <h2>
                                    <?php echo $location->officeName ; ?>
                                </h2>
                                <p><?php echo $location->address ; ?></p>
								
                                    <a href="<?php echo $location->mapLink ?>" target="_blank">
										Map Link
									</a>
                               
                            </div>
                        </div>
                    </div>
                </article>	
				<?php } ?>
            </div> <!--eof col-sm-9 (main content)-->
		</div>
    </div>
</section>
