<?php

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

use common\models\HomeSlider;
use common\models\MiddleContent;
use common\models\Providers;
use common\models\RecentCauses;
use yii\helpers\Url;
use yii\helpers\Html;
use common\models\ServicesLeftColumn;
use common\models\ServicesRightColumn;
$this->params['breadcrumbs'][] = ['label' => 'Physicians'];
?>
<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 $detail = Providers::find() ->where(['id' => $providerid]) ->one();
			if(!empty($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/providers/<?php echo $detail->image?>" alt="">
                            </div>
                        </div>

                        <div class="col-md-7">
                            <div class="item-content right">
                                <h2>
                                   <?php echo $detail->name; ?>
                                </h2>
                                <p>  <?php echo $detail->details; ?></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">Providers</h3>
                    <ul>
					<?php $providers = Providers::find()->all();
						foreach($providers as $provider){ 
						?>
                        <li>
                            <?php 
                           echo Html::a($provider->name, ['/site/providers','id' => $provider->id]) ;
							?>
                        </li>
						<?php } ?>
					</ul>
                </div>
			</aside>
			<!-- eof sidebar -->

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