<ul class="clearfix form-ul material">
    <?php  if ((int) Yii::app()->user->haveLevelPermissionOn['master_level_permission_banks'] > 0 || Yii::app()->user->authorised_user == 1) {?>
   <li class="col-sm-6">
    <?php
    if($model->vendor_country == ''){
        $billing_country  = $modalMasCompany->billing_country;
    }
    else{
        $billing_country  = $model->vendor_country;
    }
    $option=  array($billing_country=>array('selected'=>'selected'));
    ?>
          <?php if(isset(Yii::app()->user->havePermissionOn['bank_add']) || Yii::app()->user->authorised_user == 1 ){ ?>
                      <div class="new-cst">
                            <div class="toggle-cst"><span class="cst-btn">+</span>
                            <div class="content-cst">
                                <div class="head" ripple="ripple" ripple-color="#FFF">
                                  <h5>Add Bank</h5>
                              </div>
                              <div class="body">
                                    <div class="row">
                                      <div class="col-sm-12">
                                        <?php echo CHtml::textField('bank_name','',array('data-label'=>'Name <span style="color:red;">*</span>')); ?>
                                      </div>
                                    </div>
                                    <div class="btn-wrap text-center">
                                        <a href="#" class="plan-add-btn btn btn-theme go" onclick="AddMaster('vendor','bank')">SAVE</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                      </div>
                     <?php } ?>
          <div id="vendor_bank_div">
              <?php echo $form->dropDownList($model, 'vendor_bank_name', MasBank::getBanks(), array('class' => '', 'prompt' => '--select--', 'title' => 'Select Bank','data-label'=>'Bank')); ?>
          </div>
    </li>
<?php }else {
      $model->vendor_bank_id = MasBank::base_bank_id(); 
      echo  $form->hiddenField($model, 'vendor_bank_id');
      $model->vendor_bank_name = MasBank::base_bank_name(); 
       echo  $form->hiddenField($model, 'vendor_bank_name');
   }
   ?>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_branch_name', array('title' => 'Please enter bank branch name','data-label'=>'Branch','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_branch_name'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_account_name', array('title' => 'Please enter bank account name','data-label'=>'Account Name ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_account_name'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_account_no', array('title' => 'Please enter bank account number','data-label'=>'Account No. ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_account_no'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_tax_id', array('title' => 'Please enter bank tax ID','data-label'=>'TAX ID. ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_tax_id'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_iban', array('title' => 'Please enter IBAN NO.','data-label'=>'IBAN No. ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_iban'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_swift', array('title' => 'Please enter swift coce','data-label'=>'SWIFT Code ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_swift'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textField($model, 'vendor_bank_ifsc', array('title' => 'Please enter IFSC coce','data-label'=>'IFSC Code ','data-validation'=>'')); ?>
        <?php echo $form->error($model, 'vendor_bank_ifsc'); ?>
    </li>
    <li class="col-sm-6">
        <?php echo $form->textArea($model, 'vendor_bank_others', array('title' => 'Please enter other details','data-label'=>'Other Details ','data-validation'=>'','class'=>'en-text-area')); ?>
        <?php echo $form->error($model, 'vendor_bank_others'); ?>
    </li>  
</ul>
