<?php $__env->startSection('header'); ?>
<script src="<?php echo App::make("myadmin")->asset('/ckeditor/ckeditor.js'); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="row-fluid">
    <div>
        <h4 class="nametag"><?php echo $_CONST['title']; ?></h4>
        <hr>
        <div class="span10 offset1">
            <?php echo Form::open(array('action'=> 'admin.delivery.store', 'files'=>true, 'class'=>'form-horizontal well')); ?>

                <?php if($errors->has()): ?>
                                <div class="alert alert-warning" role="alert"><?php echo $errors->first(); ?></div>
                <?php endif; ?>

            <div class="form-group ">
                <label class="col-sm-2 control-label">標題：</label>
                <div class="col-sm-10">
                    <?php echo Form::text('title', null, array('class' => 'form-control')); ?>

                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">網址：</label>
                <div class="col-sm-10">
                    <?php echo Form::text('url', null, array('class' => 'form-control')); ?>

                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">文章內容：</label>
                <div class="col-sm-10">
                    <?php echo Form::textarea('origin_content', null, array('class' => 'form-control')); ?>

                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label">呈現：</label>
                <div class="col-sm-10">
                    <?php echo Form::checkbox('is_available', true, array('class' => 'form-control')); ?>

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-10">
                    <input type="submit" name="" value="儲存" class="btn btn-success"  />
                    <a href="<?php echo URL::previous(); ?>" class="btn btn-default">回上頁 </a>
                </div>
            </div>
            <?php echo Form::close(); ?>

            <input type="hidden" class="hidden" id="change-index"/>
        </div> <!-- span10 offset1 -->
    </div>
</div>

    <script>
        <?php echo $__env->make('Myadmin::js.ckeditor', array(
            'target' => 'origin_content',
        ), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </script>
<?php $__env->stopSection(); ?>

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