<?php

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

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

<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">

                <article class="side-item events-grid to_animate">
                    <div class="row">
                        <div class="col-md-12">
						<?php $faqs = Faq::find()->all();
				foreach($faqs as $faq){ ?>
                            <div class="item-content right">
                                <h2>
                                  <?php echo $faq->question ; ?>
                                </h2>
                                <p> <?php echo $faq->answer ; ?> </p>
                            </div>
				<?php } ?>
						</div>
                    </div>
                </article>                
            </div> <!--eof col-sm-9 (main content)-->
		</div>
    </div>
</section>
