} ?> <div class="btn-group col-md-offset-0" role="group"> <button value="Submit" type="submit" id="addUser" class="btn btn-default btn-hover-green" role="button">Добавить</button> </div> <table class="table table-striped table-hover" id="stat"> <thead> <tr> <th>Название</th> </tr> </thead> <?php $tovarishestva = Tovarishestva::all(); foreach ($tovarishestva as $value) { $konc = KoncentrTovarishestvo::find('all', ['conditions' => ['id_tovar = ?', $value->id]]); $koncText = ""; foreach ($konc as $item) { $koncText = $koncText . trim($item->name_konc) . ';'; } ?> <tr class="userRow" data-id="<?php echo $value->id; ?> " data-konc="<?php echo $koncText; ?> "> <td class="nameTovar"> <?php echo $value->name;