

<?php $__env->startSection('content'); ?>
<div class="card p-4">
    <h4>Edit Product</h4>

    <form action="<?php echo e(route('products.update', $product->id)); ?>" method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <input type="text" name="title" value="<?php echo e($product->title); ?>" class="form-control mb-2" required>

        <?php if($product->image): ?>
            <div class="mb-2">
                <img src="<?php echo e(asset($product->image)); ?>" width="80" height="80" alt="">
            </div>
        <?php endif; ?>
        <input type="file" name="image" class="form-control mb-2">

        <input type="number" step="0.01" name="price" value="<?php echo e($product->price); ?>" class="form-control mb-2" required>
        <textarea name="description" class="form-control mb-2"><?php echo e($product->description); ?></textarea>
        <input type="text" name="brand" value="<?php echo e($product->brand); ?>" class="form-control mb-2">
        <input type="text" name="condition" value="<?php echo e($product->condition); ?>" class="form-control mb-2">
        <input type="number" name="stock" value="<?php echo e($product->stock); ?>" class="form-control mb-2" required>

        <select name="category" class="form-control mb-2" required>
            <option value="Men" <?php echo e($product->category == 'Men' ? 'selected' : ''); ?>>Men</option>
            <option value="Women" <?php echo e($product->category == 'Women' ? 'selected' : ''); ?>>Women</option>
            <option value="Children" <?php echo e($product->category == 'Children' ? 'selected' : ''); ?>>Children</option>
        </select>

        <select name="shop_category" class="form-control mb-3" required>
            <option value="water-technology" <?php echo e($product->shop_category == 'water-technology' ? 'selected' : ''); ?>>Water Technology</option>
            <option value="pool-technology" <?php echo e($product->shop_category == 'pool-technology' ? 'selected' : ''); ?>>Pool Technology</option>
            <option value="our-services" <?php echo e($product->shop_category == 'our-services' ? 'selected' : ''); ?>>Our Services</option>
        </select>

        <button class="btn btn-success">Update Product</button>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.admin-dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\HP\Desktop\shresthi\app (2)\app\resources\views/admin/pages/products/edit.blade.php ENDPATH**/ ?>