

<?php $__env->startSection('content'); ?>
<div class="max-w-7xl mx-auto">

    <!-- HEADER -->
    <div class="mb-8">
        <h2 class="text-3xl font-bold tracking-wide">
            ➕ Add Consumer
        </h2>
        <p class="text-gray-400 text-sm">Enter consumer details with precision</p>
    </div>

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

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

        <!-- SECTION -->
        <div class="col-span-2 section-title">Basic Info</div>

        <div class="input-group">
            <input name="account_zone" required>
            <label>Account Zone</label>
        </div>

        <div class="input-group">
            <input name="customer_id" required>
            <label>Customer ID</label>
        </div>

        <div class="input-group">
            <input name="distributor_customer_id">
            <label>Distributor Customer ID</label>
        </div>

        <div class="input-group">
            <input name="installation_number">
            <label>Installation Number</label>
        </div>

        <div class="input-group">
            <input name="business_partner_number">
            <label>Business Partner Number</label>
        </div>

        <div class="input-group">
            <input name="consumer_type">
            <label>Consumer Type</label>
        </div>

        <!-- DISCOM -->
        <div class="col-span-2 section-title">DISCOM Details</div>

        <div class="input-group">
            <input name="discom">
            <label>DISCOM</label>
        </div>

        <div class="input-group">
            <input name="discom_consumer_id">
            <label>DISCOM Consumer ID</label>
        </div>

        <!-- DEVICE -->
        <div class="col-span-2 section-title">Meter / Device</div>

        <div class="input-group"><input name="meter_serial_number"><label>Meter Serial Number</label></div>
        <div class="input-group"><input name="modem_profile"><label>Modem Profile</label></div>
        <div class="input-group"><input name="imei"><label>IMEI</label></div>
        <div class="input-group"><input name="modem_serial_no"><label>Modem Serial No</label></div>
        <div class="input-group"><input name="panel_serial_no"><label>Panel Serial No</label></div>
        <div class="input-group"><input name="meter_profile"><label>Meter Profile</label></div>
        <div class="input-group"><input  type="number" name="multiplication_factor"><label>Multiplication Factor</label></div>

        <!-- COMPANY -->
        <div class="col-span-2 section-title">Company Info</div>

        <div class="input-group"><input name="company_name"><label>Company Name</label></div>
        <div class="input-group"><input name="contact_person"><label>Contact Person</label></div>

        <!-- ADDRESS -->
        <div class="col-span-2 section-title">Address</div>

        <div class="input-group"><input name="flat"><label>Flat / Building</label></div>
        <div class="input-group"><input name="area"><label>Area</label></div>
        <div class="input-group"><input name="landmark"><label>Landmark</label></div>
        <div class="input-group"><input name="pincode"><label>Pincode</label></div>
        <div class="input-group"><input name="country"><label>Country</label></div>
        <div class="input-group"><input name="state"><label>State</label></div>
        <div class="input-group"><input name="city"><label>City</label></div>

        <!-- LOCATION -->
        <div class="col-span-2 section-title">Location</div>

        <div class="input-group"><input name="latitude"><label>Latitude</label></div>
        <div class="input-group"><input name="longitude"><label>Longitude</label></div>

        <!-- BUTTON -->
        <div class="col-span-2 mt-6">
            <button class="w-full premium-btn">
                💾 Save Consumer
            </button>
        </div>

        </form>
    </div>
</div>

<style>

/* SECTION TITLE */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 10px;
    border-left: 4px solid #6366f1;
    padding-left: 10px;
}

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

.input-group input {
    width: 100%;
    padding: 14px;
    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;
}

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

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

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

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

.premium-btn:hover {
    transform: translateY(-2px) scale(1.02);
    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/consumers/create.blade.php ENDPATH**/ ?>