

<?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">
            ✏️ Edit Device
        </h2>
        <p class="text-gray-400 text-sm">Update device details</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('/devices/'.$data->id)); ?>" class="grid grid-cols-1 md:grid-cols-2 gap-6">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <!-- IMEI -->
        <div class="input-group">
            <span>📡</span>
            <input name="imei" value="<?php echo e(old('imei', $data->imei)); ?>" required>
            <label>IMEI Number</label>
        </div>

        <!-- STATUS -->
        <div class="input-group">
            <span>⚡</span>
            <select name="status" required>
                <option value="online" <?php echo e($data->status == 'online' ? 'selected' : ''); ?>>online</option>
                                <option value="offline" <?php echo e($data->status == 'offline' ? 'selected' : ''); ?>>offline</option>

                <option value="inactive" <?php echo e($data->status == 'inactive' ? 'selected' : ''); ?>>Inactive</option>
            </select>
        </div>

        <!-- SIGNAL -->
        <div class="input-group">
            <span>📶</span>
            <input type="number" name="signal_strength" value="<?php echo e(old('signal_strength', $data->signal_strength)); ?>">
            <label>Signal Strength (%)</label>
        </div>

        <!-- BATTERY -->
        <div class="input-group">
            <span>🔋</span>
            <input type="number" name="battery_level" value="<?php echo e(old('battery_level', $data->battery_level)); ?>">
            <label>Battery Level (%)</label>
        </div>

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

        </form>

    </div>

</div>

<!-- STYLES -->
<style>

.input-group {
    position: relative;
}

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

/* INPUT */
.input-group input,
.input-group select {
    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;
}

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

/* FLOAT */
.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;
}

/* SELECT FIX */
.input-group select option {
    color: black;
}

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

/* 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/devices/edit.blade.php ENDPATH**/ ?>