<!DOCTYPE html>
<html>
<head>
    <title>Edit Pizza | Admin</title>
</head>
<body>
<h2>Edit Pizza 🍕</h2>
<a href="<?php echo e(route('admin.pizzas.index')); ?>">Kembali</a>

<?php if($errors->any()): ?>
    <ul style="color:red;">
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><?php echo e($error); ?></li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ul>
<?php endif; ?>

<form action="<?php echo e(route('admin.pizzas.update', $pizza->id)); ?>" method="POST" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <?php echo method_field('PUT'); ?>
    <label>Nama :</label><br>
    <input type="text" name="nama_pizza" value="<?php echo e($pizza->nama_pizza); ?>" required><br>

    <label>Harga:</label><br>
    <input type="number" name="harga_pizza" value="<?php echo e($pizza->harga_pizza); ?>" required><br>

    <label>Deskripsi:</label><br>
    <textarea name="deskripsi"><?php echo e($pizza->deskripsi); ?></textarea><br>

    <label>Gambar:</label><br>
    <?php if($pizza->gambar): ?>
        <img src="<?php echo e(asset('storage/'.$pizza->gambar)); ?>" width="80"><br>
    <?php endif; ?>
    <input type="file" name="gambar"><br><br>

    <button type="submit">Update</button>
</form>
</body>
</html>
<?php /**PATH C:\laragon\www\pizza_queen_app\resources\views/admin/pizzas/edit.blade.php ENDPATH**/ ?>