<?php $__env->startSection('content'); ?>
    <div class="container-fluid my__cl__mate">
        <div class="row">
            <div class="col-12 col-lg-12 col-xl-10 m-auto">
                <div class="page-header">
                    <div class="page-block mb-0 mt-3">
                        <div class="row align-items-center">
                            <div class="col-md-12">
                                <div class="page-header-title mb-0">
                                    <h4 class="mb-0">My Class Friends</h4>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <?php if($myFriends->isEmpty()): ?>
                    <div class="text-center py-5">
                        <i class="fas fa-users text-muted mb-3" style="font-size: 3rem;"></i>
                        <p class="text-muted">No classmates found.</p>
                    </div>
                <?php else: ?>
                    <div class="row g-3">
                        <?php $__currentLoopData = $myFriends; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $myFriend): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-12 col-md-6 col-lg-4">
                                <div class="card h-100 shadow-sm">
                                    <div class="card-body">
                                        <div class="d-flex align-items-center mb-3">
                                            <?php
                                                $student_image = $myFriend->profile_image ? $myFriend->profile_image : 'uploads/student/graduated_student.png';
                                            ?>
                                            <img src="<?php echo e(asset($student_image)); ?>"
                                                 class="rounded-circle border"
                                                 alt="<?php echo e($myFriend->name); ?>"
                                                 height="60"
                                                 width="60">
                                            <div class="ms-3">
                                                <h5 class="mb-2 f__name"><?php echo e($myFriend->name ?? 'N/A'); ?></h5>
                                                <span
                                                    class="f__roll f__t">Roll: <?php echo e($myFriend->class_roll ?? 'N/A'); ?></span>
                                            </div>
                                        </div>

                                        <div class="student-details">
                                            
                                            <span class="f__address f__t">Guardian Contact:</span><br>
                                            <span class="value"><?php echo e($myFriend->guardian_mobile ?? 'N/A'); ?> <span
                                                    class="call__btn"><a
                                                        href="tel:<?php echo e($myFriend->guardian_mobile ?? 'N/A'); ?>">
                                                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
                                                             fill="none" stroke="currentColor" stroke-linecap="round"
                                                             stroke-linejoin="round" width="18" height="18"
                                                             stroke-width="1.5">
  <path d="M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2"></path>
  <path d="M15 7a2 2 0 0 1 2 2"></path>
  <path d="M15 3a6 6 0 0 1 6 6"></path>
</svg> Call</a></span></span>

                                            <div class="d-none">
                                                <i class="fas fa-map-marker-alt me-2"></i>
                                                <span class="f__address f__t">Address:</span> <br>
                                                <span class="value"><?php echo e($myFriend->present_address ?? 'N/A'); ?></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('students-dashboard.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/EdueasyCollege/resources/views/students-dashboard/pages/my-friends.blade.php ENDPATH**/ ?>