
<?php $__env->startSection('title'); ?>
    <title><?php echo e($websiteLang->where('lang_key','order')->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">
          <h4 class="heading"><?php echo e($websiteLang->where('lang_key','order')->first()->custom_text); ?></h4>
          <div class="wsus__dash_order mb_25">
            <div class="table-responsive">
              <table class="table">
                <tbody>
                  <tr>
                    <th  class="serial"><?php echo e($websiteLang->where('lang_key','serial')->first()->custom_text); ?></th>
                    <th class="package"><?php echo e($websiteLang->where('lang_key','package')->first()->custom_text); ?></th>
                    <th class="p_date"><?php echo e($websiteLang->where('lang_key','purchase_date')->first()->custom_text); ?></th>
                    <th class="e_date"><?php echo e($websiteLang->where('lang_key','expired_date')->first()->custom_text); ?></th>
                    <th class="price"><?php echo e($websiteLang->where('lang_key','price')->first()->custom_text); ?></th>
                    <th  class="action"><?php echo e($websiteLang->where('lang_key','action')->first()->custom_text); ?></th>

                  </tr>
                    <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="serial"><?php echo e(++$index); ?></td>
                        <td class="package">
                            <?php echo e($order->package->package_name); ?>

                            <br>
                            <?php if($order->status==1): ?>
                                <?php if($order->expired_date==null): ?>
                                    <span class="custom-badge"><?php echo e($websiteLang->where('lang_key','currently_active')->first()->custom_text); ?></span>
                                <?php else: ?>
                                    <?php if(date('Y-m-d') < $order->expired_date): ?>
                                        <span class="custom-badge"><?php echo e($websiteLang->where('lang_key','currently_active')->first()->custom_text); ?></span>
                                    <?php endif; ?>
                                <?php endif; ?>
                            <?php endif; ?>

                        </td>
                        <td class="p_date"><?php echo e($order->purchase_date); ?></td>
                        <td class="e_date"><?php echo e($order->expired_date == null ? $websiteLang->where('lang_key','unlimited')->first()->custom_text :$order->expired_date); ?></td>
                        <td class="price"><?php echo e($order->currency_icon); ?><?php echo e($order->amount_real_currency); ?></td>
                        <td class="action">
                            <a href="<?php echo e(route('user.order.details',$order->id)); ?>"> <i class="fa fa-eye" aria-hidden="true"></i> </a>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
              </table>
            </div>
          </div>
          <?php echo e($orders->links('user.paginator')); ?>

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

<?php echo $__env->make('layouts.user.profile.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/user/profile/order/index.blade.php ENDPATH**/ ?>