<?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
 <article class="thumb-info thumb-info-side-image thumb-info-no-zoom bg-transparent border-radius-0 pb-2 mb-2">
	<div class="row">
	  <div class="col">
	    <?php if($model->image != '') {?>
		   <?= Html::a("<img src='".Yii::$app->urlManagerBackend->baseUrl.'/images/state/'.$model->image."' class='img-fluid border-radius-0'>",['/state/view/', 'slug' => $model->slug])  ?>
		<?php } else { ?>
		  <?= Html::a("<img src='".Yii::$app->urlManagerFrontend->baseUrl.'/images/photo-not-availabe.jpg'."' class='img-fluid border-radius-0'>",['/state/view/', 'slug' => $model->slug])  ?>
		<?php } ?>
	  </div>
	</div>
	<div class="row">
	  <div class="col">
		<div class="thumb-info-caption-text sidebar">
			<aside class="aside">
			  <h3 class="aside-title" style="border-radius: 3px; margin-top:-10px;">
			   <?=Html::a($model->state_name, ['/state/view', 'slug' => $model->slug], ['class' => 'text-decoration-none text-color-light'])?>
			  </h3>
			</aside>
		</div>
	  </div>
	</div>
</article>





