<?php $htmls = $texts = [] ?>
<?php foreach ($serverPartCellDatas['types'] as $type): ?>
    <?php $htmls[$type] = [] ?>
    <?php $texts[$type] = []; ?>
    <?php foreach ($serverPartCellDatas['entities'][$type] as $entities): ?>
        <?php foreach ($entities as $entity): ?>
            <?php $serverPartCellDatas['entity'] = $entity ?>
            <?php $htmls[$type][] = $serverPartCellDatas['service']->getHelper()->getFieldView($type, $entity->getPK(), $serverPartCellDatas) ?>
            <?php $texts[$type][] = $serverPartCellDatas['service']->getHelper()->getFieldView($type, $entity->getPK(), $serverPartCellDatas, ['return' => 'onlyText']) ?>
        <?php endforeach ?>
    <?php endforeach ?>
<?php endforeach ?>
<?php $view_texts = [] ?>
<?php foreach ($htmls as $type => $datas): ?><?php $view_texts[] = implode(',', $texts[$type]) ?><?php endforeach ?>
<?php $text = implode("/", $view_texts) ?>
<span class="serverparts" style="cursor:pointer;" onClick="copyServerPartToClipboard('<?= $text ?>')" text-data="<?= $text ?>">📋</span>
<?php $view_htmls = [] ?>
<?php foreach ($htmls as $type => $datas): ?><?php $view_htmls[] = implode(",", $datas) ?><?php endforeach ?>
<?= implode("/", $view_htmls) ?>