<div class="header bg-gradient-primary pb-8 pt-5 pt-md-8">
    <div class="container-fluid">
        <div class="header-body">
            <!-- Card stats -->
            <div class="row">
                <div class="col-xl-3 col-lg-6">
                    <div class="card card-stats mb-xl-4 mb-4 mb-xl-0">
                        <div class="card-body">
                            <div class="row">
                                <div class="col">
                                    <h5 class="card-title text-uppercase text-muted mb-0">Total Users</h5>
                                    <span class="h2 font-weight-bold mb-0"><?php echo e($user->count()); ?></span>
                                </div>
                                <div class="col-auto">
                                    <div class="icon icon-shape bg-gradient-red text-white rounded-circle shadow">
                                        <i class="fas fa-users"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php $__currentLoopData = $setting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $set): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-xl-3 col-lg-6">
                        <div class="card card-stats mb-xl-4 mb-4 mb-xl-0">
                            <div class="card-body">
                                <div class="row">
                                 
                                    <?php
                                    $name =str_replace('_',' ',ucfirst($set['name']));
                                    $value = str_replace(', ',' - ',ucfirst($set['value']));
                                    ?>

                                    <?php if($set['name'] =='BONUS_CREDIT' ): ?>
                                        <div class="col">
                                            <h5 class="card-title text-uppercase text-muted mb-0"><?php echo e($name); ?></h5>
                                            <span class="h2 font-weight-bold mb-0"><?php echo e($value); ?></span>
                                        </div>
                                        <div class="col-auto">
                                            <div class="icon icon-shape bg-gradient-orange text-white rounded-circle shadow">
                                                <i class="fas fa-chart-pie"></i>
                                            </div>
                                        </div>
                                        <?php elseif($set['name'] =='CHECK_IN_CREDIT'): ?>
                                        <div class="col">
                                            <h5 class="card-title text-uppercase text-muted mb-0"><?php echo e($name); ?></h5>
                                            <span class="h2 font-weight-bold mb-0"><?php echo e($checkin['checkInStart'].'-'.$checkin['checkInEnd']); ?></span>
                                        </div>
                                        <div class="col-auto">
                                            <div class="icon icon-shape bg-gradient-green text-white rounded-circle shadow">
                                                <i class="fas fa-drafting-compass"></i>
                                            </div>
                                        </div>
                                        <?php elseif($set['name'] =='REFERRAL_CREDIT'): ?>
                                        <div class="col">
                                            <h5 class="card-title text-uppercase text-muted mb-0"><?php echo e($name); ?></h5>
                                            <span class="h2 font-weight-bold mb-0"><?php echo e($friends['inviteFriendsStart'].'-'.$friends['inviteFriendsEnd']); ?></span>
                                        </div>
                                        <div class="col-auto">
                                            <div class="icon icon-shape bg-gradient-info text-white rounded-circle shadow">
                                                <i class="fas fa-user-tag"></i>
                                            </div>
                                        </div>
                                      

                                        <?php elseif($set['name'] =='STARTING_CREDIT'): ?>
                                        <div class="col">
                                            <h5 class="card-title text-uppercase text-muted mb-0"><?php echo e($name); ?></h5>
                                            <span class="h2 font-weight-bold mb-0"><?php echo e($value); ?></span>
                                        </div>
                                        <div class="col-auto">
                                            <div class="icon icon-shape bg-gradient-info text-white rounded-circle shadow">
                                                <i class="fas fa-hourglass-start"></i>
                                            </div>
                                        </div>
                                        
                                        <?php elseif($set['name'] =='WATCH_VIDEOS_CREDIT'): ?>
                                        <div class="col">
                                            <h5 class="card-title text-uppercase text-muted mb-0"><?php echo e($name); ?></h5>
                                            <span class="h2 font-weight-bold mb-0"><?php echo e($videoad['videoAdStart'].'-'.$videoad['videoAdEnd']); ?></span>
                                        </div>
                                        <div class="col-auto">
                                            <div class="icon icon-shape bg-gradient-info text-white rounded-circle shadow">
                                                <i class="fas fa-play-circle"></i>
                                            </div>
                                        </div>
                                        

                                    <?php endif; ?>

                            
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\new_freecall\resources\views/layouts/headers/cards.blade.php ENDPATH**/ ?>