
<?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">
                    <div class="col-lg-12">

                        


                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-header bg-primary">
                                        <h4 class="card-title text-white">Invest Requested UserName : </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>Name</th>
                                                        <th>Referred Code</th>
                                                        <th>Tk</th>
                                                        <th>Status</th>
                                                        <th>Created At</th>
                                                        <th>Action</th>

                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <?php if($request): ?>
                                                        <?php $__empty_1 = true; $__currentLoopData = $request; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$reee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                            <tr>
                                                                <td><?php echo e($key + 1); ?></td>
                                                                <td><?php echo e($reee->rel_to_user->name); ?></td>
                                                                <td><?php echo e($reee->rel_to_user->Refer_id); ?></td>
                                                                <td><?php echo e($reee->ammount); ?>Tk</td>
                                                                <td>
                                                                    <?php if($reee->status == 0): ?>
                                                                        Requested
                                                                    <?php elseif($reee->status == 1): ?>
                                                                        Accepted
                                                                    <?php elseif($reee->status == 2): ?>
                                                                        Rejected
                                                                    <?php endif; ?>
                                                                </td>
                                                                <td><?php echo e($reee->created_at); ?></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="<?php echo e(route('accept.refer', $reee->id)); ?>">Accept</a>
                                                                            </li>
                                                                            <li><a class="dropdown-item"
                                                                                    href="<?php echo e(route('reject.refer', $reee->id)); ?>">Reject</a>
                                                                            </li>
                                                                            <li><a class="dropdown-item"
                                                                                    href="#">Something else here</a>
                                                                            </li>
                                                                            <li>
                                                                                <hr class="dropdown-divider">
                                                                            </li>
                                                                            <li><a class="dropdown-item"
                                                                                    href="#">Separated link</a></li>
                                                                        </ul>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                        <?php endif; ?>
                                                    <?php endif; ?>

                                                </tbody>
                                                <tfoot>
                                                    <tr>
                                                        <th>Serial</th>
                                                        <th>Name</th>
                                                        <th>Referred Code</th>
                                                        <th>Tk</th>
                                                        <th>Status</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
    ***********************************-->
        
    </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/refer_request.blade.php ENDPATH**/ ?>