master_template/resources/views/shortcodes/visaposts.blade.php

26 lines
895 B
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<div class="swiper-container mid-slider items" data-perview="3">
<div class="swiper-wrapper">
<?php
if (isset($branch)) {
if ($branch != "all") {
$Testi = CCMS::getVisasByBranchAlias($branch);
} else {
$Testi = CCMS::getVisas();
}
} else {
$Testi = CCMS::getVisas();
}
foreach ($Testi as $testimo) : ?>
<div class="swiper-slide slide-center item">
<div class="row card">
<div class="col-12 txt-p-cntr">
<img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->title; ?>" class="img-responsive" />
<h6><?php echo $testimo->title; ?></h6>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>