




<?php $__env->startSection('content'); ?>
 <!-- Page Wrapper -->
 <div id="wrapper">

    <?php echo $__env->make('user.user_dashboard_sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

      <!-- Content Wrapper -->
      <div id="content-wrapper" class="d-flex flex-column">

          <!-- Main Content -->
          <div id="content">

              <!-- Topbar -->
              <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

                  <!-- Sidebar Toggle (Topbar) -->
                  <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
                      <i class="fa fa-bars"></i>
                  </button>

               

                  <!-- Topbar Navbar -->
                  <ul class="navbar-nav ml-auto">

                
                     

                      <div class="topbar-divider d-none d-sm-block"></div>

                      <!-- Nav Item - User Information -->
                      <li class="nav-item dropdown no-arrow">
                          <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
                              data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                              <span class="mr-2 d-none d-lg-inline text-gray-600 small">
                                  <?php if(Auth::guard('user_login')->check()): ?>
                                  <?php echo e(Auth::guard('user_login')->user()->name); ?>

                                  <?php endif; ?>
                              </span>
                              <img class="img-profile rounded-circle"
                                  src="img/undraw_profile.svg">
                          </a>
                          <!-- Dropdown - User Information -->
                          <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
                              aria-labelledby="userDropdown">
                              <a class="dropdown-item" href="#">
                                  <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
                                  Profile
                              </a>
                             
                              <div class="dropdown-divider"></div>
                              <a class="dropdown-item" href="" data-toggle="modal" data-target="#logoutModal">
                                  <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
                                  Logout
                              </a>
                          </div>
                      </li>

                  </ul>

              </nav>
              <!-- End of Topbar -->

              <!-- Begin Page Content -->
              <div class="container-fluid">
                <div class="row">
                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            <div class="card-body">
                                <a href="<?php echo e(url('user/invest/money/page')); ?>">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            User Total Package Buy (Total)
                                       
                                        </div>
                                        <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <?php if(isset($sssa)): ?>
                                            <?php echo e($sssa); ?> $
                                            <?php else: ?>
                                            0 Tk
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="col-auto">
                                        <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                    </div>
                                </div>
                            </a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-xl-2 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            <div class="card-body">
                                <a href="<?php echo e(url('/user/daily_porfit')); ?>">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            User Total Daily Profit (Total)
                                       
                                        </div>
                                        <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <?php if(isset($daily_profit)): ?>
                                            <?php echo e($daily_profit->total); ?> $
                                            <?php else: ?>
                                            0 Tk
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="col-auto">
                                        <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                    </div>
                                </div>
                            </a>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-2 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            <div class="card-body">
                                <a href="<?php echo e(url('user/daily_level')); ?>">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            User First Level Commission Profit (Total)</div>
                                        <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <?php if(isset($first_check)): ?>
                                            <?php echo e($first_check->total); ?> $
                                            <?php else: ?>
                                            0 Tk
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="col-auto">
                                        <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                    </div>
                                </div>
                            </a>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-2 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            <div class="card-body">
                                <a href="<?php echo e(url('/user/secend_level')); ?>">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            User Second Level Commission Profit (Total)</div>
                                        <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <?php if(isset($u_s)): ?>
                                            <?php echo e($u_s->total); ?> $
                                            <?php else: ?>
                                            0 Tk
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="col-auto">
                                        <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                    </div>
                                </div>
                            </a>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            <div class="card-body">
                                <a href="<?php echo e(url('/user/referred/balnce')); ?>">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            User Total Reference Balance (Total)</div>
                                        <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <?php if(isset($too)): ?>
                                            <?php echo e($too->ammount); ?> $
                                            <?php else: ?>
                                            0 Tk
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="col-auto">
                                        <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                    </div>
                                </div>
                            </a>
                            </div>
                        </div>
                    </div>

                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            
                            <div class="card-body">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            Request For Daily Profit Withdraw </div>
                                            <?php if(isset($daily_reject)): ?>
                                        
                                            <span class="badge badge-danger">Rejected Profit Requested Total: <?php echo e(count($daily_reject)); ?></span>
                                            <?php endif; ?>
                                           <?php if($ree): ?>
                                           <div class="alert alert-primary" role="alert">
                                            You Have Already Pending Request Of <?php echo e($ree->ammount); ?> Tk
                                          </div>
                                      
                                           <?php else: ?>
                                           <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <form action="<?php echo e(route('request.daily_profit')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <div class="mb-3">
                                                    <label for="" class="form-label">Insert Ammount</label>
                                                    <input type="number" class="form-control" name="ammount">
                                                </div>
                                                <div class="mb-3">
                                                    <button type="submit" class="btn btn-primary">
                                                        Submit
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                           <?php endif; ?>
                                       
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            
                            <div class="card-body">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            Request For First Level Withdraw </div>
                                            <?php if(isset($first_lvl_reject)): ?>
                                        
                                            <span class="badge badge-danger">Rejected First Level Total: <?php echo e(count($first_lvl_reject)); ?></span>
                                            <?php endif; ?>
                                           <?php if($sad): ?>
                                           <div class="alert alert-primary" role="alert">
                                            You Have Already Pending Request Of <?php echo e($sad->ammount); ?> Tk
                                          </div>
                                      
                                           <?php else: ?>
                                           <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <form action="<?php echo e(route('request.first_level')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <div class="mb-3">
                                                    <label for="" class="form-label">Insert Ammount</label>
                                                    <input type="number" class="form-control" name="ammount">
                                                </div>
                                                <div class="mb-3">
                                                    <button type="submit" class="btn btn-primary">
                                                        Submit
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                           <?php endif; ?>
                                       
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            
                            <div class="card-body">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            Request For Second Level Withdraw </div>
                                            <?php if(isset($reje_se)): ?>
                                        
                                            <span class="badge badge-danger">Rejected Second Level Total: <?php echo e(count($reje_se)); ?></span>
                                            <?php endif; ?>
                                           <?php if($sas): ?>
                                           <div class="alert alert-primary" role="alert">
                                            You Have Already Pending Request Of <?php echo e($sas->ammount); ?> Tk
                                          </div>
                                      
                                           <?php else: ?>
                                           <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <form action="<?php echo e(route('request.second_level')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <div class="mb-3">
                                                    <label for="" class="form-label">Insert Ammount</label>
                                                    <input type="number" class="form-control" name="ammount">
                                                </div>
                                                <div class="mb-3">
                                                    <button type="submit" class="btn btn-primary">
                                                        Submit
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                           <?php endif; ?>
                                       
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="col-xl-3 col-md-6 mb-4">
                        <div class="card border-left-primary shadow h-100 py-2">
                            
                            <div class="card-body">
                                <div class="row no-gutters align-items-center">
                                    <div class="col mr-2">
                                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                                            Request For Refer Withdraw </div>
                                            <?php if(isset($total_refer_request_reject)): ?>
                                        
                                            <span class="badge badge-danger">Rejected Second Level Total: <?php echo e(count($total_refer_request_reject)); ?></span>
                                            <?php endif; ?>
                                           <?php if($total_refer_request_check): ?>
                                           <div class="alert alert-primary" role="alert">
                                            You Have Already Pending Request Of <?php echo e($total_refer_request_check->ammount); ?> Tk
                                          </div>
                                      
                                           <?php else: ?>
                                           <div class="h5 mb-0 font-weight-bold text-gray-800">
                                            <form action="<?php echo e(route('req.refer_withdraw')); ?>" method="POST">
                                                <?php echo csrf_field(); ?>
                                                <div class="mb-3">
                                                    <label for="" class="form-label">Insert Ammount</label>
                                                    <input type="number" class="form-control" name="ammount">
                                                </div>
                                                <div class="mb-3">
                                                    <button type="submit" class="btn btn-primary">
                                                        Submit
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                           <?php endif; ?>
                                       
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>

                   
                   
                </div>
               
               
          <!-- End of Main Content -->
              </div>
          <!-- Footer -->
          
        
          <!-- End of Footer -->

      </div>
      <!-- End of Content Wrapper -->

  </div>
  <!-- End of Page Wrapper -->

  <!-- Scroll to Top Button-->
  <a class="scroll-to-top rounded" href="#page-top">
      <i class="fas fa-angle-up"></i>
  </a>

  <!-- Logout Modal-->
  <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
      aria-hidden="true">
      <div class="modal-dialog" role="document">
          <div class="modal-content">
              <div class="modal-header">
                  <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
                  <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                      <span aria-hidden="true">×</span>
                  </button>
              </div>
              <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
              <div class="modal-footer">
                  <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
                  <a class="btn btn-primary" href="<?php echo e(route('logout')); ?>">Logout</a>
              </div>
          </div>
      </div>
  </div>
<?php $__env->stopSection(); ?>

   



    
<?php echo $__env->make('user.user_dashboard_link', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH H:\Laravel Projects\abir_vaiya's Second Project\Abir_vaiya_second_project\resources\views/user/user_profit.blade.php ENDPATH**/ ?>