403Webshell
Server IP : 103.161.17.216  /  Your IP : 216.73.216.1
Web Server : nginx/1.18.0
System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/huyhoangvn.com/editthanhtra/editlayout/admin/product/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/huyhoangvn.com/editthanhtra/editlayout/admin/product/edit_product.blade.php
@extends('admin_layout')
 @section('admin_content')
        <div class="row">
            <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            Cập nhật sản phẩm  
                        </header>

                        <div class="panel-body">
                            <?php
    $message = Session::get('message');if ($message) {
        echo '<span class="text-alert">',$message,'</span>';
        Session::put('message',null);
            // code...
        }
        // code...
    
    ?>
                            <div class="position-center">
                            @foreach($edit_product as $key => $pro)
                                <form role="form" id="spForm" action="{{URL::to('/update-product/'.$pro->product_id)}}" method="post" enctype="multipart/form-data">
                                    {{csrf_field()}}
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Tên danh sản phẩm </label>
                                    <input type="text" name ="product_name"class="form-control"  id="title" onkeyup="ChangeToSlug();"  minlength="2" placeholder="Tên danh mục" value="{{$pro->product_name}}" required>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">Giá Sản Phẩm</label>
                                    <input type="text" data-role="text"  name="product_price" value="{{$pro->product_price}}" class="form-control">
                                </div>
                                 <div class="form-group">
                                    <label for="exampleInputEmail1">Slug</label>
                                    <input type="text" name ="slug_product"class="form-control" id="slug" placeholder="Tên danh mục" minlength="2" value="{{$pro->slug_product}}"required>
                                </div>

                                <div class="form-group">
                                    <label for="exampleInputPassword1">từ khóa danh mục</label>
                                    <textarea style="resize:none;" rows= "5"class="form-control" name="product_keywords" placeholder="Mô tả danh mục">{{$pro->meta_keywords}}</textarea> 
                                    
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">Hình ảnh sản phẩm</label>
                                    <input type="file" name ="product_image"class="form-control" id="exampleInputEmail1">
                                    <img src="{{URL::to('public/uploads/product/'.$pro ->product_image)}}" height="100" with="150">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">Mô tả SP</label>
                                    <textarea id="ckeditor1"style="resize:none;" rows= "5"class="form-control" name="product_desc" placeholder="Mô tả SP" >{{$pro->product_desc}}</textarea> 

                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">Thông tin sản phẩm </label>
                                    <textarea style="resize:none;" id="ckeditor1" rows= "5"class="form-control" name="product_info" placeholder="thông tinh sản phẩm " required >{{$pro->product_info}}</textarea> 
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">nội dung sản phẩm </label>
                                    <textarea id="ckeditor2" style="resize:none;" rows= "5"class="form-control" name="product_content" placeholder="Mô tả nội dung SP">{{$pro->product_content}}</textarea> 
                                </div>


                                <div class="form-group">
                                    <label for="exampleInputPassword1">Thêm Tags</label>
                                    <input type="text" data-role="tagsinput"  name="product_tag" value="{{$pro->product_tag}}" class="form-control">
                                </div>

                                <div class="form-group">
                                <label for="exampleInputEmail1">Danh mục sản phẩm</label>
                                <select name="product_cate" class="form-control input-sm m-bot15">
                                @foreach($cate as $key => $cat)
                                <option value="{{$cat->cate_id}}"> {{$cat->cate_name}}  </option>
                                @foreach($cate_product as $key => $cate_pro)

                                @if($cat->cate_id==$cate_pro->cate_id)
                                <option  <?php if($cate_pro->category_id==$pro->category_id) echo"selected"; ?> value="{{$cate_pro->category_id}}">---{{$cate_pro->category_name}}---  </option>
                                @endif

                                @endforeach
                                @endforeach
                                 </select>
                                </div>
                                <div class="form-group">
                                <label for="exampleInputEmail1">Thương hiệu</label>
                                <select name="product_brand" class="form-control input-sm m-bot15">

                                @foreach($brand_product as $key => $brand)
                                @if($brand->brand_id==$pro->brand_id)
                               <option selected value="{{$brand ->brand_id}}"> {{$brand->brand_name}} </option>
                               @else
                                <option value="{{$brand ->brand_id}}"> {{$brand->brand_name}} </option>
                                @endif
                                 @endforeach
                                 </select>
                                </div>
                                
                           <div class="form-group">
                                <label for="exampleInputEmail1">Hiển Thị</label>
                                @foreach($edit_product as $key => $pro)
                                <select name="product_status" class="form-control input-sm m-bot15" >
                                <option value="1">hiện</option>
                                <option value="0">ẩn </option>
                                 </select>
                                </div>
                                @endforeach
                                <button type="submit" name="add_product"class="btn btn-info">Cập nhật sản phẩm</button>
                            </form>
                            @endforeach
                            </div>
                        </div>
                    </section>

            </div>
            <div class="col-lg-12">

@endsection

Youez - 2016 - github.com/yon3zu
LinuXploit