<?php
use yii\web\View;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */

$this->title ='Lucky Draw';

?>

<div class="wrapper-bg"></div>
<nav class="navbar navbar-main">
    <div class="container-fluid">
        <div class="logo">
            <a href="index.php">
                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/alahlia-logo.png" alt="Al Ahlia Logo"
                /></a>
        </div>
        <div class="national-logo">
            <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/national-day.png" alt="50th National Day" />
            <div class="glow glow-01">
                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/logo-glow.png" alt="Glow" />
            </div>
            <div class="glow glow-02">
                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/logo-glow.png" alt="Glow" />
            </div>
        </div>
    </div>
</nav>
<main class="content-sec">
    <div class="container">
        <div class="row">
            <div class="col-12">
                     <p>   <h3 style=color:white>Branches</h3><br></p>
                <div class="branch-cover">
                
                
                    <?php foreach ($ActiveBranches as $ActiveBranch){?>
                        <a href="<?=Yii::$app->urlManager->createUrl(['site/lucky-draw', 'id' => Yii::$app->basic->simple_crypt($ActiveBranch->id,'e') ])?>" class="branch-item">
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$ActiveBranch->branch_name?>
                        </a>
                    <?php }?>
                      </div>
                    
<p>   <h3 style=color:white>Online</h3><br></p>
  <div class="branch-cover">
                
  <?php foreach ($ActiveOnline as $ActiveBranch){?>
                        <a href="<?=Yii::$app->urlManager->createUrl(['site/lucky-draw', 'id' => Yii::$app->basic->simple_crypt($ActiveBranch->id,'e') ])?>" class="branch-item">
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$ActiveBranch->branch_name?>
                        </a>
                    <?php }?>
   </div>     
   
   <p>   <h3 style=color:white>Call Center</h3><br></p>
  <div class="branch-cover">
                
  <?php foreach ($ActiveCallcenter as $ActiveBranch){?>
                        <a href="<?=Yii::$app->urlManager->createUrl(['site/lucky-draw', 'id' => Yii::$app->basic->simple_crypt($ActiveBranch->id,'e') ])?>" class="branch-item">
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$ActiveBranch->branch_name?>
                        </a>
                    <?php }?>
   </div>         
    <p>   <h3 style=color:white>Agents</h3><br></p>
  <div class="branch-cover">
                
  <?php foreach ($ActiveAgents as $ActiveBranch){?>
                        <a href="<?=Yii::$app->urlManager->createUrl(['site/lucky-draw', 'id' => Yii::$app->basic->simple_crypt($ActiveBranch->id,'e') ])?>" class="branch-item">
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$ActiveBranch->branch_name?>
                        </a>
                    <?php }?>
   </div>         
   
     <p>   <h3 style=color:white>Affinity</h3><br></p>
  <div class="branch-cover">
                
  <?php foreach ($ActiveAff as $ActiveBranch){?>
                        <a href="<?=Yii::$app->urlManager->createUrl(['site/lucky-draw', 'id' => Yii::$app->basic->simple_crypt($ActiveBranch->id,'e') ])?>" class="branch-item">
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$ActiveBranch->branch_name?>
                        </a>
                    <?php }?>
   </div>         
           
                    
                      <div class="branch-cover">
                    <?php foreach ($DeactiveBranches as $DeactiveBranch){?>
                        <div href="#" class="branch-item is-deactive" >
                            <div class="btn-glow">
                                <img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/button-glow.png" alt="Glow" />
                            </div>
                            <?=$DeactiveBranch->branch_name?>
                        </div>
                    <?php }?>

                </div>
            </div>
        </div>
    </div>
</main>
<a href="javascript:;" id="return-top" class="return-top"
><span><img src="<?=Yii::$app->urlManager->baseUrl?>/files/images/up-icon.svg" alt="Up" /></span
></a>