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

    <!--**********************************
Nav header start
***********************************-->
<div class="nav-header">
    <a href="index.html" class="brand-logo" aria-label="Gymove">
   
 
        <img class="brand-title" src="<?php echo e(asset('Frontend_assets/soft-tech-logo.png')); ?>" alt="">
    </a>

<div class="nav-control">
    <div class="hamburger">
        <span class="line"></span><span class="line"></span><span class="line"></span>
    </div>
</div>
</div>

<header class="header">
<div class="header-content">
    <nav class="navbar navbar-expand">
        <div class="collapse navbar-collapse justify-content-between">
            <div class="header-left">
                <div class="dashboard_bar">
                Dashboard					</div>
            </div>
            <ul class="navbar-nav header-right">
                
                
                <li class="nav-item dropdown notification_dropdown">
                    
                   
                </li>
               
                
                <li class="nav-item dropdown header-profile">
                    <a class="nav-link" href="javascript:void(0)" role="button" data-bs-toggle="dropdown">
                        <img src="<?php echo e(asset('Gymove_assets/public/assets/images/profile/17.jpg')); ?>" width="20" alt="">
                        <div class="header-info">
                            <span class="text-black"><strong>Peter Parkur</strong></span>
                            <p class="fs-12 mb-0">Super Admin</p>
                        </div>
                    </a>
                    <div class="dropdown-menu dropdown-menu-end">
                       
                        <a href="page_login.html" class="dropdown-item ai-icon">
                            <svg id="icon-logout" xmlns="http://www.w3.org/2000/svg" class="text-danger" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
                            <span class="ms-2">Logout </span>
                        </a>
                    </div>
                </li>
            </ul>
        </div>
    </nav>
</div>
</header>

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

<div class="content-body default-height">
<!-- row -->
<div class="container-fluid">
   <div class="row mb-5">
    <div class="col-lg-12 mb-3">
   
    
    <h3>
        Username : <?php echo e($user->name); ?>[<?php echo e($user->Refer_id); ?>]
        
    </h3>
</div>
<div class="col-sm-3">
    <div class="card avtivity-card" style="cursor: pointer">
        <div class="card-body">
            <div class="media align-items-center">
                
                <div class="media-body">
                    <p class="fs-14 mb-2">Total Invested Money</p>
                    <span class="title text-black font-w600"><?php echo e(($total)); ?> TK</span>
                </div>
            </div>
          
        </div>
        <div class="effect bg-warning"></div>
    </div>
</div>

<div class="col-sm-3">
    <div class="card avtivity-card" style="cursor: pointer">
        <div class="card-body">
            <div class="media align-items-center">
                
                <div class="media-body">
                    <p class="fs-14 mb-2">Total Withdraw Of Packages</p>
                    <span class="title text-black font-w600">
                        <?php if(isset($total_withdraw)): ?>
                        <?php echo e(($total_withdraw)); ?>TK
                        <?php else: ?>
                        0 TK
                        <?php endif; ?>
                         </span>
                </div>
            </div>
          
        </div>
        <div class="effect bg-primary"></div>
    </div>
</div>

</div>

  
<div class="row">
    <?php $__empty_1 = true; $__currentLoopData = $invest_money; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$invest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

    <div class="col-sm-4">
        <div class="card">
            <div class="card-header bg-primary">
                <h4 class="card-title text-white">Invest Created <?php echo e($invest->created_at->format('d-m-Y')); ?></h4>
            </div>
            <div class="card-body">
                <div class="mb-3">
                    <label for="" class="form-label">Phone Number</label>
                    <input type="text" class="form-control" readonly value="<?php echo e($invest->phone_number); ?>">
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Transaction Number</label>
                    <input type="text" class="form-control" readonly value="<?php echo e($invest->transaction_number); ?>">
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Invested Tk</label>
                    <input type="text" class="form-control" readonly value="<?php echo e($invest->Tk); ?>">
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Mobile Operator</label>
                    <input type="text" class="form-control" readonly value="<?php echo e($invest->mobile_operator); ?>">
                </div>
                <div class="mb-3">
                    <label for="" class="form-label">Selected Month</label>
                    <input type="text" class="form-control" readonly value="<?php echo e($invest->time_period); ?>">
                </div>
                <div class="mb-3">
                    <?php if($invest->withdraw == 1): ?>
                    <div class="alert alert-danger" role="alert">
                         Daily Profit Time Is Over
                        
                      </div>
                      <?php endif; ?>
                    <?php if($invest->time_period && $invest->status == null): ?>
                <div class="alert alert-success" role="alert">
                    Requested To The Admin Please Wait For Accept
                  </div>
                  
<?php elseif($invest->time_period && $invest->status == 1 && $invest->req_for_withdraw == null): ?>
<div class="alert alert-success" role="alert">
    Accepted Investment
  </div>
 
  <a href="<?php echo e(route('user.daily_porfit_pertially_frm_admin',$invest->id)); ?>" class="btn btn-primary btn-sm ml-2">Check The Daily Profit</a>
  <?php elseif($invest->time_period && $invest->status == 1 && $invest->req_for_withdraw == 'requested'): ?>
  <a href="#" class="btn btn-danger btn-sm ml-2"> Requested For Withdraw<br> Of This Package</a>
  <a href="<?php echo e(route('user.daily_porfit_pertially_frm_admin',$invest->id)); ?>" class="btn btn-primary btn-sm ml-2">Check The Daily Profit</a>
  <?php elseif($invest->time_period && $invest->status == 1 && $invest->req_for_withdraw == 'accepted'): ?>
  <a href="#" class="btn btn-success btn-sm ml-2"> Accepted The <br> Package</a>
  <a href="<?php echo e(route('user.daily_porfit_pertially_frm_admin',$invest->id)); ?>" class="btn btn-primary btn-sm ml-2">Check The Daily Profit</a>
  <?php else: ?>
<div class="mb-3">
    <button class="btn btn-primary">Submit</button>
</div>
                <?php endif; ?>
                
               
               
                </div>
            </div>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <?php endif; ?>
    
    
   
  

</div>
   
 
    
   

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

<footer class="footer">
<div class="copyright">
    <p>Designed &amp; Developed by <a href="https://softtech.com.bd/" target="_blank">SOFTTECH</a>
        2023</p>
</div>
</footer>
<!--**********************************
Footer end
***********************************-->        

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.admin_dashboard_links', \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/Admin/user_daily_profit.blade.php ENDPATH**/ ?>