<?php

use yii\helpers\Html;
use yii\helpers\Url;

$this->title = 'QFood';
$lang = Yii::$app->language;

?>

<?= $this->render('_top', $info) ?>

<div class="branches-page"><div class="col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1 ">
    <?php foreach ($info['branches'] as $key => $branch) : ?>	<table class="">		<tr>			<td class="label-table"><?= Yii::t('app','Branche Name') ?>:</td>					</tr>		<tr>			<td class="label-content"><?= $lang == 'en' ? $branch->english_name : $branch->arabic_name?></td>		</tr>		<tr>			<td class="label-table"><?= Yii::t('app','Address') ?>:</td>					</tr>		<tr>			<td class="label-content"><?= $lang == 'en' ? $branch->english_address : $branch->arabic_address?></td>		</tr>		<tr>			<td class="label-table"><?= Yii::t('app','Location') ?>:</td>					</tr>		<tr>			<td class="label-content"><a class="link-branch" target="_blank" href="<?= $branch->location ?>"><?= Yii::t('app','Show on Map')?><a></td>		</tr>		<tr>			<td class="label-table"><?= Yii::t('app','Phone') ?>:</td>					</tr>		<tr>			<td class="label-content"><a class="link-branch" href="tel:<?= $branch->phone_num ?>"><?= $branch->phone_num ?></a></td>		</tr>			</table>	 <hr>
       
    <?php endforeach; ?></div>
</div>