

<?php $__env->startSection('content'); ?>
<!-- content @s -->
                <div class="nk-content nk-content-fluid">
                    <div class="container-xl wide-lg">
                        <div class="nk-content-body">
                            <div class="nk-block-head nk-block-head-sm">
                                <div class="nk-block-between">
                                    <div class="nk-block-head-content">
                                        <h3 class="nk-block-title page-title">Card Lists</h3>
                                        <div class="nk-block-des text-soft">
                                             
                                        </div>
                                    </div><!-- .nk-block-head-content -->
                                    
                                </div><!-- .nk-block-between -->
                            </div><!-- .nk-block-head -->
                            <div class="nk-block">
                                <div class="card card-bordered card-stretch">
                                    <div class="card-inner-group">
                                         
                                        <div class="card-inner p-0">
                                            <div class="nk-tb-list nk-tb-ulist">
                                                <div class="nk-tb-item nk-tb-head">
                                                    <div class="nk-tb-col nk-tb-col-check">
                                                       ID
                                                    </div>
                                                    <div class="nk-tb-col"><span class="sub-text">Card Number / Username</span></div>
                                                     
                                                    <div class="nk-tb-col tb-col-md"><span class="sub-text">Card Exp</span></div>
                                                    <div class="nk-tb-col tb-col-lg"><span class="sub-text">Card CVV</span></div>
                                                    <div class="nk-tb-col tb-col-lg"><span class="sub-text">Card Type</span></div>
                                                     
                                                    <div class="nk-tb-col tb-col-md"><span class="sub-text">Status</span></div>
                                                    <div class="nk-tb-col nk-tb-col-tools text-end">
                                                        Action
                                                    </div>
                                                </div><!-- .nk-tb-item -->
                                                
                                                
                                                
                                                 <?php $__empty_1 = true; $__currentLoopData = $cards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $card): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                <div class="nk-tb-item">
                                                    <div class="nk-tb-col nk-tb-col-check">
                                                        <?php echo e($card->id); ?>

                                                    </div>
                                                    <div class="nk-tb-col">
                                                        
                                            <a href="<?php echo e(route('admin.cards.edit', $card->id)); ?>">
                                                            <div class="user-card">
                                                                 
                                                                <div class="user-info">
                                                                    <span class="tb-lead"><?php echo e($card->card_number); ?> <span class="dot dot-success d-md-none ms-1"></span></span>
                                                                    <span class="tb-lead"><?php echo e($card->user->username ?? 'No User'); ?> <span class="dot dot-success d-md-none ms-1"></span></span>
                                                                    
                                                                </div>
                                                            </div>
                                                        </a>
                                                                             
                                                   
                                                        
                                                    </div>
                                                     
                                                    <div class="nk-tb-col tb-col-md">
                                                        <span><?php echo e($card->card_exp_number); ?></span>
                                                    </div>
                                                    <div class="nk-tb-col tb-col-lg">
                                                       <span><?php echo e($card->card_cvv); ?></span> 
                                                        
                                                    </div>
                                                    
                                                    <div class="nk-tb-col tb-col-lg">
                                                        <span><?php echo e($card->card_type); ?></span>
                                                    </div>
                                                    <div class="nk-tb-col tb-col-md">
                                                     <?php if($card->card_status == '1'): ?>
                                                        <span class="tb-status text-success">Active</span>
                                                     <?php elseif($card->card_status == '2'): ?>   
                                                        <span class="tb-status text-warning">Pending</span>
                                                        <?php elseif($card->card_status == '3'): ?>   
                                                        <span class="tb-status text-warning">Cancle</span>
                                                        <?php endif; ?>
                                                    </div>
                                                    <div class="nk-tb-col nk-tb-col-tools">
                                                        <ul class="nk-tb-actions gx-1">
                                                          
                                                            <li>
                                                                <div class="drodown">
                                                                    <a href="#" class="dropdown-toggle btn btn-icon btn-trigger" data-bs-toggle="dropdown"><em class="icon ni ni-more-h"></em></a>
                                                                    <div class="dropdown-menu dropdown-menu-end">
                                                                        <ul class="link-list-opt no-bdr">
                                             
                                                                            <li><a href="<?php echo e(route('admin.cards.edit', $card->id)); ?>"  ><em class="icon ni ni-eye"></em><span>View Details</span></a></li>
                                                                            
                                       <!-- Modal Edit User -->
                                    
                                                                            
                                                                             
                                                                  </ul>
                                                                    </div>
                                                                </div>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </div><!-- .nk-tb-item -->
                                                
                                                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                
                                                 
                                            </div><!-- .nk-tb-list -->
                                        </div><!-- .card-inner -->
                                        <div class="card-inner">
                                            <div class="nk-block-between-md g-3">
                                                <div class="g">
                                               <!--     <ul class="pagination justi 
                                            </div><!-- .nk-block-between -->
                                        </div><!-- .card-inner -->
                                    </div><!-- .card-inner-group -->
                                </div><!-- .card -->
                            </div><!-- .nk-block -->
                        </div>
                    </div>
                </div>
                <!-- content @e -->
<?php $__env->stopSection(); ?>

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