
<table class="table table-striped">
                        <thead class="border-bottom">
                            <tr>
                                <th>S.No.</th>
                                <th>User Name</th>
                                <th>Email</th>
                                <th>Sub ID</th>
                                <th>Plan Type</th>
                                <th>Amount</th> 
                                <th>Start Date</th> 
                                <th>End Date</th> 
                                <th>Interval</th> 
                                <th>Sub. Status</th>
                                <th>Payment Status</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e(++$key); ?></td>
                                    <td>
                                        <?php if($sub->user!=null): ?>
                                            
                                            <?php echo e($sub->user->name); ?>

                                        <?php else: ?>
                                            N/A
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <?php if($sub->user!=null): ?>
                                            <?php echo e($sub->user->email); ?>

                                        <?php else: ?>
                                            N/A
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <?php echo $sub->stripe_subscription_id != 'Free Trial' ? '<a href="https://dashboard.stripe.com/test/subscriptions/'.$sub->stripe_subscription_id.'">'.$sub->stripe_subscription_id.'</a>' : $sub->stripe_subscription_id; ?>

                                    </td>
                                    <td>
                                        <?php if($sub->is_trial==1): ?>
                                            Free Trial
                                        <?php else: ?>
                                            <?php if($sub->plan!=null): ?>
                                                <?php echo e($sub->plan->name); ?>

                                            <?php else: ?>
                                                N/A
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </td>
                                    <td>$<?php echo e($sub->amount); ?></td>
                                    <td>
                                        <?php echo e(date('Y/m/d',strtotime($sub->start_at)).' at '.date('h:i:s a',strtotime($sub->start_at))); ?>

                                    </td>
                                    <td>
                                        <?php echo e(date('Y/m/d',strtotime($sub->end_at))); ?>

                                    </td>
                                    <td>
                                        <?php if($sub->is_trial==1): ?>
                                            7 Days
                                        <?php else: ?>
                                            <?php if($sub->plan!=null): ?>
                                                <?php echo e(ucfirst($sub->plan->interval)); ?>

                                            <?php else: ?>
                                                N/A
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <?php echo e(ucfirst($sub->status)); ?>

                                    </td>
                                    <td>
                                        <?php if($sub->is_trial==1): ?>
                                            <span class="text-success">--</span>
                                        <?php else: ?>
                                            <?php if($sub->payment_status==1): ?>
                                                <span class="text-success">Success</span>
                                            <?php else: ?>
                                                <span class="text-danger">Failed</span>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>

                    <!-- Pagination Links -->
                    <div class="pagination-wrapper mb-4">
                        <?php echo e($list->links()); ?>

                    </div>
<?php /**PATH /var/www/html/quikwise-admin/resources/views/admin/revenue/list.blade.php ENDPATH**/ ?>