<?php $__env->startSection('content'); ?>
    <div class="content-wrapper">
        <section class="content-header">
            <h1 class="pull-left">
                <?php echo e($title); ?> Form
            </h1>
            <p>&nbsp;</p>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <?php if(!empty($record)): ?>
                        <?php echo Form::model($record, ['route' => [$route.'update',$record->id],'files' =>true , 'id'=>'myform', 'method' => 'patch', 'class' => 'ajax_submit','autocomplete'=>'off']); ?>

                    <?php else: ?>
                        <?php echo Form::open(['url' => route($route.'store'), 'files' =>true, 'method' => 'post','id'=>'myform' ,'class' => 'ajax_submit','autocomplete'=>'off']); ?>

                    <?php endif; ?>
                    <div class="box box-primary">
                        <div class="box-header with-border ">
                            <h3 class="box-title">Enter Details</h3>
                        </div>
                        <div class="box-body">
                            <?php echo $__env->make('admin.semester.form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        </div>
                        <div class="box-footer">
                            <a href="<?php echo e(route($route.'index')); ?>" type="submit"
                               class="btn btn-default pull-left">Back</a>
                            <button type="submit" class="btn btn-primary pull-right">Submit</button>
                        </div>
                    </div>
                    <?php echo Form::close(); ?>

                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('admin.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>