<div class="form-group row">
    <div class="col-4">
        <label for="product_name">Product Name</label>
        <input type="text" name="name" value="<?php echo e(@$product->name); ?>" id="product_name" placeholder="eg. Super 1" class="form-control">
    </div>
    <div class="col-4">
        <label for="code">Code</label>
        <input type="text" name="code" value="<?php echo e(@$product->code); ?>" id="code" placeholder="eg. S1" class="form-control">
    </div>
    <div class="col-4">
        <label for="pump">Search Pump</label>
        <select id="user-pump" name="pump_id" class="select2 form-select">
            <?php $__currentLoopData = $pumps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pump): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($pump->id); ?>" <?php echo e($pump->id == @$product->pump_id ? 'selected' : ''); ?>><?php echo e($pump->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>
<div class="form-group row mt-2">
    <div class="col-4">
        <label for="readings">Readings</label>
        <input type="text" name="readings" value="<?php echo e(@$product->readings); ?>" id="readings" placeholder="0.00" class="form-control">
    </div>
    <div class="col-4">
        <label for="price">Prices per Litre</label>
        <input type="text" name="price" value="<?php echo e(@$product->price); ?>" id="price" placeholder="0.00" class="form-control">
    </div>
    <div class="col-4">
        <label for="category">Product Category</label>
        
        <select id="user-category" name="category" class="select2 form-select">
            <?php $__currentLoopData = ['diesel','petrol','kerosine']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($category); ?>" <?php echo e($category == @$product->category ? 'selected' : ''); ?>><?php echo e(ucfirst($category)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>

<div class="row col-2 form-group mt-3">

    <?php if(@$product): ?>
    <button type="submit" class="btn btn-primary btn-lg">Update</button>
    <?php else: ?>
    <button type="submit" class="btn btn-primary btn-lg">Create</button>
    <?php endif; ?>
</div><?php /**PATH C:\Users\spine\Documents\others\petrol_dashboard\resources\views/products/form.blade.php ENDPATH**/ ?>