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

<div class="mb-4">
    <h4 class="fw-bold">Add Forum Category</h4>
    <p class="text-muted small">Category is required before players can start posting.</p>
</div>

<form method="post" action="<?php echo e(route('forumcontrol.store')); ?>">
    <?php echo csrf_field(); ?>

    <div class="card shadow-sm">
        <div class="card-body">

            
            <div class="mb-3">
                <label class="form-label fw-bold">Category Name</label>
                <input type="text" class="form-control" name="category_name" value="<?php echo e(old('category_name')); ?>">
                <?php $__errorArgs = ['category_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="text-danger small"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            
            <div class="mb-3">
                <label class="form-label fw-bold">Description</label>
                <textarea class="form-control" rows="6" name="description"><?php echo e(old('description')); ?></textarea>
                <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="text-danger small"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            
            <div class="d-flex justify-content-end gap-2">
                <button type="submit" class="btn btn-primary">
                    Add Category
                </button>
                <button type="reset" class="btn btn-light">
                    Clear
                </button>
            </div>

        </div>
    </div>

</form>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('manage.admin.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp8.2\htdocs\MCCMS\resources\views/manage/admin/forum/addcategory.blade.php ENDPATH**/ ?>