Files
cloud-chip.cn/storage/framework/views/f88d0e84d3df42bb93a6b055b8263a49.php
T
2026-08-08 18:27:38 +08:00

51 lines
2.7 KiB
PHP

<?php
$ctaHref = $slide->cta_url
? (Str::startsWith($slide->cta_url, ['http://', 'https://']) ? $slide->cta_url : url($slide->cta_url))
: null;
$cta2Href = $slide->cta2_url
? (Str::startsWith($slide->cta2_url, ['http://', 'https://']) ? $slide->cta2_url : url($slide->cta2_url))
: null;
?>
<div class="hero-slide-inner">
<div class="hero-slide-content rich-content rich-content--on-dark">
<?php echo \Purifier::clean($slide->content, 'article'); ?>
</div>
<?php if($ctaHref): ?>
<div class="mt-8 flex flex-wrap justify-center gap-4">
<a href="<?php echo e($ctaHref); ?>" class="inline-flex items-center gap-2 rounded-lg bg-surface px-5 py-3 text-sm font-semibold text-primary transition hover:bg-surface/90">
<?php echo e($slide->cta_text); ?>
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'arrow','size' => 18]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'arrow','size' => 18]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
</a>
<?php if($cta2Href): ?>
<a href="<?php echo e($cta2Href); ?>" class="inline-flex items-center gap-2 rounded-lg border border-white/40 px-5 py-3 text-sm font-semibold text-white transition hover:bg-surface/10">
<?php echo e($slide->cta2_text); ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/partials/hero-slide.blade.php ENDPATH**/ ?>