<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

$lang = Yii::$app->language;

?>

<div class="branches-form">

    <?php $form = ActiveForm::begin(); ?>

    <div class="row">
        <div class="col-md-6">
            <?= $form->field($model, 'arabic_name')->textInput(['maxlength' => true]) ?>
        </div>
        <div class="col-md-6">
            <?= $form->field($model, 'english_name')->textInput(['maxlength' => true]) ?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <?= $form->field($model, 'arabic_address')->textArea(['maxlength' => true, 'rows'=> 5, 'style' => 'resize:none;']) ?>
        </div>
        <div class="col-md-6">
            <?= $form->field($model, 'english_address')->textArea(['maxlength' => true, 'rows'=> 5, 'style' => 'resize:none;']) ?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <?= $form->field($model, 'location')->textInput(['maxlength' => true, 'placeholder' => Yii::t('app', 'Enter a link to map location')]) ?>
        </div>
        <div class="col-md-6">
            <?= $form->field($model, 'phone_num')->textInput(['maxlength' => true]) ?>
        </div>
    </div>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
