<?php $__env->startSection('title'); ?> Sửa bài viết



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



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



<div class="">



  <div class="clearfix"></div>



  <div class="row">



    <div class="col-md-12 col-sm-12 col-xs-12">



      <div class="x_panel"> <?php echo $__env->make('errors.note', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>



        <div class="x_content">



          <form class="form-horizontal form-label-left" method="post" enctype='multipart/form-data'>



            <span class="section">Thêm Tin Tức</span>



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



              <div class="item form-group">



                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="title">Tiêu đề<span class="required">*</span> </label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input id="title" class="form-control col-md-7 col-xs-12 input" name="title"  required="required" type="text" value="<?php if(!empty(old('title'))): ?><?php echo e(old('title')); ?><?php else: ?><?php echo e($get_old->title); ?><?php endif; ?>">



                </div>



              </div>



              <div class="item form-group">



                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="alias">Đường dẫn </label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input id="alias" class="form-control col-md-7 col-xs-12 output" name="alias" type="text" value="<?php if(!empty(old('alias'))): ?><?php echo e(old('alias')); ?><?php else: ?><?php echo e($get_old->alias); ?><?php endif; ?>">



                </div>



              </div>



              <div class="item form-group">



                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="description_seo">Title Seo </label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input type="text" id="title_seo" name="title_seo" class="form-control col-md-7 col-xs-12" value="<?php if(!empty(old('title_seo'))): ?><?php echo e(old('title_seo')); ?><?php else: ?><?php echo e($get_old->title_seo); ?><?php endif; ?>">



                </div>



              </div>



              <div class="item form-group">



                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="description_seo">Description Seo </label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input type="text" id="description_seo" name="description_seo" class="form-control col-md-7 col-xs-12" value="<?php if(!empty(old('description_seo'))): ?><?php echo e(old('description_seo')); ?><?php else: ?><?php echo e($get_old->description_seo); ?><?php endif; ?>">



                </div>



              </div>



              <div class="item form-group">



                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="keyword_seo">Keyword Seo </label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input type="text" id="keyword_seo" name="keyword_seo" class="form-control col-md-7 col-xs-12" value="<?php if(!empty(old('keyword_seo'))): ?><?php echo e(old('keyword_seo')); ?><?php else: ?><?php echo e($get_old->keyword_seo); ?><?php endif; ?>">



                </div>



              </div>



              <div class="item form-group">



                <label for="image" class="control-label col-md-3">Ảnh mô tả</label>



                <div class="col-md-6 col-sm-6 col-xs-12">



                  <input type="file" id="fileUpload" name="image" class="form-control col-md-7 col-xs-12">



                </div>



                <div class="col-md-1 col-sm-1 col-xs-12 show-img" id="image-holder">



                  <?php if(file_exists($get_old->thumb)): ?> <img src="<?php echo e(url($get_old->thumb)); ?>" class="img-thumbnail"> <?php endif; ?>



                </div>



              </div>



              <div class="item form-group">



                <label for="password" class="control-label col-md-3">Mô tả</label>



                <div class="col-md-9 col-sm-9 col-xs-12">



                  <textarea name="description" id="description" class="form-control"><?php if(!empty(old('description'))): ?><?php echo e(old('description')); ?><?php else: ?><?php echo e($get_old->description); ?> <?php endif; ?></textarea>



                </div>



              </div>



              <div class="item form-group">



                <label for="password" class="control-label col-md-3">Nội dung</label>



                <div class="col-md-9 col-sm-9 col-xs-12">



                  <textarea name="content" id="content" class="form-control"><?php if(!empty(old('content'))): ?><?php echo e(old('content')); ?> <?php else: ?><?php echo e($get_old->content); ?><?php endif; ?></textarea>



                </div>



              </div>



              <script type="text/javascript">CKEDITOR.replace('content')</script>



            </div>



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



              <div class="item form-group">



                <label class="control-label col-md-12 col-sm-12 col-xs-12" style="text-align: left;" for="category">Hiển thị </label>



                <div class="col-md-12 col-sm-12 col-xs-12">



                  <p style="padding: 5px;">



                    <input type="checkbox" name="hot" value="hot" class="flat" <?php if($get_old->hot == 1): ?> checked <?php endif; ?>/>



                    Hot <br />



                    <input type="checkbox" name="home" value="home" class="flat" <?php if($get_old->home == 1): ?> checked <?php endif; ?>/>



                    Trang chủ <br />



                    <input type="checkbox" name="focus" value="focus" class="flat" <?php if($get_old->focus == 1): ?> checked <?php endif; ?>/>



                    Nổi bật <br />



                  <p>



                </div>



              </div>



            </div>



            <div class="clearfix"></div>



            <div class="ln_solid"></div>



            <div class="form-group">



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



                <input id="submit" name="submit" type="submit" class="btn btn-success" value="Cập nhật" />



              </div>



            </div>



            <?php echo e(csrf_field()); ?>







          </form>



        </div>



      </div>



    </div>



  </div>



</div>



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



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