

<?php $__env->startSection('content'); ?>

<div class="container mt-4">
    <a href="<?php echo e(route('categories.index')); ?>" class="btn btn-primary">Back</a>
    <div class="row">
        <form action="<?php echo e(route(name: 'categories.store')); ?>" method="post" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
          <div class="mt-3">
                <label for="name">Category Name:</label>
                <input type="text" placeholder="Enter Category Name" name="name" id="name" class="form-control" required>
            </div>
           
            <div class="mt-3">
                <label for="image">Image:</label>
                <input type="file" name="icon" id="icon" class="form-control" required>
            </div>
        
            <br>
            <button type="submit" class="btn btn-dark">Add Category</button>


        </form>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\khruk\Desktop\ecommerce\megastore\resources\views/dashboard/categories/create.blade.php ENDPATH**/ ?>