<?php $__env->startSection('content'); ?>
     <section class="inner_header">
            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/inner.svg" alt="" class="inner_shap">
            <div class="container">
                <ul class="links">
                    <li>
                         <a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><i class="bi bi-house"></i></a>
                    </li>
                    <li>
                        <a href="<?php echo e(url(getCurrentLocale().'/package')); ?>"> <?php echo e(__('web.sub_details')); ?> </a>
                    </li>
                </ul>
                <h4> <?php echo e(__('web.sub_details')); ?> </h4>
            </div>
        </section>
    <!--End-inner_header-->
    <!--Contents-->
    <main>
        <!-- -------------- subscribe_det --------------- -->
        <section class="subscribe_det section_padding">
            <div class="container">
                <div class="section_head">
                    <h2><?php echo e(__('web.subscription')); ?></h2>
                    <!--<h6><?php echo e(__('web.sub_desc')); ?></h6>-->
                </div>
                <div class="subscribe_content">
                    <div class="row align-items-center">
                        <div class="col-lg-6">
                            <div class="r_side">
                                <div class="sub_head">
                                    <p><?php echo e(packagedescription($package->id,'name')); ?></p>
                                     <?php if(is_null($package->cost_after)): ?>
                                    <p class="d-inline-block"> <strong> <?php echo e($package->cost); ?>  </strong> <?php echo e(__('web.sar')); ?> <span> /<?php echo e(__('web.yearly')); ?> </span>  </p>
                                    <?php else: ?> 
                                    <p class="d-inline-block"> <strong> <?php echo e($package->cost_after); ?>  </strong> <?php echo e(__('web.sar')); ?> <span> /<?php echo e(__('web.yearly')); ?> </span>  </p>
                                    <small> <strong> <?php echo e($package->cost); ?> </strong> <?php echo e(__('web.sar')); ?> <span> /<?php echo e(__('web.yearly')); ?> </span> </small>
                                   <span class="butn"><?php $per = round(100 - (($package->cost_after/$package->cost )*100)); ?>
                                        <span><?php echo e(__('web.saling')); ?>  <?php echo e($per); ?> %</span>
                                    </span>
                                    <?php endif; ?>
                                    
                                </div>
                              <!--  <div class="sub_head">-->
                              <!--    <h6><?php echo e(packagedescription($package->id,'name')); ?></h6>-->
                              <!--      <h5> <strong><?php if(is_null($package->cost_after)): ?> <?php echo e($package->cost); ?> <?php else: ?> <?php echo e($package->cost_after); ?> <?php endif; ?></strong> <?php echo e(__('web.sar')); ?> <span> /<?php echo e(__('web.yearly')); ?> </span> </h5>-->
                              <!--</div>-->
                               <?php echo packagedescription($package->id,'details'); ?>

                              
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="l_side text-center py-4">
                                <a  class="butn main_color w-50" <?php if(\Auth::user()): ?> href="<?php echo e(url(getCurrentLocale().'/pay/package')); ?>"  <?php if(subscribed()): ?> data-toggle="modal" data-target="#modal_countdown" <?php endif; ?> <?php else: ?> href="<?php echo e(url(getCurrentLocale().'/regist')); ?>" <?php endif; ?>>
                                    <span><?php echo e(__('web.subscribe')); ?></span>
                                </a>
                            </div>
                        </div>
                    </div>
                    <img src="<?php echo e(url('')); ?>/assets/web/images/ab_shap.png" alt="" class="shap">
                </div>
            </div>
        </section>
    </main>
     <?php if(\Auth::user()): ?> <?php if(subscribed()): ?>
     
     <div class="modal fade modal_countdown" id="modal_countdown" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
        aria-hidden="true">
        <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-body text-center">
                    <h5 class="mb-4"><?php echo e(__('web.success')); ?></h5>
                    <p class="mb-1"><?php echo e(__('web.timetoend')); ?></p>
                    <div class="countdown-container">
                         <div class="cont-el days-c">
                            <p class="big-text" id="months"><?php echo e(subscribtion()['months']); ?></p>
                            <span><?php echo e(__('web.months')); ?></span>
                        </div>
                        <div class="cont-el days-c">
                            <p class="big-text" id="days"><?php echo e(subscribtion()['days']); ?></p>
                            <span><?php echo e(__('web.days')); ?></span>
                        </div>
                        <div class="cont-el hours-c">
                            <p class="big-text" id="hours"><?php echo e(subscribtion()['hours']); ?></p>
                            <span><?php echo e(__('web.hours')); ?></span>
                        </div>
                        <div class="cont-el mins-c">
                            <p class="big-text" id="mins"><?php echo e(subscribtion()['minutes']); ?></p>
                            <span><?php echo e(__('web.minutes')); ?></span>
                        </div>
                       
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php endif; ?> <?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/4u/resources/views/web/pages/packages/package.blade.php ENDPATH**/ ?>