

<?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 Feeder
        </h2>
        <p class="text-gray-400 text-sm">Create and assign feeder to device</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('/feeders')); ?>" class="grid grid-cols-1 md:grid-cols-2 gap-6">
        <?php echo csrf_field(); ?>

        <!-- FEEDER NAME -->
        <div class="input-group">
            <span>⚡</span>
            <input name="name" required>
            <label>Feeder Name</label>
        </div>

        <!-- CONSUMER -->
        <div class="input-group">
            <span>🏢</span>
            <select name="consumer_id" required>
                <option value="">Select Consumer</option>
                <?php $__currentLoopData = $consumers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($c->id); ?>"><?php echo e($c->company_name); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <!-- DEVICE -->
        <div class="input-group">
            <span>📡</span>
            <select name="device_id" required>
                <option value="">Select Device</option>
                <?php $__currentLoopData = $devices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($d->id); ?>"><?php echo e($d->imei); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <!-- PHASE -->
        <div class="input-group">
            <span>🔌</span>
            <select name="phase" required>
                <option value="">Select Phase</option>
                <option value="single">Single Phase</option>
                <option value="three">Three Phase</option>
            </select>
        </div>

        <!-- STATUS -->
        <div class="input-group">
            <span>⚙️</span>
            <select name="status">
                <option value="OFF">OFF</option>
                <option value="ON">ON</option>
            </select>
        </div>

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

        </form>

    </div>

</div>

<!-- STYLES -->
<style>

.input-group {
    position: relative;
}

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

/* INPUT + SELECT */
.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/feeders/create.blade.php ENDPATH**/ ?>