<?php $__env->startSection('content'); ?>
<div class="row">
    <!-- Column -->
    <div class="col-lg-4 col-xlg-3 col-md-5">
        <!-- Column -->
        <div class="card">
            <img class="card-img-top" src="<?php echo e(url('/')); ?>/assets/images/background/profile-bg.jpg" alt="Card image cap">
            <div class="card-body little-profile text-center">
                <div class="pro-img"><img src="<?php echo e(url('/')); ?>/assets/images/users/1.jpg" alt="user"></div>
                <h3 class="m-b-0"><?php echo e($user->full_name); ?></h3>
                <p>
                    <i>
                        <?php echo e($user->username); ?>&nbsp;&nbsp;
                         <?php if($user->active == 1): ?>
                             <span class="badge badge-success">Active</span>
                         <?php else: ?>
                            <span class="badge badge-danger">In-Active</span>
                         <?php endif; ?>
                    </i>
                </p>
                <a href="<?php echo e(url('/')); ?>/profile" class="m-t-10 waves-effect waves-dark btn btn-primary btn-md btn-rounded">My Profile</a>
                <div class="row text-center m-t-20">
                    <div class="col-lg-4 col-md-4 m-t-20">
                        <h3 class="m-b-0 font-light"><?php echo e($direct_count); ?></h3><small>My Direct</small></div>
                    <div class="col-lg-4 col-md-4 m-t-20">
                        <h3 class="m-b-0 font-light"><?php echo e($downlines_count); ?></h3><small>Downlines</small></div>
                    <div class="col-lg-4 col-md-4 m-t-20">
                        <h3 class="m-b-0 font-light"><?php echo e($downlines_active_count); ?></h3><small>Active Downlines</small></div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-8 col-xlg-9 col-md-7">
        <div class="card">
            <!-- Nav tabs -->
            <ul class="nav nav-tabs profile-tab" role="tablist">
                <li class="nav-item active"> <a class="nav-link" data-toggle="tab" href="#profile" role="tab">Profile</a> </li>
                <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#settings" role="tab">Settings</a> </li>
            </ul>
            <!-- Tab panes -->
            <div class="tab-content">
                <div class="tab-pane active" id="profile" role="tabpanel">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-3 col-xs-6 b-r"> <strong>PAN No.</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->panno); ?></p>
                            </div>
                            <div class="col-md-3 col-xs-6 b-r"> <strong>Mobile</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->mobileno); ?></p>
                            </div>
                            <div class="col-md-3 col-xs-6 b-r"> <strong>Email</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->email); ?></p>
                            </div>
                            <div class="col-md-3 col-xs-6"> <strong>Joining Date</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->created_at); ?></p>
                            </div>
                            <div class="col-md-3 col-xs-6"> <strong>Date of Activation</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->activated_at); ?></p>
                            </div>
                            <div class="col-md-3 col-xs-6"> <strong>Sponsor ID</strong>
                                <br>
                                <p class="text-muted"><?php echo e($user->sponsor); ?></p>
                            </div>
                        </div>
                        
                        <hr>
                        <h5 class="m-t-30">Payout Vs Business <span class="pull-right">0%</span></h5>
                        <div class="progress">
                            <div class="progress-bar bg-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:5%; height:6px;"> <span class="sr-only">0% Paid</span> </div>
                        </div>
                        <hr>
                        <h4 class="font-medium m-t-30">News</h4>
                        <?php if(count($news)>0): ?>
                          <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nws): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <p><strong><?php echo e(strtoupper($nws->title)); ?></strong> - <i><?php echo e($nws->created_at); ?></i></p>
                            <p><?php echo e($nws->content); ?></p>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                   </div>
                </div>
                <div class="tab-pane" id="settings" role="tabpanel">
                    <div class="card-body">
                        <h4 class="font-medium">Update Password</h4>
                        <form class="form-horizontal form-material" action="<?php echo e(url('/profile')); ?>" method="post">
                            <input name="_method" type="hidden" value="PUT">
                            <?php echo e(csrf_field()); ?>

                            <div class="form-group">
                              <label class="control-label col-md-12 col-sm-12 col-xs-12" for="first-name">Old Password <span class="required">*</span>
                              </label>
                              <div class="col-md-12 col-sm-12 col-xs-12">
                                <input type="password" id="old-password" name="old_password" required="required" class="form-control col-md-7 col-xs-12" value="">
                              </div>
                            </div>
                            <div class="form-group">
                              <label class="control-label col-md-12 col-sm-12 col-xs-12" for="last-name">New Password <span class="required">*</span>
                              </label>
                              <div class="col-md-12 col-sm-12 col-xs-12">
                                <input type="password" id="new-password" name="new_password" required="required" class="form-control col-md-7 col-xs-12" value="">
                                <?php if($errors->has('new_password')): ?>
                                    <span class="help-block">
                                        <strong><?php echo e($errors->first('new_password')); ?></strong>
                                    </span>
                                <?php endif; ?>
                              </div>
                            </div>
                            <div class="form-group">
                              <label for="middle-name" class="control-label col-md-12 col-sm-12 col-xs-12">Confirm New Password <span class="required">*</span></label>
                              <div class="col-md-12 col-sm-12 col-xs-12">
                                <input id="new-password-confirmation" class="form-control col-md-7 col-xs-12" name="new_password_confirmation" type="password" value="" required="required">
                              </div>
                            </div>
                            <div class="ln_solid"></div>
                            <div class="form-group">
                              <div class="col-md-12 col-sm-12 col-xs-12 col-md-offset-3">
                                <button type="submit" class="btn btn-success">Update</button>
                              </div>
                            </div>
                        </form>
                        <hr>
                      <h4 class="font-medium">Update Transaction Password</h4>
                      <form id="update-password" action="<?php echo e(url('/profile')); ?>" method="post" data-parsley-validate class="form-horizontal form-label-left">
                        <input name="_method" type="hidden" value="PUT">
                        <?php echo e(csrf_field()); ?>

                        <div class="form-group">
                          <label class="control-label col-md-12 col-sm-12 col-xs-12" for="first-name">Old Trx. Password <span class="required">*</span>
                          </label>
                          <div class="col-md-12 col-sm-12 col-xs-12">
                            <input type="password" id="old-trx-password" name="old_trx_password" required="required" class="form-control col-md-7 col-xs-12" value="">
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="control-label col-md-12 col-sm-12 col-xs-12" for="last-name">New Trx. Password <span class="required">*</span>
                          </label>
                          <div class="col-md-12 col-sm-12 col-xs-12">
                            <input type="password" id="new-trx-password" name="new_trx_password" required="required" class="form-control col-md-7 col-xs-12" value="">
                            <?php if($errors->has('new_trx_password')): ?>
                                <span class="help-block">
                                    <strong><?php echo e($errors->first('new_trx_password')); ?></strong>
                                </span>
                            <?php endif; ?>
                          </div>
                        </div>
                        <div class="form-group">
                          <label for="middle-name" class="control-label col-md-12 col-sm-12 col-xs-12">Confirm New Trx. Password <span class="required">*</span></label>
                          <div class="col-md-12 col-sm-12 col-xs-12">
                            <input id="new-password-confirmation" class="form-control col-md-7 col-xs-12" name="new_trx_password_confirmation" type="password" value="" required="required">
                          </div>
                        </div>
                        <div class="ln_solid"></div>
                        <div class="form-group">
                          <div class="col-md-12 col-sm-12 col-xs-12 col-md-offset-3">
                            <button type="submit" class="btn btn-success">Update</button>
                          </div>
                        </div>

                      </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<style type="text/css">
.profile-tab li a.nav-link,
.customtab li a.nav-link {
  border: 0px;
  padding: 15px 20px;
  color: #99abb4; }
  .profile-tab li.active a.nav-link,
  .customtab li.active a.nav-link {
    border-bottom: 2px solid #e67f22 !important;
    color: #e67f22 !important; }
  .profile-tab li a.nav-link:hover,
  .customtab li a.nav-link:hover {
    color: #e67f22 !important; }

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH G:\xampp\htdocs\yeselectricv.loc\resources\views/home.blade.php ENDPATH**/ ?>