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

<?php ($numbersDefault = [
    ['value' => 1500, 'label' => __('web.numbers.client_default'), 'image' => asset('assets/web/images/icons/num-1.svg')],
    ['value' => 12, 'label' => __('web.numbers.project_default'), 'image' => asset('assets/web/images/icons/num-2.svg')],
    ['value' => 50, 'label' => __('web.numbers.technician_default'), 'image' => asset('assets/web/images/icons/num-3.svg')],
    ['value' => 21, 'label' => __('web.numbers.order_default'), 'image' => asset('assets/web/images/icons/num-4.svg')],
]); ?>
<?php ($numbers = collect($numbersDefault)); ?>
                <?php if($numbersPage): ?>
                    <?php ($numbers = $numbers->map(function ($item, $index) use ($numbersPage) {
                        $slot = $index + 1;
                        $valueKey = 'value_' . $slot;
                        $titleKey = $slot === 1 ? 'title' : 'title_' . $slot;
                        $imageKey = $slot === 1 ? 'image_url' : 'image_' . $slot . '_url';
                        $description = optional($numbersPage->currentDescription);
                        $title = $description ? ($description->{$titleKey} ?? null) : null;
                        $image = $numbersPage->{$imageKey} ?? null;
                        return [
                            'value' => $numbersPage->{$valueKey} ?? $item['value'],
                            'label' => $title ? strip_tags($title) : $item['label'],
                            'image' => $image ?: $item['image'],
                        ];
                    })); ?>
                <?php endif; ?>

<?php ($partnersPage = $partnersPage ?? null); ?>
<?php ($partnersDescriptionRaw = $partnersPage && $partnersPage->currentDescription ? $partnersPage->currentDescription->description : null); ?>
<?php ($partnersTitleRaw = $partnersPage && $partnersPage->currentDescription ? $partnersPage->currentDescription->title : null); ?>
<?php ($partnersTitle = $partnersTitleRaw ? strip_tags($partnersTitleRaw) : __('web.partners_title_default')); ?>
<?php ($partnersDescription = $partnersDescriptionRaw ? strip_tags($partnersDescriptionRaw) : __('web.partners_description_default')); ?>

<?php ($brands = collect($brands ?? [])); ?>

<?php ($testimonialsPage = $testimonialsPage ?? null); ?>
<?php ($testimonialsDescriptionRaw = $testimonialsPage && $testimonialsPage->currentDescription ? $testimonialsPage->currentDescription->description : null); ?>
<?php ($testimonialsTitle = $testimonialsDescriptionRaw ? strip_tags($testimonialsDescriptionRaw) : __('web.testimonials_title_default')); ?>

<?php ($reviews = collect($reviews ?? [])); ?>

<?php ($visionPage = $visionPage ?? null); ?>
<?php ($visionTitleRaw = $visionPage && $visionPage->currentDescription ? $visionPage->currentDescription->title : null); ?>
<?php ($visionDescriptionRaw = $visionPage && $visionPage->currentDescription ? $visionPage->currentDescription->description : null); ?>
<?php ($visionTitle = $visionTitleRaw ? strip_tags($visionTitleRaw) : __('web.our_vision')); ?>
<?php ($visionDescription = $visionDescriptionRaw ? strip_tags($visionDescriptionRaw) : __('web.vision_content')); ?>

<?php ($missionPage = $missionPage ?? null); ?>
<?php ($missionTitleRaw = $missionPage && $missionPage->currentDescription ? $missionPage->currentDescription->title : null); ?>
<?php ($missionDescriptionRaw = $missionPage && $missionPage->currentDescription ? $missionPage->currentDescription->description : null); ?>
<?php ($missionTitle = $missionTitleRaw ? strip_tags($missionTitleRaw) : __('web.our_mission')); ?>
<?php ($missionDescription = $missionDescriptionRaw ? strip_tags($missionDescriptionRaw) : __('web.mission_content')); ?>

<?php ($goalsPage = $goalsPage ?? null); ?>
<?php ($goalsTitleRaw = $goalsPage && $goalsPage->currentDescription ? $goalsPage->currentDescription->title : null); ?>
<?php ($goalsDescriptionRaw = $goalsPage && $goalsPage->currentDescription ? $goalsPage->currentDescription->description : null); ?>
<?php ($goalsTitle = $goalsTitleRaw ? strip_tags($goalsTitleRaw) : __('web.our_goals')); ?>
<?php ($goalsDescription = $goalsDescriptionRaw ? strip_tags($goalsDescriptionRaw) : __('web.goals_content')); ?>

<main>

    <!-- ---------- innerheader ----------- -->
    <section class="inner-header pt-100">
        <div class="container">
            <div class="cont text-center col-lg-4 mx-auto">
                <div class="bread d-flex fw-bold fsz-18 justify-content-center">
                    <a href="<?php echo e(route('web.home')); ?>"> <i class="fal fa-home"></i> </a>
                    <span class="mx-3"> / </span>
                    <a href="<?php echo e(route('web.about')); ?>"> <?php echo e(__('web.about_us')); ?> </a>
                </div>
                <h1 class="fsz-40 mt-10 cr-sub"> <?php echo e($page->currentDescription->title ?? __('web.about_us')); ?> </h1>
            </div>
        </div>
        <img src="<?php echo e(asset('assets/web/images/hero-top-shap.png')); ?>" alt="" class="shap">
    </section>

    <!-- ---------- about ----------- -->
    <section class="about-about section-padding">
        <div class="container">
            <div class="row align-items-center justify-content-between">
                <div class="col-lg-7">
                    <div class="info pe-lg-5 wow fadeInUp">
                        <h6 class="cr-main fsz-25"> <?php echo e($page->currentDescription->title_2 ?? __('web.about_madar')); ?> </h6>
                        <h1 class="fsz-30 mt-20"> <?php echo e($page->currentDescription->title_3 ?? __('web.about_description')); ?> </h1>
                        <div class="text mt-20 fsz-16 fw-bold">
                            <?php echo $page->currentDescription->description ?? __('web.about_content'); ?>

                        </div>
                    </div>
                </div>
                <div class="col-lg-5">
                    <div class="img wow zoomIn" data-wow-delay="0.2s">
                        <?php if($page->image_url): ?>
                            <img src="<?php echo e($page->image_url); ?>" alt="<?php echo e($page->currentDescription->title ?? __('web.about_us')); ?>">
                        <?php else: ?>
                            <img src="<?php echo e(asset('assets/web/images/hero.png')); ?>" alt="<?php echo e($page->currentDescription->title ?? __('web.about_us')); ?>">
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </section>


    <!-- ---------- vision ----------- -->
    <section class="vision section-padding">
        <div class="container">
            <?php if($numbers->isNotEmpty()): ?>
                <div class="numbers">
                    <div class="row">
                        <?php $__currentLoopData = $numbers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-lg-3">
                                <div class="num-item wow fadeInUp" data-wow-delay="<?php echo e($index * 0.1); ?>s">
                                    <div class="top-cont">
                                        <h2 class="counter num"> <?php echo e($item['value']); ?> </h2>
                                        <div class="icon-60">
                                            <img src="<?php echo e($item['image']); ?>" alt="<?php echo e($item['label']); ?>">
                                        </div>
                                    </div>
                                    <div class="text fsz-18 text-center fw-bold"> <?php echo e($item['label']); ?> </div>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            <?php endif; ?>
            <div class="vision-cards">
                <div class="row">
                    <div class="col-lg-4">
                        <div class="vision-card wow fadeInUp">
                            <h3 class="font-light"> <?php echo e($visionTitle); ?> </h3>
                            <div class="text"> <?php echo e($visionDescription); ?> </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="vision-card wow fadeInUp" data-wow-delay="0.2s">
                            <h3 class="font-light"> <?php echo e($missionTitle); ?> </h3>
                            <div class="text"> <?php echo e($missionDescription); ?> </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="vision-card wow fadeInUp" data-wow-delay="0.4s">
                            <h3 class="font-light"> <?php echo e($goalsTitle); ?> </h3>
                            <div class="text"> <?php echo e($goalsDescription); ?> </div>
                        </div>
                    </div>
                </div>
                <img src="<?php echo e(asset('assets/web/images/vision-shap.png')); ?>" alt="" class="shap d-none d-lg-block">
                <img src="<?php echo e(asset('assets/web/images/vision-shap2.png')); ?>" alt="" class="shap-mob d-block d-lg-none">
            </div>
        </div>
    </section>


    <!-- ---------- partners ----------- -->
     <section class="partners section-padding">
        <div class="container">
            <div class="title-wrapper text-center col-lg-4 mx-auto mb-30">
                <div class="fsz-21 text-balance"> <?php echo e($partnersDescription); ?> </div>
                <h2 class="fsz-50 fw-bold cr-main"> <?php echo e($partnersTitle); ?> </h2>
            </div>
            <div class="partners-slider">
                <div class="swiper-wrapper">
                    <?php $__empty_1 = true; $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php ($brandImage = $brand->image_url ?? asset('assets/web/images/partners/9.png')); ?>
                        <div class="swiper-slide">
                            <div class="partner">
                                <img src="<?php echo e($brandImage); ?>" alt="<?php echo e($partnersTitle); ?>">
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <div class="swiper-slide">
                            <div class="partner">
                                <img src="<?php echo e(asset('assets/web/images/partners/9.png')); ?>" alt="<?php echo e($partnersTitle); ?>">
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </section>

    <!-- ---------- testimonials  ----------- -->
     <section class="testimonials section-padding">
        <div class="container">
            <div class="title-wrapper text-center col-lg-6 mx-auto mb-30">
                <div class="icon-60 mx-auto mb-10">
                    <img src="<?php echo e(asset('assets/web/images/like.svg')); ?>" alt="">
                </div>
                <div class="fsz-21 text-balance"> <?php echo e($testimonialsTitle); ?> </div>
                <h2 class="fsz-50 fw-bold cr-main"> <?php echo e(__('web.testimonials_title_default')); ?> </h2>
            </div>
            <div class="testi-slider">
                <div class="swiper-wrapper">
                    <?php $__empty_1 = true; $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php ($reviewText = $review->currentDescription->body ?? ''); ?>
                        <?php ($reviewName = $review->currentDescription->customer_name ?? 'عميل'); ?>
                        <?php ($reviewJob = $review->currentDescription->company_name ?? ''); ?>
                        <div class="swiper-slide">
                            <div class="testi-card">
                                <div class="text fsz-18 lh-lg"> <?php echo e($reviewText); ?> </div>
                                <div class="user-inf mt-60">
                                    <h6 class="fsz-25"> <?php echo e($reviewName); ?> </h6>
                                    <small class="fsz-14 mt-2 op-6"> <?php echo e($reviewJob); ?> </small>
                                </div>
                                <img src="<?php echo e(asset('assets/web/images/star.png')); ?>" alt="" class="star">
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <div class="swiper-slide">
                            <div class="testi-card">
                                <div class="text fsz-18 lh-lg"> <?php echo e(__('web.testimonial_1')); ?> </div>
                                <div class="user-inf mt-60">
                                    <h6 class="fsz-25"> <?php echo e(__('web.testimonial_1_name')); ?> </h6>
                                    <small class="fsz-14 mt-2 op-6"> <?php echo e(__('web.testimonial_1_title')); ?> </small>
                                </div>
                                <img src="<?php echo e(asset('assets/web/images/star.png')); ?>" alt="" class="star">
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="testi-card">
                                <div class="text fsz-18 lh-lg"> <?php echo e(__('web.testimonial_2')); ?> </div>
                                <div class="user-inf mt-60">
                                    <h6 class="fsz-25"> <?php echo e(__('web.testimonial_2_name')); ?> </h6>
                                    <small class="fsz-14 mt-2 op-6"> <?php echo e(__('web.testimonial_2_title')); ?> </small>
                                </div>
                                <img src="<?php echo e(asset('assets/web/images/star.png')); ?>" alt="" class="star">
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="testi-card">
                                <div class="text fsz-18 lh-lg"> <?php echo e(__('web.testimonial_3')); ?> </div>
                                <div class="user-inf mt-60">
                                    <h6 class="fsz-25"> <?php echo e(__('web.testimonial_3_name')); ?> </h6>
                                    <small class="fsz-14 mt-2 op-6"> <?php echo e(__('web.testimonial_3_title')); ?> </small>
                                </div>
                                <img src="<?php echo e(asset('assets/web/images/star.png')); ?>" alt="" class="star">
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
                <div class="swiper-pagination"></div>
            </div>
        </div>
    </section>

</main>

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

<?php $__env->startSection('inject_js'); ?>
<script>
    // Counter animation
    $('.counter').each(function() {
        var $this = $(this);
        var countTo = $this.attr('data-count') || $this.text();

        $({ countNum: $this.text() }).animate({
            countNum: countTo
        }, {
            duration: 2000,
            easing: 'linear',
            step: function() {
                $this.text(Math.floor(this.countNum));
            },
            complete: function() {
                $this.text(this.countNum);
            }
        });
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/alyomhostorg/public_html/madar/resources/views/web/pages/pages/about.blade.php ENDPATH**/ ?>