<?php $__env->startSection('header'); ?>
    <header>
        <div class="swiper-head">
            <div class="swiper-wrapper">
                <?php $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="swiper-slide">
                        <div class="img">
                            <img src="<?php echo e(asset($slider->image)); ?>" alt="">
                            <div class="info">
                                <h3><?php echo e($slider->title); ?></h3>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <!-- Add Arrows -->
            <div class="swiper-next"><i class="fas fa-chevron-right"></i></div>
            <div class="swiper-prev"><i class="fas fa-chevron-left"></i></div>
        </div>
        <div class="btn-scroll-down">
            <a href="#"><?php echo e(__('main.scroll_down')); ?></a>
        </div>
    </header>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!-- ------------------------ about us ------------------------ -->
    <section class="about-us">
        <div class="container">
            <div class="row no-gutters">
                <div class="col-lg-4">
                    <div class="img">
                        <img src="<?php echo e($detail->image); ?>" alt="">
                    </div>
                </div>
                <div class="col-lg-8">
                    <div class="info">
                        <div class="color-title text-center">
                            <h2><?php echo e(__('main.about_us')); ?></h2>
                        </div>
                        <?php
                            //$description = trim(preg_replace('/\s\s+/', '', $detail->details));
                            $description = $detail ?? null ? explode('@@', $detail->details, 2) : [];
                        ?>
                        <p><?php echo e(count($description) > 0 ? $description[0] : ''); ?></p>
                        <p><?php echo e(count($description) > 0 ? $description[1] : ''); ?></p>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- ------------------------- more about  ------------------------ -->
    <section class="more-about section-padding">
        <div class="container">
            <div class="row">
                <?php
                    $description = $detail ?? null ? explode('@@', $detail->details_plus, 2) : [];
                ?>
                <div class="col-lg-6">
                    <p class="pdr"><?php echo e(count($description) > 0 ? $description[0] : ''); ?></p>
                </div>
                <div class="col-lg-6">
                    <p class="pdl"><?php echo e(count($description) > 0 ? $description[1] : ''); ?></p>
                </div>
            </div>
        </div>
    </section>
    <!-- ------------------------- massion & vission  ------------------------ -->
    <div class="vission section-padding">
        <div class="container">
            <div class="row">
                <div class="col-lg-6">
                    <div class="items mb-5">
                        <h2 class="text-uppercase"><?php echo e(__('main.vision')); ?></h2>
                        <p><?php echo e($detail ?? null ? $detail->vision : null); ?></div>
                    <div class="items">
                        <h2 class="text-uppercase"><?php echo e(__('main.mission')); ?></h2>
                        <p><?php echo e($detail ?? null ? $detail->mission : null); ?></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- ------------------------- values  ------------------------ -->
    <section class="values">
        <div class="container">
            <div class="content text-center">
                <div class="color-title">
                    <h2 class="text-uppercase"><?php echo e(__('main.our_values')); ?></h2>
                </div>
                <?php if($ourValues): ?>
                    <?php $__currentLoopData = $ourValues; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <p><?php echo e($value); ?></p>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>

            </div>
        </div>
    </section>
    <!-- ------------------------- value-items  ------------------------ -->
    <div class="value-items section-padding text-center">
        <div class="container">
            <div class="row">
                <div class="col-lg-4">
                    <div class="items">
                        <?php
                            $number = $detail ?? null ? preg_match('/[0-9]+/', $detail->percentage_first, $match) : [];
                            $number = $number ? $match[0] : 0;
                            $char = $detail ?? null ? preg_replace('/[0-9]+/', '', $detail->percentage_first) : '';
                        ?>
                        <h2><span class="counter"><?php echo e($number); ?></span><small><?php echo e($char); ?></small></h2>
                        <p><?php echo e($detail ?? null ? $detail->percentage_text_first : null); ?></p>
                    </div>
                </div>

                <div class="col-lg-4">
                    <div class="items">
                        <?php
                            $number = $detail ?? null ? preg_match('/[0-9]+/', $detail->percentage_second, $match) : [];
                            $number = $number ? $match[0] : 0;
                            $char = $detail ?? null ? preg_replace('/[0-9]+/', '', $detail->percentage_second) : '';
                        ?>
                        <h2><span class="counter"><?php echo e($number); ?></span><small><?php echo e($char); ?></small></h2>
                        <p><?php echo e($detail ?? null ? $detail->percentage_text_second : null); ?></p>
                    </div>
                </div>

                <div class="col-lg-4">
                    <div class="items">
                        <?php
                            $number = $detail ?? null ? preg_match('/[0-9]+/', $detail->percentage_third, $match) : [];
                            $number = $number ? $match[0] : 0;
                            $char = $detail ?? null ? preg_replace('/[0-9]+/', '', $detail->percentage_third) : '';
                        ?>
                        <h2><span class="counter"><?php echo e($number); ?></span><small><?php echo e($char); ?></small></h2>
                        <p><?php echo e($detail ?? null ? $detail->percentage_text_third : null); ?></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- ------------------------- blog  ------------------------ -->
    <section class="blog news">
        <div class="news-head">
            <div class="container">
                <h2 class="text-uppercase"><?php echo e(__('main.latest_news')); ?></h2>
            </div>
        </div>
        <div class="container">
            <div class="blog-slide section-padding">
                <div class="row">
                    <?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-4">
                            <div class="items">
                                <div class="img">
                                    <img src="<?php echo e(asset($article->image ?? $article->AImage) ?? asset('assets/web/images/news/1.jpg')); ?>" alt="">
                                    <span class="date">
                                        <?php echo e(date('Y', strtotime($article->added_year))); ?>

                                        <?php echo e(date('M', strtotime($article->added_year))); ?>

                                            </span>
                                    <a href="<?php echo e(route('news.show', $article->id)); ?>">
                                        <span class="blog-title">
                                            <strong><?php echo e($article->title); ?></strong>

                                        </span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-lg-4 valign content">
                        <div class="explore w-100">
                            <a class="text-capitalize" href="<?php echo e(route('news.index')); ?>"><?php echo e(__('main.explore_more')); ?></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <script>
        $('.counter').countUp({
            delay: 10,
            time: 2500
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\nesma\resources\views/web/index/index.blade.php ENDPATH**/ ?>