<?php

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

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

<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-8 col-md-8 col-lg-9 col-sm-push-4 col-md-push-4 col-lg-push-3">
				<?php $details = AffliationsRightColumn::find()->all();
			if(!empty($details)) {
				foreach($details as $detail) {
			?>
				<article class="side-item events-grid to_animate">
                    <div class="row">
                        <div class="col-md-5">
                            <div class="item-media">
                                <img src="<?php  echo Url::home(true)?>images/affliations/<?php echo $detail->image?>" alt="">
                            </div>
                        </div>

                        <div class="col-md-7">
                            <div class="item-content right">
                                <h2>
                                   <?php echo $detail->title; ?>
                                </h2>
                                <p> <?php echo $detail->content; ?></p>
                            </div>
                        </div>
                    </div>
                </article>
			<?php } } ?>
			</div> <!--eof col-sm-9 (main content)-->

			<!-- Sidebar -->
			<aside class="col-sm-4 col-md-4 col-lg-3 col-sm-pull-8 col-md-8 col-lg-pull-9">
				<div class="widget widget_categories">
                    <h3 class="widget-title">Affiliations Links</h3>
                    <ul>
                        <li>
                            <a href="#" title="">Shady Grove Medical Center</a>
                        </li>
                        <li>
                            <a href="#" title="">Washington Adventist Hospital </a>
                        </li>
                        <li>
                            <a href="#" title="">Montgomery General Hospital</a>
                        </li>
                        <li>
                            <a href="#" title="">Frederick Memorial Hospital</a>
                        </li>
                        <li>
                            <a href="#" title="">Laurel Regional Hospital</a>
                        </li>
                    </ul>
                </div>
			</aside>
			<!-- eof sidebar -->

		</div>
    </div>
</section>
