<table class="table table-bordered">
    <thead>
        <tr>
            <th>Komoditi<br><small>Commodity</small></th>
            <th>Jenis tanaman<br><small>Crop</small></th>
            <th>Keluasan bertanam (ha)<br><small>Planted area (ha)</small></th>
        </tr>
    </thead>
    <tbody>
        <?php
            $crops = [
                'fruits' => 24,
                'vegetables' => 25,
                'paddy' => 26,
                'others' => 27,
            ];
        ?>

        <?php $__currentLoopData = $crops; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $crop => $questionId): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e(ucfirst($crop)); ?><br><small><?php echo e(ucfirst($crop)); ?></small></td>
                <td>
                    <input type="text" name="answers[<?php echo e($questionId); ?>][crop]" class="form-control"
                        placeholder="Jenis tanaman" value="<?php echo e(old('answers.' . $questionId . '.crop')); ?>" required>
                </td>
                <td>
                    <input type="number" name="answers[<?php echo e($questionId); ?>][area]" class="form-control"
                        placeholder="Keluasan bertanam (ha)" value="<?php echo e(old('answers.' . $questionId . '.area')); ?>" required>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
<div class="form-group mt-3">
    <label for="total_area_<?php echo e($crops['fruits']); ?>">Jumlah Keluasan Ladang Bertanam (ha):</label>
    <input type="number" name="answers[28][total_area]" id="total_area_<?php echo e($crops['fruits']); ?>" class="form-control"
           value="<?php echo e(old('answers.28.total_area')); ?>" placeholder="Total planted area (ha)">
</div>
<?php /**PATH C:\laragon\www\FMIS_fypsystem\resources\views/partials/custom_ui.blade.php ENDPATH**/ ?>