<div class="container-fluid">
    <br>
    <div class="col-sm-6">
        <?php if($user->passport!=NULL): ?>
            <img src="<?php echo e($path1); ?><?php echo e($user->passport); ?>" class="img-rounded" style="max-height: 120px;">
        <?php elseif($user->avatar!=NULL): ?>
            <img src="<?php echo e($user->avatar); ?>" class="img-rounded" style="max-height: 120px;">
        <?php else: ?>
            <img src="<?php echo e($path); ?>user.png" class="img-rounded" style="max-height: 120px;">
        <?php endif; ?>
        <table class="table table-striped table-hover">
            <tr>
                <th>SUBSCRIPTION STATUS</th>
                <td>
                    <?php if($user->sub_count=='0'): ?>
                        <span class="text-danger">NEVER SUBSCRIBED</span>
                    <?php elseif($user->subscription_status==NULL || $user->subscription_status=='0'): ?>
                        <span class="text-danger">EXPIRED</span>
                    <?php else: ?>
                        <span class="text-success">ACTIVE</span>
                    <?php endif; ?>
                </td>
            </tr>
            <?php if($user->subscription_status=='1'): ?>
                <tr>
                    <th>SUBSCRIPTION TYPE</th>
                    <td><?php echo e($user->sub->category); ?> Tips (<?php echo e($user->sub->planName); ?>)</td>
                </tr>
            <?php endif; ?>
            <tr>
                <th>LAST SUBSCRIPTION</th>
                <td><?php echo e(\Carbon\Carbon::parse($user->date_subscribed)->format('l j M, Y : h ia')); ?></td>
            </tr>
<?php /*            <?php if($user->subscription_status=='1'): ?>*/ ?>
                <tr>
                    <th>NEXT DUE DATE</th>
                    <td><?php echo e(\Carbon\Carbon::parse($user->next_due_date)->format('l j M, Y : h ia')); ?></td>
                </tr>
            <?php /*<?php endif; ?>*/ ?>
            <tr>
                <th>SUBSCRIPTION COUNT</th>
                <td><?php echo e($user->sub_count); ?></td>
            </tr>
        </table>

    </div>
    <div class="col-sm-6">
        <table class="table table-striped table-hover">
            <tr>
                <th>FULL NAME</th>
                <td><?php echo e($user->full_name); ?></td>
            </tr>
            <tr>
                <th>USERNAME</th>
                <td><?php echo e($user->username); ?></td>
            </tr>
            <tr>
                <th>EMAIL ADDRESS</th>
                <td><?php echo e($user->email); ?></td>
            </tr>
            <?php if($user->phone!=NULL): ?>
                <tr>
                    <th>PHONE NUMBER</th>
                    <td><?php echo e($user->phone); ?></td>
                </tr>
            <?php endif; ?>
            <?php if($user->state!=NULL): ?>
                <tr>
                    <th>STATE</th>
                    <td><?php echo e($user->state); ?></td>
                </tr>
            <?php endif; ?>
            <?php if($user->country!=NULL): ?>
                <tr>
                    <th>COUNTRY</th>
                    <td><?php echo e($user->country); ?></td>
                </tr>
            <?php endif; ?>
        </table>
    </div>

</div>
