<?php if(count($banners) > 0): ?> <div class="sidebar-widget wow fadeInUp outer-top-vs mb-20"> <h3 class="section-title"><?php echo app('translator')->getFromJson('Side Banners'); ?></h3> <div id="advertisement1" class="advertisement"> <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="home-banner sidebar-banner"> <a href="<?php echo e($banner->link ? $banner->link : url()->current()); ?>"> <?php if($banner->photo): ?> <?php
                            $image_url = \App\Helpers\Helper::check_image_avatar($banner->photo->name, 300);
                        ?> <img class="img-responsive" src="<?php echo e($image_url); ?>" alt="<?php echo e($banner->title ? $banner->title : __('Side Banner')); ?>"/> <?php else: ?> <img class="img-responsive" src="https://via.placeholder.com/150x150?text=No+Image" alt="<?php echo e($banner->title ? $banner->title : __('Side Banner')); ?>" /> <?php endif; ?> </a> <div class="clients_author"> <?php echo e($banner->title ? $banner->title : __('Side Banner')); ?> </div> <div class="testimonials"><?php echo e($banner->description ? $banner->description : __('Banner Description')); ?></div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?>