coinwind/storage/framework/views/ab5197d3149b2b17de56197a7d1...

29 lines
1.6 KiB
PHP

<div <?php echo $attributes; ?> style='padding: 5px;border: 1px solid #f4f4f4;background-color:white;width:<?php echo e($width); ?>px;'>
<ol class="carousel-indicators">
<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li data-target="#<?php echo $id; ?>" data-slide-to="<?php echo e($key); ?>" class="<?php echo e($key == 0 ? 'active' : ''); ?>"></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ol>
<div class="carousel-inner">
<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="item <?php echo e($key == 0 ? 'active' : ''); ?>">
<img src="<?php echo e(url($item['image'])); ?>" alt="<?php echo e($item['caption']); ?>" style='max-width:<?php echo e($width); ?>px;max-height:<?php echo e($height); ?>px;display: block;margin-left: auto;margin-right: auto;'>
<div class="carousel-caption">
<?php echo e($item['caption']); ?>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<a class="left carousel-control" href="#<?php echo $id; ?>" data-slide="prev">
<span class="fa fa-angle-left"></span>
</a>
<a class="right carousel-control" href="#<?php echo $id; ?>" data-slide="next">
<span class="fa fa-angle-right"></span>
</a>
</div>