 <?php

 Yii::app()->setLanguage(isset(Yii::app()->session['lang']) ? Yii::app()->session['lang'] : 'ar'); 
 $lang=Yii::app()->getLanguage();
 
?>

<section class="joinUs">
    <section class="joinUs-section1">
        <div class="container">
            <div class="row">
                <div class="col-sm-offset-1 col-sm-10 col-xs-offset-0 col-xs-12">
                    <h1 class="page-title"><?php echo Yii::t('joinUs','joinUs');?>
                       <!--انضم إلينا  -->
                    </h1>
                </div>
            </div>
             <div class="row">
                <div class=" col-sm-4  col-xs-12 join-us-card">
                <?php $vacancies=Option::model()->findByAttributes(array('key'=>'JOB_VACANCIES'));
                if(!empty($vacancies))
                {
                    echo '<a href="'.$vacancies->value.'">';
                }else{
                     echo '<a href="#">';
                }
                ?>
                  <div class="col-sm-4 col-xs-4">
                    <img class="img-responsive img-join-us" alt="join-us-icon-1" src="<?php  echo yii::app()->request->baseUrl; ?>/images/join-us-icon1.jpg">
                </div>
                <div class="  col-xs-8">
                    <h2 class="join-us-text text-center"><?php echo Yii::t('joinUs','Job vacancies');?>
                    
                    </h2>
                </div>  
                </a> 
                </div>
                 <div class=" col-sm-4 col-xs-12 join-us-card">
                    <?php $Job=Option::model()->findByAttributes(array('key'=>'JOB_APPLICATION'));
                if(!empty($Job))
                {
                    echo '<a href="'.$Job->value.'">';
                }else{
                     echo '<a href="#">';
                }
                ?>
                
                  <div class="col-xs-4">
                    <img class="img-responsive img-join-us" alt="join-us-icon-1" src="<?php  echo yii::app()->request->baseUrl; ?>/images/join-us-icon2.jpg">
                </div>
                <div class="col-xs-8">
                    <h2 class="join-us-text  text-center"><?php echo Yii::t('joinUs','Job application');?>
                    
                     </h2>
                </div>  
                </a> 
                </div>
                 <div class=" col-sm-4  col-xs-12 join-us-card">
                <?php $training=Option::model()->findByAttributes(array('key'=>'STUDENTS_TRAINING_APPLICATION'));
                if(!empty($training))
                {
                    echo '<a href="'.$training->value.'">';
                }else{
                     echo '<a href="#">';
                }
                ?>
                
                  <div class="col-xs-4">
                    <img class="img-responsive img-join-us" alt="join-us-icon-1" src="<?php  echo yii::app()->request->baseUrl; ?>/images/join-us-icon3.jpg">
                </div>
                <div class="col-xs-8">
                    <h2 class="join-us-text text-center"><?php echo Yii::t('joinUs','Students training application');?>
                    
                    </h2>
                </div>  
                </a> 
                </div>
            </div>
        </div> 
    </section>
</section>
    