<?php $__env->startSection('content'); ?>


<section class="go-slider">
<div id="bootstrap-touch-slider" class="carousel bs-slider fade  control-round indicators-line" data-ride="carousel" data-pause="hover" data-interval="5000" >

    <!-- Indicators -->
    <ol class="carousel-indicators">
        <?php for($i = 0; $i < count($sliders); $i++): ?>
            <?php if($i == 0): ?>
                <li data-target="#bootstrap-touch-slider" data-slide-to="<?php echo e($i); ?>" class="active"></li>
            <?php else: ?>
                <li data-target="#bootstrap-touch-slider" data-slide-to="<?php echo e($i); ?>"></li>
            <?php endif; ?>
        <?php endfor; ?>
    </ol>

    <!-- Wrapper For Slides -->
    <div class="carousel-inner" role="listbox">

        <?php for($i = 0; $i < count($sliders); $i++): ?>
            <?php if($i == 0): ?>
                <!-- Third Slide -->
                    <div class="item active">

                        <!-- Slide Background -->
                        <img src="<?php echo e(url('/')); ?>/assets/images/sliders/<?php echo e($sliders[$i]->image); ?>" alt="Bootstrap Touch Slider"  class="slide-image"/>
                        <div class="bs-slider-overlay"></div>

                        <div class="container">
                            <div class="row">
                                <!-- Slide Text Layer -->
                                <div class="slide-text <?php echo e($sliders[$i]->text_position); ?>">

                                    <h1 data-animation="animated fadeInDown"><?php echo e($sliders[$i]->title); ?></h1>
                                    <p data-animation="animated fadeInUp"><?php echo e($sliders[$i]->text); ?></p>

                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- End of Slide -->
            <?php else: ?>
            <!-- Second Slide -->
                <div class="item">

                    <!-- Slide Background -->
                    <img src="<?php echo e(url('/')); ?>/assets/images/sliders/<?php echo e($sliders[$i]->image); ?>" alt="Bootstrap Touch Slider"  class="slide-image"/>
                    <div class="bs-slider-overlay"></div>
                    <!-- Slide Text Layer -->
                    <div class="slide-text <?php echo e($sliders[$i]->text_position); ?>">
                        <h1 data-animation="animated fadeInDown"><?php echo e($sliders[$i]->title); ?></h1>
                        <p data-animation="animated fadeInUp"><?php echo e($sliders[$i]->text); ?></p>
                    </div>
                </div>
                <!-- End of Slide -->
            <?php endif; ?>
    <?php endfor; ?>


    </div><!-- End of Wrapper For Slides -->

        <!-- Left Control -->
        <a class="left carousel-control" href="#bootstrap-touch-slider" role="button" data-slide="prev">
            <span class="fa fa-angle-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>

        <!-- Right Control -->
        <a class="right carousel-control" href="#bootstrap-touch-slider" role="button" data-slide="next">
            <span class="fa fa-angle-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>

    </div> <!-- End  bootstrap-touch-slider Slider -->

</section>

<section class="wow fadeInUp go-services hideme">
    <div class="row" style="margin-top:70px;">
        <div class="container">
            <div class="col-md-6 col-md-offset-3">
                <div class="section-title">
                    <h2><?php echo e($languages->service_title); ?></h2>
                    <p><?php echo e($languages->service_text); ?></p>
                </div>
            </div>
            <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-xs-12 col-md-4">
                    <div class="service-list text-center wow fadeInUp">
                        <img src="<?php echo e(url('/assets/images/service')); ?>/<?php echo e($service->icon); ?>" alt="">
                        <h3><?php echo e($service->title); ?></h3>
                        <p><?php echo e($service->text); ?></p>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>


<section class="wow fadeInUp go-section">
    <div class="row">
        <div class="container">
            <div class="col-md-6 col-md-offset-3">
                <div class="section-title">
                    <h2><?php echo e($languages->category_title); ?></h2>
                    <p><?php echo e($languages->category_text); ?></p>
                </div>
            </div>
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-4 cats">
                    <a href="category/<?php echo e($category->slug); ?>" class="btn btn-genius btn-block"><strong> <?php echo e($category->name); ?></strong></a>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>

<section class="wow fadeInUp go-services hideme">
    <div class="container">
        <div class="col-md-6 col-md-offset-3">
            <div class="section-title">
                <h2><?php echo e($languages->newcamp_title); ?></h2>
                <p><?php echo e($languages->newcamp_text); ?></p>
            </div>
        </div>
        <div class="col-sm-12">
            <div id="new-camps" class="owl-carousel">
            <?php $__currentLoopData = $newcampaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="package-list wow fadeInUp" style="visibility: visible; animation-name: fadeInUp;">
                    <a href="<?php echo e(url('/')); ?>/campaign/<?php echo e($campaign->id); ?>">
                        <div class="package-thumb">
                            <img width="800" height="570" src="<?php echo e(url('/assets/images/campaign')); ?>/<?php echo e($campaign->feature_image); ?>" class="" alt="1">
                        </div>
                        <div class="package-info">
                            <h3><?php echo e($campaign->title); ?></h3>
                            <div class="row">
                                <span class="pull-left">
                                    <?php if(((strtotime($campaign->end_date)-time())/86400) < 0): ?>
                                        <b><?php echo e(0); ?></b>
                                    <?php else: ?>
                                        <b><?php echo e(ceil((strtotime($campaign->end_date)-time())/86400)); ?></b>
                                    <?php endif; ?>
                                     Days Left
                                </span>
                                <span class="pull-right">
                                    <b>$<?php echo e(\App\Donation::getFund($campaign->id)); ?></b>
                                     Funded
                                </span>
                            </div>

                                <div class="progress">
                                  <div class="progress-bar" role="progressbar" aria-valuenow="<?php echo e(\App\Donation::getPercent($campaign->id)); ?>"
                                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo e(\App\Donation::getPercent($campaign->id)); ?>%">
                                    <?php echo e(\App\Donation::getPercent($campaign->id)); ?>%
                                  </div>
                                </div>

                            <p><?php echo e(substr(strip_tags($campaign->description), 0, 120)); ?>...</p>

                        </div>
                    </a>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
</section>

<section class="wow fadeInUp go-services hideme">
    <div class="container">
        <div class="col-md-6 col-md-offset-3">
            <div class="section-title">
                <h2><?php echo e($languages->pricing_title); ?></h2>
                <p><?php echo e($languages->pricing_text); ?></p>
            </div>
        </div>
        <div class="col-sm-12">
            <div id="featured-camps" class="owl-carousel">
            <?php $__currentLoopData = $fcampaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="package-list wow fadeInUp" style="visibility: visible; animation-name: fadeInUp;">
                    <a href="<?php echo e(url('/')); ?>/campaign/<?php echo e($campaign->id); ?>">
                        <div class="package-thumb">
                            <img width="800" height="570" src="<?php echo e(url('/assets/images/campaign')); ?>/<?php echo e($campaign->feature_image); ?>" class="" alt="1">
                        </div>
                        <div class="package-info">
                            <h3><?php echo e($campaign->title); ?></h3>
                            <div class="row">
                                <span class="pull-left">
                                    <?php if(((strtotime($campaign->end_date)-time())/86400) < 0): ?>
                                        <b><?php echo e(0); ?></b>
                                    <?php else: ?>
                                        <b><?php echo e(ceil((strtotime($campaign->end_date)-time())/86400)); ?></b>
                                    <?php endif; ?>
                                     Days Left
                                </span>
                                <span class="pull-right">
                                    <b>$<?php echo e(\App\Donation::getFund($campaign->id)); ?></b>
                                     Funded
                                </span>
                            </div>

                                <div class="progress">
                                  <div class="progress-bar" role="progressbar" aria-valuenow="<?php echo e(\App\Donation::getPercent($campaign->id)); ?>"
                                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo e(\App\Donation::getPercent($campaign->id)); ?>%">
                                    <?php echo e(\App\Donation::getPercent($campaign->id)); ?>%
                                  </div>
                                </div>

                            <p><?php echo e(substr(strip_tags($campaign->description), 0, 120)); ?>...</p>

                        </div>
                    </a>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
</section>

<section id="counter_two" class="wow fadeInUp go-counter counter_two" style="background: url(<?php echo e(url('/')); ?>/assets/images/<?php echo e($settings[0]->background); ?>) no-repeat center center; background-size: cover;">
    <div class="overlay">
        <div class="container">
            <div class="row">
                <div class="main_counter_two sections text-center">
                    <div class="col-sm-12" style="padding: 0;">
                        <div class="row">
                                <div class="col-sm-4 col-xs-12">
                                    <div class="single_counter_two_right">
                                        <h2 class="counter" data-count="<?php echo e(\App\Campaign::where('admin_aproved','yes')->count()); ?>">0</h2>
                                        <p>Campaigns</p>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="single_counter_two_right">
                                        <h2 class="counter" data-count="<?php echo e(\App\Campaign::totalDonations()); ?>">0</h2>
                                        <p>Donations</p>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="single_counter_two_right">
                                        <h2>$<span class="counter" data-count="<?php echo e(\App\Campaign::totalFunds()); ?>">0</span></h2>
                                        <p>Fund Raised</p>
                                    </div>
                                </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


<section class="wow fadeInUp projects_area hideme" id="portfolio">
    <div class="container projects">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">
                <div class="section-title">
                    <h2><?php echo e($languages->portfolio_title); ?></h2>
                    <p><?php echo e($languages->portfolio_text); ?></p>
                </div>
            </div>
            <div class="col-md-12">
                <div class="project_list ">
                    <?php $__currentLoopData = $portfilos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $portfilo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="mix col-md-4 single_project" data-my-order="1">
                        <img src="<?php echo e(url('/assets/images/portfolio')); ?>/<?php echo e($portfilo->image); ?>"/>
                        <div class="project_detail">
                            <div class="project_overlay"></div>
                            <a data-lightbox="example-2" data-title="" href="<?php echo e(url('/assets/images/portfolio')); ?>/<?php echo e($portfilo->image); ?>">
                                <i class="fa fa-search"></i>
                            </a>
                        </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    </div>
</section>


<!-- TESTIMONIALS -->
<section class="wow fadeInUp testimonials hideme">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">
                <div class="section-title">
                    <h2><?php echo e($languages->testimonial_title); ?></h2>
                    <p><?php echo e($languages->testimonial_text); ?></p>
                </div>
            </div>
            <div class="col-sm-12">
                <div id="customers-testimonials" class="owl-carousel">
                <?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $testimonial): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="item">
                        <div class="shadow-effect">
                            <i class="fa fa-quote-right"></i>
                            <div class="item-details">
                                <p class="ctext"><?php echo e($testimonial->review); ?></p>
                                <h5><?php echo e($testimonial->client); ?></h5>
                                <p><?php echo e($testimonial->designation); ?></p>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- END OF TESTIMONIALS -->

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

<?php $__env->startSection('footer'); ?>
<script>

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('includes.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>