

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

<div class="max-w-5xl mx-auto">

    <!-- HEADER -->
    <div class="mb-8">
        <h2 class="text-3xl font-bold text-white tracking-wide">
            ➕ Add User
        </h2>
        <p class="text-gray-400 text-sm">Create a new system user</p>
    </div>

    <!-- FORM CARD -->
    <div class="bg-white/10 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl p-8">

        <form method="POST" action="<?php echo e(url('/users')); ?>" class="grid grid-cols-1 md:grid-cols-2 gap-6">
        <?php echo csrf_field(); ?>

        <!-- NAME -->
        <div class="input-group">
            <span>👤</span>
            <input name="name" value="<?php echo e(old('name')); ?>" required>
            <label>Name</label>

            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <p class="error"><?php echo e($message); ?></p>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <!-- EMAIL -->
        <div class="input-group">
            <span>📧</span>
            <input type="email" name="email" value="<?php echo e(old('email')); ?>" required>
            <label>Email</label>

            <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <p class="error"><?php echo e($message); ?></p>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <!-- PASSWORD -->
        <div class="input-group">
            <span>🔒</span>
            <input type="password" name="password" required>
            <label>Password</label>

            <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <p class="error"><?php echo e($message); ?></p>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <!-- PHONE -->
        <div class="input-group">
            <span>📱</span>
            <input name="phone" value="<?php echo e(old('phone')); ?>">
            <label>Phone</label>

            <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                <p class="error"><?php echo e($message); ?></p>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <!-- SUBMIT -->
        <div class="col-span-2 mt-6">
            <button class="premium-btn">
                💾 Save User
            </button>
        </div>

        </form>

    </div>

</div>

<!-- STYLES -->
<style>

/* INPUT GROUP */
.input-group {
    position: relative;
}

.input-group span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* INPUT */
.input-group input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

/* LABEL */
.input-group label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    transition: 0.3s;
}

/* FLOAT LABEL */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    background: #111827;
    padding: 0 6px;
    border-radius: 6px;
    color: #a5b4fc;
}

/* FOCUS */
.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* ERROR */
.error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* BUTTON */
.premium-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}

.premium-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(139,92,246,0.5);
}

</style>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/amccms/resources/views/users/create.blade.php ENDPATH**/ ?>