Viewing file: 06271425d40a347c15be9c5be262f9ca18fa0230.php (4.72 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="c-tab mt-6" id="product-specification-panel">
<div class="c-tab__content -mt-5 md:-mt-0">
<p class="roboto-medium text-sm md:text-15 font-medium text-gray-10">
<?php echo e(__('Specifications of :x', ['x' => $name])); ?>
</p>
<div class="rounded my-6">
<table class="<?php echo e(languageDirection() == 'ltr' ? 'text-left' : 'text-right'); ?> w-full border-collapse border text-sm md:text-15">
<tbody class="text-gray-10 roboto-medium">
<?php if(!empty($weight)): ?>
<tr id="weightRow">
<td class="py-4 px-6 border"><?php echo e(__('Weight')); ?></td>
<td class="py-4 px-6 border"><?php echo e($weight); ?> <?php echo e(preference('measurement_weight')); ?></td>
</tr>
<?php else: ?>
<tr id="weightRow" class="display-none">
</tr>
<?php endif; ?>
<?php if(is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['length']) && $dimensions['length'] != ""
|| is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['width']) && $dimensions['width'] != ""
|| is_array($dimensions) && count($dimensions) > 0 && isset($dimensions['height']) && $dimensions['height'] != ""
): ?>
<tr id="dimensionsRow">
<td class="py-4 px-6 border"><?php echo e(__('Dimensions')); ?></td>
<td class="py-4 px-6 border"><?php echo e($dimensions['length'] ?? null); ?> <?php echo e(isset($dimensions['width']) && $dimensions['width'] != "" ? "× " . $dimensions['width'] : ''); ?>
<?php echo e(isset($dimensions['height']) && $dimensions['height'] != "" ? "× " . $dimensions['height'] : ''); ?> <?php echo e(preference('measurement_dimension')); ?></td>
</tr>
<?php else: ?>
<tr id="dimensionsRow" class="display-none">
</tr>
<?php endif; ?>
<?php if(!empty($attributes)): ?>
<?php $__currentLoopData = $attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($attribute['visibility'] == 1): ?>
<tr>
<td class="py-4 px-6 border"><?php echo e($attribute['name']); ?></td>
<td class="py-4 px-6 border">
<?php $len = count($attribute['value']); $i = 1 ?>
<?php $__currentLoopData = $attribute['value']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attValue): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $result = null;
if (isset($attribute_values[$attribute['key']])) {
$dataQuery = $attribute_values[$attribute['key']]->where('id', $attValue)->first();
if (!empty($dataQuery)) {
$result = $dataQuery->value;
} else {
$result = $attValue;
}
} else {
$result = $attValue;
}
?>
<?php echo e($result); ?>
<?php echo e($len > $i ? "," : null); ?>
<?php $i++ ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
</tr>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
<?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/resources/views/site/layouts/section/product-details/specification.blade.php ENDPATH**/ ?>
|