<?php $__env->startSection('title', 'Beranda Situs Resmi'); ?>
<?php $__env->startSection('content'); ?>
<style type="text/css">
    .scroller{
        text-align: center;
    }
    @media  only screen and (max-width: 767px) {
        div.i-scroller h2{
            font-size: 12px;
        }
    }
</style>
<!-- Hero section -->
<section class="hero-section">
    <div class="hero-slider owl-carousel">
        <?php if($banner): ?>
            <?php $__currentLoopData = $banner; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="hs-item set-bg" data-setbg="<?php echo e(url('assets/files/banner/'.$row->picture.'?time='.time())); ?>">
                <div class="hs-text">
                    <div class="container">
                        <div class="row">
                            <div class="col-lg-8">
                                
                                <h2 class="hs-title"><?php echo e($row->name == "-" ? "" : $row->name); ?></h2>
                                <p class="hs-des"><?php echo e($row->description == "-" ? "" : $row->description); ?></p>
                                <!-- <div class="site-btn">GET STARTED</div> -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>
</section>
<!-- Hero section end -->


<!-- Counter section  -->
<section class="counter-section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 col-md-12">
                <div class="big-icon">
                    <i class="fa fa-info"></i>
                </div>
                <div class="counter-content">
                    <div class="scroller">
                    <?php if($runningText): ?>
                        <?php $__currentLoopData = $runningText; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="i-scroller"><h2><?php echo e($row->text); ?></h2></div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- Counter section end -->


<!-- Event section -->
<section class="event-section spad">
    <div class="container">
        <div class="section-title text-center">
            <h3>Kegiatan Sekolah</h3>
            <p>Dokumentasi Kegiatan Sekolah</p>
        </div>
        <div class="row">
            <?php if($kegiatan): ?>
                <?php $__currentLoopData = $kegiatan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-6 event-item">
                    <div class="event-thumb">
                        <img src="<?php if($row->picture != NULL){ echo url('assets/files/kegiatan/'.$row->picture.'?time='.time()); }else{ echo url('assets/frontend/img/no-picture.png?time='.time()); } ?>" alt="">
                        <div class="event-date">
                            <span><?php echo e(Helper::tgl_indo($row->tanggal_kegiatan)); ?></span>
                        </div>
                    </div>
                    <div class="event-info">
                        <h4><?php echo e($row->title); ?></h4>
                        <p><i class="fa fa-map-marker"></i> <?php echo e($row->lokasi_kegiatan); ?></p>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
            <a href="#" id="loadMore">Load More</a>
        </div>
    </div>
</section>
<!-- Event section end -->


<!-- Fact section -->
<section class="fact-section spad set-bg" data-setbg="<?php echo e(url('assets/files/banner/'.Helper::get_banner()->picture).'?time='.time()); ?>">
    <div class="container">
        <div class="row">
            <div class="col-sm-6 col-lg-3 fact">
                <div class="fact-icon">
                    <i class="ti-crown"></i>
                </div>
                <div class="fact-text">
                    <h2><?php if($ptk_pns): ?> <?php echo e($ptk_pns->count()); ?> <?php endif; ?></h2>
                    <p>Tenaga PNS</p>
                </div>
            </div>
            <div class="col-sm-6 col-lg-3 fact">
                <div class="fact-icon">
                    <i class="ti-briefcase"></i>
                </div>
                <div class="fact-text">
                    <h2><?php if($ptk_honor): ?> <?php echo e($ptk_honor->count()); ?> <?php endif; ?></h2>
                    <p>Tenaga Honor</p>
                </div>
            </div>
            <div class="col-sm-6 col-lg-3 fact">
                <div class="fact-icon">
                    <i class="ti-user"></i>
                </div>
                <div class="fact-text">
                    <h2>
                        <?php
                        $total=0;
                        if($siswa):
                            foreach($siswa as $row){
                                $total += $row->jumlah;
                            }
                            echo $total;
                        endif;
                        ?>
                    </h2>
                    <p>Siswa</p>
                </div>
            </div>
            <div class="col-sm-6 col-lg-3 fact">
                <div class="fact-icon">
                    <i class="ti-pencil-alt"></i>
                </div>
                <div class="fact-text">
                    <h2>
                        <?php
                        if(in_array(Helper::web_config('bentuk_pendidikan_id'), [1,2,3,4])){
                            if($rombel){
                                echo $rombel->count();
                            }
                        }elseif(in_array(Helper::web_config('bentuk_pendidikan_id'), [5,6])){
                            if($rombel){
                                echo $rombel->Total;
                            }
                        }elseif(in_array(Helper::web_config('bentuk_pendidikan_id'), [24])){
                            if($rombel){
                                echo $rombel->Total;
                            }
                        }
                        ?>
                    </h2>
                    <p>Rombel</p>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- Fact section end-->

<!-- Team section  -->
    <section class="team-section spad">
        <div class="container">
            <div class="section-title text-center">
                <h3>MANAGEMENT SEKOLAH</h3>
                <p>Daftar Tenaga Pendidik dan Administrasi Sekolah</p>
            </div>
            <div class="row">
                <?php if($managementsekolah): ?>
                    <?php $__currentLoopData = $managementsekolah; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-md-6 col-lg-3 management">
                        <div class="member">
                            <div class="member-pic set-bg" data-setbg="<?php if($row->foto != NULL){ echo url('assets/files/sekolah/'.$row->foto.'?time='.time()); }else{ echo url('assets/frontend/img/no-picture.png?time='.time()); } ?>">
                                <div class="member-social">
                                    <a href="<?php echo e($row->facebook); ?>" target="_blank" title="kunjungi facebook"><i class="fa fa-facebook"></i></a>
                                    <a href="<?php echo e($row->twitter); ?>" target="_blank" title="kunjungi twitter"><i class="fa fa-twitter"></i></a>
                                    <a href="<?php echo e($row->instagram); ?>" target="_blank" title="kunjungi instagram"><i class="fa fa-instagram"></i></a>
                                </div>
                            </div>
                            <h5><?php echo e($row->nama); ?></h5>
                            <p><?php echo e($row->jabatan); ?></p>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
                <a href="#" id="loadManagement">Load More</a>
            </div>
        </div>
    </section>
    <!-- Team section end -->


<!-- Gallery section -->
<div class="gallery-section">
    <div class="gallery">
        <div class="grid-sizer"></div>
        <?php $no=0; if($gallery): foreach($gallery as $row){ $no++; ?>
        <div class="gallery-item <?php if($no == 1 || $no == 5){ echo 'gi-big'; }elseif($no == 4 || $no == 6){ echo 'gi-long'; } ?> set-bg" data-setbg="<?php echo e(url('assets/files/gallery/'.$row->picture.'?time='.time())); ?>">
            <a class="img-popup" href="<?php echo e(url('assets/files/gallery/'.$row->picture.'?time='.time())); ?>"><i class="ti-plus"></i></a>
        </div>
        <?php } endif; ?>
    </div>
</div>
<!-- Gallery section -->


<!-- Blog section -->
<section class="blog-section spad">
    <div class="container">
        <div class="section-title text-center">
            <h3>Konten Blog</h3>
            <p>Update konten seputar sekolah</p>
        </div>
        <div class="row">
            <?php if($blog): ?>
                <?php $__currentLoopData = $blog; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-xl-6 blog">
                    <div class="blog-item">
                        <div class="blog-thumb set-bg" data-setbg="<?php if($row->picture != NULL){ echo url('assets/files/blog/'.$row->picture.'?time='.time()); }else{ echo url('assets/frontend/img/no-picture.png?time='.time()); } ?>"></div>
                        <div class="blog-content">
                            <h4><a href="<?php echo e(url('blog/'.$row->slug)); ?>" style="text-decoration: none; color:black;"><?php echo e($row->title); ?></a></h4>
                            <div class="blog-meta">
                                <span><i class="fa fa-calendar-o"></i> <?php echo e($row->updated_at != NULL ? Helper::tgl_indo($row->updated_at) : Helper::tgl_indo($row->created_at)); ?></span>
                                <span><i class="fa fa-user"></i> <?php echo e($row->nama_author); ?></span>
                            </div>
                            <p><?php echo strip_tags(substr($row->content, 0, 100)); ?>... <a href="<?php echo e(url('blog')); ?>/<?php echo e($row->slug); ?>">Read more</a></p>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
            <a href="#" id="loadBlog">Load More</a>
        </div>
    </div>
</section>
<!-- Blog section -->

<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script type="text/javascript" src="<?php echo e(url('assets/frontend/js/jquery.scroller.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\websekolah\webapps\resources\views/pages/fe/home.blade.php ENDPATH**/ ?>