<?php $__env->startSection('title', 'View User'); ?>
<?php $__env->startSection('page-title', 'View User'); ?>

<?php $__env->startSection('content'); ?>
<div class="max-w-2xl mx-auto">
    <div class="bg-white dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg p-6">
        <div class="flex items-center justify-between mb-6">
            <h2 class="text-lg font-semibold text-gray-900 dark:text-white">User Details</h2>
            <div class="flex gap-2">
                <a href="<?php echo e(route('admin.users.edit', $user)); ?>" 
                   class="inline-flex items-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-lg transition-colors">
                    <i class="fas fa-edit mr-2"></i>Edit
                </a>
            </div>
        </div>

        <div class="space-y-6">
            <!-- User ID -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div>
                    <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                        User ID
                    </label>
                    <div class="text-sm text-gray-900 dark:text-white"><?php echo e($user->id); ?></div>
                </div>

                <!-- Created Date -->
                <div>
                    <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                        Created Date
                    </label>
                    <div class="text-sm text-gray-900 dark:text-white"><?php echo e($user->created_at->format('M d, Y H:i')); ?></div>
                </div>

                <!-- Last Updated -->
                <div>
                    <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                        Last Updated
                    </label>
                    <div class="text-sm text-gray-900 dark:text-white"><?php echo e($user->updated_at->format('M d, Y H:i')); ?></div>
                </div>
            </div>

            <!-- Name -->
            <div>
                <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                    Name
                </label>
                <div class="text-sm text-gray-900 dark:text-white"><?php echo e($user->name); ?></div>
            </div>

            <!-- Email -->
            <div>
                <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                    Email
                </label>
                <div class="text-sm text-gray-900 dark:text-white"><?php echo e($user->email); ?></div>
            </div>

            <!-- Email Verified Status -->
            <div>
                <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
                    Email Verified
                </label>
                <div class="text-sm">
                    <?php if($user->email_verified_at): ?>
                        <span class="px-2.5 py-1 inline-flex text-xs font-medium rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400">
                            Verified on <?php echo e($user->email_verified_at->format('M d, Y H:i')); ?>

                        </span>
                    <?php else: ?>
                        <span class="px-2.5 py-1 inline-flex text-xs font-medium rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400">
                            Not Verified
                        </span>
                    <?php endif; ?>
                </div>
            </div>

            <!-- Action Buttons -->
            <div class="flex items-center gap-3 pt-6 border-t border-gray-200 dark:border-gray-800">
                <a href="<?php echo e(route('admin.users.edit', $user)); ?>" 
                   class="px-6 py-2.5 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-lg transition-colors">
                    <i class="fas fa-edit mr-2"></i>Edit User
                </a>
                <form action="<?php echo e(route('admin.users.destroy', $user)); ?>" method="POST" onsubmit="return confirm('Are you sure you want to delete this user?');" style="display:inline;">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('DELETE'); ?>
                    <button type="submit" class="px-6 py-2.5 bg-red-600 hover:bg-red-700 text-white text-sm font-medium rounded-lg transition-colors">
                        <i class="fas fa-trash mr-2"></i>Delete User
                    </button>
                </form>
                <a href="<?php echo e(route('admin.users.index')); ?>" 
                   class="px-6 py-2.5 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors">
                    <i class="fas fa-arrow-left mr-2"></i>Back to Users
                </a>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mac/Documents/e-com/resources/views/admin/users/show.blade.php ENDPATH**/ ?>