<!DOCTYPE html>
<html>
<head>
    <title>Edit Product</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="p-4">

<h3>Edit Product</h3>

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

<input class="form-control mb-2" name="name" value="<?php echo e($product->name); ?>">
<?php if($product->image): ?>
    <div class="mb-2">
        <img src="<?php echo e(asset('storage/'.$product->image)); ?>" width="100">
    </div>
<?php endif; ?>

<input type="file" name="image" class="form-control mb-2">
<input class="form-control mb-2" name="price" value="<?php echo e($product->price); ?>">
<input class="form-control mb-2" name="quantity" value="<?php echo e($product->quantity); ?>">
<textarea name="description" class="form-control mb-2" placeholder="Product Description"><?php echo e($product->description); ?></textarea>


<button class="btn btn-success">Update</button>
</form>

</body>
</html>

<?php /**PATH C:\xampp\htdocs\ecommerce-admin\resources\views/products/edit.blade.php ENDPATH**/ ?>