
<?php $__env->startSection('title'); ?>
<title><?php echo e($websiteLang->where('lang_key','order')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary"><?php echo e($websiteLang->where('lang_key','order_table')->first()->custom_text); ?></h6>
        </div>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">

                    <thead>
                        <tr>
                            <th width="5%"><?php echo e($websiteLang->where('lang_key','serial')->first()->custom_text); ?></th>
                            <th width="10%"><?php echo e($websiteLang->where('lang_key','agent_s')->first()->custom_text); ?></th>
                            <th width="10%"><?php echo e($websiteLang->where('lang_key','email')->first()->custom_text); ?></th>
                            <th width="10%"><?php echo e($websiteLang->where('lang_key','package_s')->first()->custom_text); ?></th>
                            <th width="15%"><?php echo e($websiteLang->where('lang_key','purchase_date')->first()->custom_text); ?></th>
                            <th width="15%"><?php echo e($websiteLang->where('lang_key','expired_date')->first()->custom_text); ?></th>
                            <th width="5%"><?php echo e($websiteLang->where('lang_key','price')->first()->custom_text); ?></th>
                            <th width="5%"><?php echo e($websiteLang->where('lang_key','status')->first()->custom_text); ?></th>
                            <th width="10%"><?php echo e($websiteLang->where('lang_key','action')->first()->custom_textt); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e(++$index); ?></td>
                            <td><?php echo e($order->user->name); ?></td>
                            <td><?php echo e($order->user->email); ?></td>
                            <td><?php echo e($order->package->package_name); ?></td>
                            <td><?php echo e($order->purchase_date); ?></td>
                            <td>
                                <?php if($order->expired_date==null): ?>
                                <?php echo e($websiteLang->where('lang_key','unlimited')->first()->custom_text); ?>

                                <?php else: ?>
                                    <?php echo e($order->expired_date); ?>

                                <?php endif; ?>
                            </td>
                            <td><?php echo e($order->currency_icon); ?><?php echo e($order->amount_real_currency); ?></td>
                            <td>
                                <?php if($order->status==1): ?>
                                    <?php if($order->expired_date==null): ?>
                                        <span class="badge badge-success"><?php echo e($websiteLang->where('lang_key','active')->first()->custom_text); ?></span>
                                    <?php else: ?>
                                        <?php if(date('Y-m-d') < $order->expired_date): ?>
                                        <span class="badge badge-success"><?php echo e($websiteLang->where('lang_key','active')->first()->custom_text); ?></span>
                                        <?php else: ?>
                                        <span class="badge badge-danger"><?php echo e($websiteLang->where('lang_key','expired')->first()->custom_text); ?></span>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                <?php else: ?>
                                <span class="badge badge-danger"><?php echo e($websiteLang->where('lang_key','expired')->first()->custom_text); ?></span>
                                <?php endif; ?>

                            </td>
                            <td>
                                <a onclick="return confirm('<?php echo e($confirmNotify); ?>')" href="<?php echo e(route('admin.order-delete',$order->id)); ?>" class="btn btn-danger btn-sm"><i class="fas fa-trash" aria-hidden="true"></i></a>
                                <a href="<?php echo e(route('admin.order-show',$order->id)); ?>" class="btn btn-success btn-sm"><i class="fas fa-eye" aria-hidden="true"></i></a>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>


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

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