<?php $__env->startSection('content'); ?>

    <div class="right-side">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <!-- Starting of Dashboard User Details -->
                    <div class="section-padding add-product-1">
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="add-product-box">
                                    <div class="add-product-header">
                                        <h2>User Details</h2>
                                        <a href="<?php echo url('admin/users'); ?>" class="add-newProduct-btn"><i class="fa fa-arrow-left"></i> back</a>
                                    </div>
                                    <hr/>
                                    <div class="table-responsive order-details-table">
                                        <table class="table">
                                            <tr>
                                                <th>User ID#</th>
                                                <td><?php echo e($customer->id); ?></td>
                                            </tr>
                                            <tr>
                                                <th>Account Status:</th>
                                                <?php if($customer->status != 0): ?>
                                                    <td style="color: #008000;"> <strong>Active</strong></td>
                                                <?php else: ?>
                                                    <td style="color: #ff0000;"><strong>Banned</strong></td>
                                                <?php endif; ?>
                                            </tr>
                                            <tr>
                                                <th>User Name:</th>
                                                <td><?php echo e($customer->name); ?></td>
                                            </tr>
                                            <tr>
                                                <th>User Email:</th>
                                                <td><?php echo e($customer->email); ?></td>
                                            </tr>
                                            <tr>
                                                <th>User Phone:</th>
                                                <td><?php echo e($customer->phone); ?></td>
                                            </tr>
                                            <tr>
                                                <th>Country:</th>
                                                <td><?php echo e($customer->country); ?></td>
                                            </tr>
                                            <tr>
                                                <th>Campaign Created:</th>
                                                <td><?php echo e(\App\Campaign::where('createdby',$customer->id)->count()); ?></td>
                                            </tr>
                                            <tr>
                                                <th>Joined:</th>
                                                <td><?php echo e($customer->created_at->diffForHumans()); ?></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <hr/>
                                    <a href="email/<?php echo e($customer->id); ?>" class="btn add-product_btn order-details"><i class="fa fa-send"></i> contact customer</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Ending of Dashboard User Details -->

                </div>
            </div>
        </div>
    </div>

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

<?php $__env->startSection('footer'); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.includes.masterpage-admin', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>