<?php $htmls = $texts = [$serverPartCellDatas['serverEntity']->getCode()] ?>
<?php foreach (['SWITCH', 'IP', 'OS'] as $type): ?>
    <?php $texts[] = $serverPartCellDatas['service']->getHelper()->getFieldView($type, '', $serverPartCellDatas, ['return_type' => 'text']); ?>
    <?php $button = $serverPartCellDatas['service']->getHelper()->getListButton($type, '', $serverPartCellDatas) ?>
    <?php $htmls[] = $button . $serverPartCellDatas['service']->getHelper()->getFieldView($type, '', $serverPartCellDatas) ?>
<?php endforeach ?>
<?= implode(" /", $htmls) ?>
<?php $text = implode('/', $texts) ?>
<div class="serverparts float-end rounded border border-primary" style="cursor:pointer;" onclick="copyServerPartToClipboard('<?= $text ?>')" text-data="<?= $text ?>">COPY</div>