<?php $__env->startSection('contents'); ?>
    <div class="container-fluid mt-4">
        <h4 class="mb-4">User Profile</h4>
          <div class="table-responsive">
        <table class="table table-bordered table-striped">
            <thead class="table-dark">
                <tr>
                    <th>User</th>
                    <th>Details</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>User Name</td>
                    <td><?php echo e($user->real_name ?? ''); ?></td>
                </tr>
                <tr>
                    <td>Nick Name</td>
                    <td><?php echo e($user->nickname ?? ''); ?></td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td><?php echo e($user->phone_country_code ?? ''); ?> <?php echo e($user->phone_number ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Gender</td>
                    <td><?php echo e($user->gender ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Country</td>
                    <td><?php echo e($user->country ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Address</td>
                    <td><?php echo e($user->address ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>City</td>
                    <td><?php echo e($user->city ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Profile Photo</td>
                    <td>
                        <?php if(!empty($user->profile_photo)): ?>
                            <img src="<?php echo e(asset('website/uploads/profile_images/' . $user->profile_photo)); ?>"
                                alt="Profile Photo" width="80">
                        <?php else: ?>
                            N/A
                        <?php endif; ?>
                    </td>
                </tr>
                <tr>
                    <td>Verification Status</td>
                    <td><?php echo e($user->verification_status ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Book Name</td>
                    <td><?php echo e($user->book_name ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Author Name</td>
                    <td><?php echo e($user->author_name ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Short Description</td>
                    <td><?php echo e($user->short_description ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Favorite Quotes</td>
                    <td><?php echo e($user->favorite_quotes ?? 'N/A'); ?></td>
                </tr>
                <tr>
                    <td>Book Cover</td>
                    <td>
                        <?php if(!empty($user->book_cover)): ?>
                            <img src="<?php echo e(asset('website/uploads/book_covers/' . $user->book_cover)); ?>" alt="Book Cover"
                                width="80">
                        <?php else: ?>
                            N/A
                        <?php endif; ?>
                    </td>
                </tr>
                <tr>
                    <td>Profile Likes</td>
                    <td><?php echo e($user->prfile_likes ?? '0'); ?></td>
                </tr>
                <tr>
                    <td>Book Likes</td>
                    <td><?php echo e($user->book_likes ?? '0'); ?></td>
                </tr>
            </tbody>
        </table>
          </div>
        <hr>
        <h4>User Subscriptions</h4>
        <table class="table table-bordered">
            <thead class="table-secondary">
                <tr>
                    <th>Plan Name</th>
                    <th>Start Date</th>
                    <th>End Date</th>
                </tr>
            </thead>
            <tbody>
                <?php if($subscriptions->isEmpty()): ?>
                    <tr>
                        <td colspan="4">No subscriptions found.</td>
                    </tr>
                <?php else: ?>
                    <?php $__currentLoopData = $subscriptions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e(Str::title($sub->subscription_type) ?? '-'); ?></td>
                            <td><?php echo e($sub->subscription_start ? \Carbon\Carbon::parse($sub->subscription_start)->format('Y-m-d') : '-'); ?>

                            </td>
                            <td><?php echo e($sub->subscription_end ? \Carbon\Carbon::parse($sub->subscription_end)->format('Y-m-d') : '-'); ?>

                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
<?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/details.blade.php ENDPATH**/ ?>