<div class="panel panel-widget draft-widget" value-number="<?= $this -> i;?>">
  <div class="panel-heading with-buttons">
    <span class="panel-title">Wartość <?= $this -> i;?></span>
    <div class="btn btn-danger btn-value-remove">
      <i class="fa fa-trash"></i> Usuń wartość
    </div>
  </div>
  <div class="panel-body p20">
    <div class="row">
      <div class="col-lg-6">
        <div class="mb20">
          <input type="radio" id="default_value<?=$this -> value['id'];?>" name="default_value" value="<?= ( $this -> i - 1 );?>" <? if ( $this -> value['is_default'] ):?>checked<? endif;?>>
          <label for="default_value<?=$this -> value['id'];?>">Wartość domyślna</label>
        </div>
        <div class="row form-group">
          <div class="col-xs-8">
            <div class="input-group">
              <input class="form-control" name="impact_on_the_price[]" type="text" value="<?= $this -> value['impact_on_the_price'];?>" placeholder="wpływ na cenę produktu...">
              <span class="input-group-addon">
                <i class="fa fa-usd"></i>
              </span>
            </div>
          </div>
        </div>
      </div>
      <div class="col-lg-6">
        <div class="tab-block mb25">
          <ul class="nav nav-tabs nav-tabs-right tabs-border">
            <? $z = 0;?>
            <? if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
              <? if ( $lg['status'] ):?>
                <li class="<? if ( !$z++ ):?>active<? endif;?>">
                  <a href="#tab<?= $this -> i;?>_<?= $lg['id'];?>" data-toggle="tab" aria-expanded="true"><?= $lg['name'];?></a>
                </li>
              <? endif;?>
            <? endforeach; endif;?>
          </ul>
          <div class="tab-content">
            <? $z = 0;?>
            <? if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
              <? if ( $lg['status'] ):?>
                <div id="tab<?= $this -> i;?>_<?= $lg['id'];?>" class="tab-pane <? if ( !$z++ ):?>active<? endif;?>">
                  <? if ( $this -> attribute['type'] == 0 ):?>
                    <input type="hidden" name="ids[<?= $lg['id'];?>][]" value="<?= $this -> value['id'];?>" />
                    <input type="text" class="name-<?= $i;?> form-control" name="name[<?= $lg['id'];?>][]" value="<?= $this -> value['languages'][$lg['id']]['name'];?>">
                  <? endif;?>
                </div>
              <? endif;?>
            <? endforeach; endif;?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>