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


    <div class="row">
        <div class="widget">
            <div class="widget-header"> <i class="icon-plus"></i>
                <h3>Create New Category</h3>
            </div>
            <!-- /widget-header -->
            <div class="widget-content">

                <form method="POST" action="<?php echo e(route('subcategories.store')); ?>" accept-charset="UTF-8" class="form-horizontal">
                    <?php echo csrf_field(); ?>
                    <fieldset>

                        <div class="control-group">
                            <label class="control-label asterisk" for="firstname">App:</label>
                            <div class="controls">
                                <select name="category_id" class="span3">
                                    <option value="">Select App</option>
                                    <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($cat); ?>"> <?php echo e($value); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <?php if($errors->has('category_id')): ?>
                                    <span class="text-danger"><?php echo e($errors->first('category_id')); ?></span>
                                <?php endif; ?>
                            </div> <!-- /controls -->
                        </div> <!-- /control-group -->

                        <div class="control-group">
                            <label class="control-label asterisk" for="firstname">Name:</label>
                            <div class="controls">
                                <input class="span3" name="name" type="text" id="name" placeholder="Category Name
"><?php if($errors->has('name')): ?>
                                    <span class="text-danger"><?php echo e($errors->first('name')); ?></span>
                                <?php endif; ?>
                            </div> <!-- /controls -->
                        </div> <!-- /control-group -->

                        <br />


                        <div class="form-actions">
                            <input class="btn btn-primary" type="submit" value="Submit">
                            <a href="<?php echo e(url('subcategorieslist')); ?>" class="btn btn-default">Back</a>
                        </div> <!-- /form-actions -->
                    </fieldset>
                </form>
                <!-- /shortcuts -->
            </div>
            <!-- /widget-content -->
        </div>
        <!-- /widget -->
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>