<section class="content-header">
    <h1>
        Файл
    </h1>
</section>

<section class="content">

    <div class="row">

        <div class="col-md-6">

            <div class="box box-primary">

                <div class="box-header with-border">

                    <h3 class="box-title">Шинээр нэмэх</h3>

                    <?php echo Form::open(['method' => 'post', 'url' => '/admin/files', 'files' => true]); ?>


                    <input type="hidden" value="other" name="filetype">

                    <div class="box-body">

                        <div class="form-group <?php echo $errors->has('title') ? 'has-error' : ''; ?>">

                            <?php echo Form::label('title', 'Гарчиг'); ?>


                            <?php echo Form::text('title', Input::get('title'), ['class' => 'form-control', 'placeholder' => 'Гарчиг']); ?>


                            <span class="help-block">

                                <?php echo $errors->has('title') ? $errors->first('title') : ''; ?>


                            </span>

                        </div>

                        <div class="form-group <?php echo $errors->has('filename') ? 'has-error' : ''; ?>">

                            <?php echo Form::label('filename', 'Файл'); ?>


                            <?php echo Form::file('filename'); ?>


                            <span class="help-block">

                                <?php echo $errors->has('filename') ? $errors->first('filename') : ''; ?>


                            </span>

                        </div>

                        <div class="form-group">

                            <?php echo Form::submit('Хадгалах', ['class' => 'btn btn-primary']); ?>


                        </div>

                    </div>

                    <?php echo Form::close(); ?>


                </div>

            </div>

        </div>

    </div>

</section>