<?php if (isset($component)) { $__componentOriginal91fdd17964e43374ae18c674f95cdaa3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3 = $attributes; } ?>
<?php $component = App\View\Components\AdminLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AdminLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h1 class="text-2xl font-bold">User Details</h1>
     <?php $__env->endSlot(); ?>

    <div class="p-6 bg-white rounded-lg shadow-md dark:bg-gray-800">
        <div class="mb-4">
            <h2 class="text-xl font-semibold text-gray-900 dark:text-gray-100">User Information</h2>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Name: <span class="font-medium"><?php echo e($user->name); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Email: <span class="font-medium"><?php echo e($user->email); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">First Name: <span class="font-medium"><?php echo e($user->first_name); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Last Name: <span class="font-medium"><?php echo e($user->last_name); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Personal Email: <span class="font-medium"><?php echo e($user->personal_email); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Work Email: <span class="font-medium"><?php echo e($user->work_email); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Share Email: <span class="font-medium"><?php echo e($user->share_email); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Gender: <span class="font-medium"><?php echo e($user->gender); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">DOB: <span class="font-medium"><?php echo e($user->birth_date); ?></span></p>
            <p class="mt-2 text-gray-600 dark:text-gray-400">Phone: <span class="font-medium"><?php echo e($user->phone); ?></span></p>
        </div>

        <div class="mb-4">
            <h2 class="text-xl font-semibold text-gray-900 dark:text-gray-100">Roles</h2>
            <?php if($user->roles->isEmpty()): ?>
                <p class="mt-2 text-gray-600 dark:text-gray-400">No roles assigned.</p>
            <?php else: ?>
                <ul class="mt-2 text-gray-600 list-disc list-inside dark:text-gray-400">
                    <?php $__currentLoopData = $user->roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $role): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($role->name); ?></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            <?php endif; ?>
        </div>

        <div class="flex items-center justify-between mt-4">
            <a href="<?php echo e(route('admin.users.index')); ?>" class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white">
                Back to Users List
            </a>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-edit')): ?>
            <?php if($user->status): ?>
                <a href="<?php echo e(route('admin.users.edit', $user)); ?>" class="inline-flex items-center px-4 py-2 text-xs font-semibold tracking-widest text-white uppercase bg-indigo-600 border border-transparent rounded-md shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                    Edit User
                </a>
            <?php endif; ?>
            <?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $attributes = $__attributesOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__attributesOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3)): ?>
<?php $component = $__componentOriginal91fdd17964e43374ae18c674f95cdaa3; ?>
<?php unset($__componentOriginal91fdd17964e43374ae18c674f95cdaa3); ?>
<?php endif; ?>
<?php /**PATH C:\xampp8.2\htdocs\Portal\resources\views/admin/users/show.blade.php ENDPATH**/ ?>