<?php
    
    use yii\helpers\Url;
    use yii\web\View;
    
    /**
     * @var View $this
     */

?>

<div class="panel panel-default sidebar-menu">
  
  <div class="panel-heading">
    <h3 class="panel-title">Поиск</h3>
  </div>
  
  <div class="panel-body">
    <form role="search" action="<?= Url::to([ 'blog/index' ]) ?>" method="GET">
      <div class="input-group">
        <input type="text" class="form-control" name="q" placeholder="Поиск по статьям" value="<?= \Yii::$app->request->get(
            'q',
            ''
        ) ?>">
        <span class="input-group-btn">

		    <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>

		</span>
      </div>
    </form>
  </div>
</div>
