
<?php $__env->startSection('title'); ?>
    <title><?php echo e($websiteLang->where('lang_key','pricing_plan')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('user-dashboard'); ?>
<div class="row">
    <div class="col-xl-9 ms-auto">
        <div class="wsus__dashboard_main_content">
          <div class="wsus__my_property">
            <h4 class="heading"><?php echo e($websiteLang->where('lang_key','pricing_plan')->first()->custom_text); ?></h4>
            <div class="row">
              <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-xl-6 col-xxl-4 col-md-6 col-lg">
                    <div class="wsus__single_price">
                    <h4><?php echo e($item->package_name); ?></h4>
                    <div class="wsus__round_area">
                        <h3><?php echo e($currency->currency_icon); ?><?php echo e($item->price); ?></h3>
                        <?php if($item->number_of_days==-1): ?>
                        <p><?php echo e($websiteLang->where('lang_key','unlimited')->first()->custom_text); ?></p>
                        <?php else: ?>
                        <p><?php echo e($item->number_of_days); ?> <?php echo e($websiteLang->where('lang_key','days')->first()->custom_text); ?></p>
                        <?php endif; ?>
                        <i class="fab fa-canadian-maple-leaf right"></i>
                    </div>
                    <ul>

                        <?php if($item->number_of_property==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_pro_submission')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_property); ?> <?php echo e($websiteLang->where('lang_key','pro_submission')->first()->custom_text); ?></li>
                        <?php endif; ?>

                        <?php if($item->number_of_aminities==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_aminity')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_aminities); ?> <?php echo e($websiteLang->where('lang_key','aminity')->first()->custom_text); ?></li>
                        <?php endif; ?>

                        <?php if($item->number_of_nearest_place==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_nearest_place')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_nearest_place); ?> <?php echo e($websiteLang->where('lang_key','nearest_place')->first()->custom_text); ?></li>
                        <?php endif; ?>
                        <?php if($item->number_of_photo==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_photo')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_photo); ?> <?php echo e($websiteLang->where('lang_key','photo')->first()->custom_text); ?></li>
                        <?php endif; ?>

                        <?php if($item->is_featured==1): ?>
                            <li><?php echo e($websiteLang->where('lang_key','featured_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li class="delete"><?php echo e($websiteLang->where('lang_key','featured_property')->first()->custom_text); ?></li>
                        <?php endif; ?>

                        <?php if($item->number_of_feature_property==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_feature_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_feature_property); ?> <?php echo e($websiteLang->where('lang_key','featured_property')->first()->custom_text); ?></li>
                        <?php endif; ?>


                        <?php if($item->is_top==1): ?>
                            <li><?php echo e($websiteLang->where('lang_key','top_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li class="delete"><?php echo e($websiteLang->where('lang_key','top_property')->first()->custom_text); ?></li>
                        <?php endif; ?>
                        <?php if($item->number_of_top_property==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_top_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_top_property); ?> <?php echo e($websiteLang->where('lang_key','top_property')->first()->custom_text); ?></li>
                        <?php endif; ?>


                        <?php if($item->is_urgent==1): ?>
                            <li><?php echo e($websiteLang->where('lang_key','urgent_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li class="delete"><?php echo e($websiteLang->where('lang_key','urgent_property')->first()->custom_text); ?></li>
                        <?php endif; ?>
                        <?php if($item->number_of_urgent_property==-1): ?>
                        <li><?php echo e($websiteLang->where('lang_key','unlimited_urgent_property')->first()->custom_text); ?></li>
                        <?php else: ?>
                        <li><?php echo e($item->number_of_urgent_property); ?> <?php echo e($websiteLang->where('lang_key','urgent_property')->first()->custom_text); ?></li>
                        <?php endif; ?>
                    </ul>
                    <?php if($item->package_type == 0): ?>
                    <a href="javascript:;" onclick="freeEnroll('<?php echo e($item->id); ?>')" class="common_btn"><?php echo e($websiteLang->where('lang_key','start_with')->first()->custom_text); ?> <?php echo e($item->package_name); ?></a>
                    <?php else: ?>

                    <a href="<?php echo e(route('user.purchase.package',$item->id)); ?>" class="common_btn"><?php echo e($websiteLang->where('lang_key','start_with')->first()->custom_text); ?> <?php echo e($item->package_name); ?></a>
                    <?php endif; ?>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        </div>
    </div>
</div>


<script>
    function freeEnroll(id){
        Swal.fire({
            title: "<?php echo e($websiteLang->where('lang_key','are_you_sure')->first()->custom_text); ?>",
            text: "<?php echo e($websiteLang->where('lang_key','upgrade_plan')->first()->custom_text); ?>",
            icon: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: "<?php echo e($websiteLang->where('lang_key','enrol_it')->first()->custom_text); ?>",
            cancelButtonText: "<?php echo e($websiteLang->where('lang_key','cancel')->first()->custom_text); ?>",
        }).then((result) => {
            if (result.isConfirmed) {
                Swal.fire(
                    "<?php echo e($websiteLang->where('lang_key','enrolled')->first()->custom_text); ?>",
                    "<?php echo e($websiteLang->where('lang_key','free_enroll')->first()->custom_text); ?>",
                    'success'
                )
                location.href = "<?php echo e(url('user/purchase-package/')); ?>" + "/" + id;
            }
        })
    }
</script>


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

<?php echo $__env->make('layouts.user.profile.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\AR-8u191-IT\well-known (1)\resources\views/user/profile/pricing-plan.blade.php ENDPATH**/ ?>