<?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">Pending Friend Requests</div>
                            <div class="crdBody main-frndpg">
                                <?php if($pendingRequests->isEmpty()): ?>
                                    <p>No pending requests</p>
                                <?php else: ?>
                                    <?php $__currentLoopData = $pendingRequests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pendingRequest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <?php if($pendingRequest->receiver != null): ?>

                                            <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($pendingRequest->profile_image ? asset('profile_image/'.$pendingRequest->profile_image) : asset('profile_image/user.png')); ?>"
                                                                        width="70" class="img-fluid" alt="img">
                                                                    <div class="frnd-txt">
                                                                        <h2><?php echo e($pendingRequest->receiver->name ?? ''); ?></h2>
                                                                        <h3><span
                                                                                style="color: green;"><?php echo e($pendingRequest->status ?? ''); ?></span>
                                                                        </h3>
                                                                        <h6><?php echo e($pendingRequest->created_at->diffForHumans()); ?></h6>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <form
                                                                action="<?php echo e(route('friend-request.cancel.by.sender', $pendingRequest->receiver->id ?? '')); ?>"
                                                                method="POST">
                                                                <?php echo csrf_field(); ?>
                                                                <button class="btn-danger" type="submit">Cancle Request
                                                                </button>
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                        <?php endif; ?>

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </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/pending-friend-requests.blade.php ENDPATH**/ ?>