<?php $__env->startSection('contents'); ?>
    <div class="container-fluid mt-4">
        <h4 class="mb-4">User Profiles</h4>
        <?php if(session('success')): ?>
            <div class="alert alert-success"><?php echo e(session('success')); ?></div>
        <?php endif; ?>
        <div class="table-responsive">
            <table class="table table-bordered table-striped">
                <thead class="table-dark">
                    <tr>
                        <th>Photo</th>
                        <th>Real Name</th>
                        <th>Nickname</th>
                        <th>Phone</th>
                        <th>Country</th>
                        <th>Status</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $profiles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $profile): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <?php if($profile->profile_photo): ?>
                                    <img src="<?php echo e(asset('website/uploads/profile_images/' . $profile->profile_photo)); ?>"
                                        alt="Profile Photo" class="img-thumbnail"
                                        style="width: 60px; height: 60px; object-fit: cover;">
                                <?php else: ?>
                                    <span class="text-muted">Not Set</span>
                                <?php endif; ?>
                            </td>
                            <td><?php echo e($profile->real_name); ?></td>
                            <td><?php echo e($profile->nickname); ?></td>
                            <td><?php echo e($profile->phone_country_code); ?> <?php echo e($profile->phone_number); ?></td>
                            <td><?php echo e($profile->country); ?></td>
                            <td>
                                <?php if($profile->verification_status === 'verified'): ?>
                                    <span class="badge bg-success">Verified</span>
                                <?php else: ?>
                                    <span class="badge bg-warning text-dark">Unverified</span>
                                <?php endif; ?>
                            </td>
                            <td>
                                <?php if($profile->verification_status === 'unverified'): ?>
                                    <form method="POST" action="<?php echo e(route('admin.verify.profile', $profile->id)); ?>">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('PATCH'); ?>
                                        <button type="submit" class="btn btn-sm btn-success">Verify</button>
                                    </form>
                                <?php else: ?>
                                    <button class="btn btn-sm btn-secondary" disabled>Verified</button>
                                <?php endif; ?>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backoffice.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/gccdemo/public_html/repositories/blinddate/resources/views/backoffice/customer/user_profiles.blade.php ENDPATH**/ ?>