@extends('Admin.admin_dashboard_links')
@section('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="https://i.ibb.co/GvQRQF4/final-e1701807626614.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="{{asset('Gymove_assets/public/assets/images/profile/17.jpg')}}" width="20" alt=""> --}}
                        <div class="header-info">
                            <span class="text-black"><strong>
                            @if(Auth::guard('admin_login'))  
                            {{Auth::guard('admin_login')->user()->email}}
                            @else
                            @endif  
                            </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>

@include('Admin.admin_dashboard_sidebar')

<div class="content-body default-height">
<!-- row -->
<div class="container-fluid">
   <div class="row">
    <div class="col-lg-12">
   
    {{-- <table class="table table-striped">
        <tr>
            <th>Serial</th>
            <th>Ammount</th>
            <th>Created</th>
        </tr>
        <tr>
            <td>{{$invest_limits->id}}</td>
            <td>{{$invest_limits->invest_limit}} Tk</td>
            <td>{{$invest_limits->created_at->format('d-m-Y')}}</td>
        </tr>
    </table> --}}

  
<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title">Invest Requested</h4>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table id="example" class="table-boardered display min-w850">
                        <thead>
                            <tr>
                                <th>Serial</th>
                                <th>UserName</th>
                                <th>Email</th>
                                <th>Phone Number</th>
                                <th>Reference id</th>
                                <th>Created At</th>
                                <th>Action</th>
                                
                            </tr>
                        </thead>
                        <tbody>
                          @forelse($all_user as $key=>$all)
                          <tr>
                            <td>{{$key+1}}</td>
                            <td>{{$all->name}}</td>
                            <td>{{$all->email}}</td>
                            <td>{{$all->phone_number}}</td>
                            <td>{{$all->Refer_id}}</td>
                            <td>{{$all->created_at->format('d-m-Y')}}</td>
                            <td>
                                <div class="btn-group">
                                    <button type="button" class="btn btn-danger dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
                                      Action
                                    </button>
                                    <ul class="dropdown-menu">
                                      <li><a class="dropdown-item" href="{{route('user.details_by_admin',$all->id)}}">Details</a></li>
                                      <li><a class="dropdown-item" href="{{route('daily.profit',$all->id)}}">Daily Profit</a></li>
                                      <li><a class="dropdown-item" href="{{route('refer_balance.sheet',$all->id)}}">Reference Balance Show Page</a></li>
                                      <li><a class="dropdown-item" href="{{route('daily_first_lvl_commission.sheet',$all->id)}}">Daily First Level Commission</a></li>
                                      <li><a class="dropdown-item" href="{{route('daily_second_lvl_commission.sheet',$all->id)}}">Daily Second Level Commission</a></li>
                                      <li><hr class="dropdown-divider"></li>
                                      <li><a class="dropdown-item" href="#">Separated link</a></li>
                                    </ul>
                                  </div>
                            </td>

                          </tr>
                          @empty
                          @endforelse        
                            
                        </tbody>
                        <tfoot>
                            <tr>
                            <th>Serial</th>
                            <th>UserName</th>
                            <th>Email</th>
                            <th>Phone Number</th>
                           <th>Reference Id</th>
                           <th>Created_at</th>
                           <th>Action</th>
                           
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
    
   
  

</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
***********************************-->        
{{-- <script>
    Swal.fire({
   title: "Good job!",
   text: "You clicked the button!",
   icon: "success"
 });
 </script> --}}
</div>

@endsection