<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Edit Category</title>
</head>
<body>
    <h1>Edit Category</h1>

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

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

        <label for="nameCategory">Category:</label>
        <input type="text" name="nameCategory" id="nameCategory"
               value="<?php echo e(old('nameCategory', $category->nameCategory)); ?>" required>

        <button type="submit">Update</button>
        <a href="<?php echo e(route('categories.index')); ?>">Back</a>
    </form>
</body>
</html>
<?php /**PATH C:\xampp\htdocs\advweb-prak-w9\resources\views/categories_edit.blade.php ENDPATH**/ ?>