<?php $__env->startSection('content'); ?>
    <body class="fix-header fix-sidebar card-no-border">
    <div id="main-wrapper">
        <div class="page-wrapper customWrap">

            <div class="container-fluid">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="card privacy-policy">
                            <div class="card-header">Send Friend Requests</div>
                            <div class="crdBody main-frndpg">
                                <div class="srch-frnd">
                                    <form class="search" action="<?php echo e(route('dashboard.make.friends')); ?>" method="get">
                                        <?php echo csrf_field(); ?>
                                    <span>
                                        <input type="text" placeholder="Search Friends" name="search" value="">
                                        <button type="submit"><i class="fa fa-search" aria-hidden="true"></i>Search</button>
                                    </span>
                                    </form>
                                </div>
                                <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="row">
                                    <div class="col-md-6 col-lg-6">
                                        <div class="">
                                            <div class="row frnd-box">
                                                <div class="col-md-8 col-lg-8">
                                                    <div class="frnd-img">
                                                        <img src="<?php echo e($user->profile_image ? asset('profile_image/'.$user->profile_image) : asset('profile_image/user.png')); ?>" width="70" class="img-fluid" alt="img">
                                                        <div class="frnd-txt">
                                                            <h2><?php echo e($user->name); ?></h2>
                                                        </div>
                                                    </div>
                                                </div>
                                                <form action="<?php echo e(route('friend-request.send', $user)); ?>" method="POST">
                                                    <?php echo csrf_field(); ?>
                                                    <button class="btn-primary" type="submit">Add Friend</button>
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

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

<?php echo $__env->make('layout.dashboard-app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/servicedemoweb/public_html/global-man-cave/resources/views/dashboard/make-friends.blade.php ENDPATH**/ ?>