<?php $id = (int) $item['id']; ?>
<div class="field-row" data-item-id="<?= $id ?>">
    <div class="field-row-head">
        <span class="num"><?= esc($item['numero'] ?? '') ?></span>
        <span class="q"><?= esc($item['pregunta']) ?></span>
        <?php if (! empty($item['equipo'])): ?><span class="equipment"><?= esc($item['equipo']) ?></span><?php endif; ?>
    </div>
    <?= view('partials/signature_pad', [
        'signableType' => 'inspection',
        'signableId' => (int) $inspection['id'],
        'role' => 'cliente',
        'currentName' => '',
        'currentPath' => null,
        'uploadUrl' => site_url('signatures/upload'),
        'fieldKey' => 'items.' . $id . '.value_text',
    ]) ?>
    <input type="hidden" data-bind="items.<?= $id ?>.value_text" value="<?= esc($saved['value_text'] ?? '') ?>">
</div>
