<?php $__env->startSection('header'); ?>
    <!--inner-header-->
    <div class="inner-header short" style="background-image: url(<?php echo e(asset($pageDetails->image ?? 'assets/web/images/h-slide3.jpg')); ?>);">
        <div class="info">
            <h3><?php echo e($pageDetails->description); ?></h3>
        </div>
        <div class="btn-scroll-down">
            <a href="#"><?php echo e(__('main.scroll_down')); ?></a>
        </div>
    </div>
    <!--End-inner-header-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!-- ------------------------ about us ------------------------ -->
    <section class="leader-info section-padding">
        <div class=" container ">
            <div class="row ">
                <div class="col-lg-6 valign">
                    <div class="info w-100">
                        <div class="color-title ">
                            <h2 class="text-uppercase"><?php echo e($chairman?$chairman->name:null); ?></h2>
                            <h6><?php echo e($chairman?$chairman->job_title:null); ?></h6>
                        </div>
                        <p><?php echo e($chairman?$chairman->details:null); ?></p>
                    </div>
                </div>

                <div class="col-lg-6">
                    <div class="img">
                        <img src="<?php echo e(asset($chairman?$chairman->photo:null) ?? asset('assets/web/images/founder.png')); ?>" alt="">
                    </div>
                </div>
            </div>
        </div>

    </section>
    <!-- ------------------------- more about  ------------------------ -->
    <section class="more-about section-padding ">
        <div class="container ">
            <div class="row ">
                
                <?php
                    //$details = $chairman ? str_split($chairman->details_plus, (int) round(count(preg_split('/\s+/', trim(preg_replace('/\s\s+/', ' ', $chairman->details_plus))))/2)) : [];
                    //$announce = $chairman ? str_split($chairman->company_announce, round(count(preg_split('/\s+/', $chairman->company_announce))/2)) : [];
                    $announce = explode('@@', $chairman->company_announce, 2);
                    //$details = trim(preg_replace('/\s\s+/', ' ', $chairman->details_plus));
                    $details = explode('@@', $chairman->details_plus, 4);
                    //$details = array_chunk($details, (int) ceil(count($details)/4));

                    //$section1 = implode(' ',$details[0]);
                    //$section2 = implode(' ',$details[1]);
                    //$section3 = implode(' ',$details[2]);
                    //$section4 = implode(' ',$details[3]);

                ?>
                <div class="col-lg-6 ">
                    <p><?php echo $details[0]; ?></p>
                    <p><?php echo $details[1]; ?></p>
                </div>
                <div class="col-lg-6 ">
                    <p><?php echo $details[2]; ?></p>
                    <p><?php echo $details[3]; ?></p>
                </div>
            </div>
        </div>
    </section>
    <!-- ------------------------- color-content  ------------------------ -->
    <div class="color-content text-center">
        <p><?php echo e(count($announce) ? $announce[0] : ''); ?></p>
        <p class="m-0"><?php echo e(count($announce) ? $announce[1] : ''); ?></p>
    </div>
    <!-- ------------------------- our-leader-ship  ------------------------ -->
    <section class="our-leadership section-padding">
        <div class="container">
            <div class="color-title text-center">
                <h2 class="text-uppercase"><?php echo e(__('main.our_leadership')); ?></h2>
            </div>
            <div class="row">

                <div class="col-lg-6">
                    <?php $__currentLoopData = $leaderships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leadership): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($loop->iteration == 5): ?>
                            <?php break; ?>
                        <?php endif; ?>
                        <div class="items">
                            <div class="img">
                                <img src="<?php echo e(asset($leadership->photo)); ?>" alt="">
                            </div>
                            <div class="info">
                                <?php
                                    $job_title = preg_match('/@@/', $leadership->job_title) ? explode('@@', $leadership->job_title) : $leadership->job_title;
                                ?>
                                <h4><?php echo e($leadership->name); ?></h4>
                                <h6>
                                    <?php if(is_array($job_title)): ?>
                                        <?php echo e($job_title[0]); ?> <br> <?php echo e($job_title[1]); ?>

                                    <?php else: ?>
                                        <?php echo e($job_title); ?>

                                    <?php endif; ?>
                                </h6>
                                <p><?php echo e($leadership->details); ?></p>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <div class="col-lg-6 pt-5 mt-3">
                    <?php $__currentLoopData = $leaderships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $leadership): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($loop->iteration < 5): ?>
                            <?php continue; ?>
                        <?php endif; ?>
                        <div class="items">
                            <div class="img">
                                <img src="<?php echo e(asset($leadership->photo)); ?>" alt="">
                            </div>
                            <div class="info">
                                <?php
                                    $job_title = preg_match('/@@/', $leadership->job_title) ? explode('@@', $leadership->job_title) : $leadership->job_title;
                                ?>
                                <h4><?php echo e($leadership->name); ?></h4>
                                <h6>
                                    <?php if(is_array($job_title)): ?>
                                        <?php echo e($job_title[0]); ?> <br> <?php echo e($job_title[1]); ?>

                                    <?php else: ?>
                                        <?php echo e($job_title); ?>

                                    <?php endif; ?>
                                </h6>
                                <p><?php echo e($leadership->details); ?></p>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <script>
        var route = "<?php echo e(route('companySearch')); ?>"
    </script>
    <script src="<?php echo e(asset('assets/web/js/companies.js')); ?>"></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/leaderships/index.blade.php ENDPATH**/ ?>