Viewing file: 26d7b41cb731aeabccf5bf9e8288efce.php (12.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?> <?php foreach($attributes->onlyProps(['ad' => null, 'product_custom_field_groups' => []]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $attributes = $attributes->exceptProps(['ad' => null, 'product_custom_field_groups' => []]); ?> <?php foreach (array_filter((['ad' => null, 'product_custom_field_groups' => []]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $__defined_vars = get_defined_vars(); ?> <?php foreach ($attributes as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> <?php unset($__defined_vars); ?>
<div class="flex flex-col gap-2 px-5 pb-5"> <h3 class="heading-07 text-gray-900 dark:text-white"><?php echo e(__('descriptions')); ?></h3> <div x-data="{ showFullDescription: false }" class="body-md-400 text-gray-700 dark:text-gray-200"> <div x-show="!showFullDescription" class="flex flex-col items-start gap-2"> <div><?php echo Str::limit($ad?->description ?? '', 300); ?></div> <button @click="showFullDescription = true" class="text-primary-500 hover:underline focus:outline-none">Show more</button> </div> <div x-show="showFullDescription" class="flex flex-col items-start gap-2"> <div><?php echo $ad?->description ?? ''; ?></div> <button @click="showFullDescription = false" class="text-primary-500 hover:underline focus:outline-none">Show less</button> </div> </div>
<?php if($ad->video_url): ?> <iframe width="700" height="300" src="<?php echo e($ad->video_url); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> <?php endif; ?> </div>
<?php $__currentLoopData = $productCustomFieldGroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $customFieldGroup): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="mb-2"> <h2 class="heading-06 text-gray-900 dark:text-white mx-6 my-4"> <?php echo e($customFieldGroup[0]->customField->customFieldGroup->name); ?>
</h2> <div class="bg-primary-50 dark:bg-gray-900 lg:rounded-r-lg border-t border-b border-primary-100 dark:border-gray-400 px-5 py-[18px]"> <div class="grid md:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-4"> <?php $__currentLoopData = $customFieldGroup; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($field->value): ?> <?php if($field->customField->type == 'file'): ?> <div class="flex flex-grow items-start gap-3"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <?php if($field->value): ?> <a download href="/<?php echo e($field->value); ?>" class="underline dark:text-white"><?php echo e(__('download')); ?></a> <?php else: ?> <?php echo e(__('no_file_found')); ?>
<?php endif; ?> </div> </div> <?php elseif($field->customField->type == 'url'): ?> <div class="flex flex-grow items-start gap-3"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <a target="_blank" class="text-sm w-[200px] dark:text-white overflow-hidden whitespace-nowrap text-ellipsis" href="<?php echo e($field->value); ?>"><?php echo e($field->value); ?></a> </div> </div> <?php elseif($field->customField->type == 'date'): ?> <div class="flex flex-grow items-start gap-3"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <p class="body-md-500 text-gray-900 dark:text-white"> <?php echo e(formatDate($field->value, 'd M, Y')); ?>
</p> </div> </div> <?php elseif($field->customField->type == 'checkbox'): ?> <div class="flex flex-grow items-start gap-2"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 dark:text-primary-300 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <span class="body-md-500 text-gray-900 dark:text-white"> <?php $__currentLoopData = $field->customField->values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($loop->first): ?> <?php echo e($value->value); ?>
<?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </span> </div> </div> <?php elseif($field->customField->type == 'checkbox_multiple'): ?> <div class="flex flex-grow items-start gap-3"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 dark:text-primary-300 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <span class="body-md-500 text-gray-900 dark:text-white"> <?php $selected_items = explode(', ', $field?->value); $all_values = $field?->customField?->values->toArray();
$filteredValues = array_filter($all_values, function ($item) use ($selected_items) { return in_array($item['id'], $selected_items); }); ?>
<?php if($filteredValues): ?> <?php $__currentLoopData = $filteredValues; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($value['value']); ?>
<?php if (! ($loop->last)): ?> , <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </span> </div> </div> <?php else: ?> <div class="flex flex-grow items-start gap-3"> <i class="<?php echo e($field->customField->icon); ?> text-primary-500 fa-1x"></i> <div> <p class="body-sm-400 test-gray-700 dark:text-gray-200 mb-1"> <?php echo e($field->customField->name); ?>
</p> <p class="body-md-500 text-gray-900 dark:text-white"> <?php echo e($field->value); ?>
</p> </div> </div> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<div class="py-6 px-5"> <h3 class="heading-07 mb-3 dark:text-white"><?php echo e(__('features')); ?></h3> <ul class="lg:columns-3 sm:columns-2 columns-1"> <?php $__currentLoopData = $ad->adFeatures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="feature-list dark:text-white"> <?php if (isset($component)) { $__componentOriginala74548b96d50b2f314a0bd93b02a2a54 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala74548b96d50b2f314a0bd93b02a2a54 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.gray-check','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.gray-check'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala74548b96d50b2f314a0bd93b02a2a54)): ?> <?php $attributes = $__attributesOriginala74548b96d50b2f314a0bd93b02a2a54; ?> <?php unset($__attributesOriginala74548b96d50b2f314a0bd93b02a2a54); ?> <?php endif; ?> <?php if (isset($__componentOriginala74548b96d50b2f314a0bd93b02a2a54)): ?> <?php $component = $__componentOriginala74548b96d50b2f314a0bd93b02a2a54; ?> <?php unset($__componentOriginala74548b96d50b2f314a0bd93b02a2a54); ?> <?php endif; ?> <?php echo e($feature->name); ?>
</li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/frontend/ad-card/details/info.blade.php ENDPATH**/ ?>
|