| 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/resources/views/admin/attr/ |
Upload File : |
@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...
?>
<table>
<div>
@foreach($edit_attr as $key => $pro)
<tr style="font-size: 14px;background: silver;">
<form role="form" id="spForm" action="{{URL::to('/update-attr/'.$pro->attr_id)}}" method="post" enctype="multipart/form-data">
@csrf
<td style="padding-right: 5px;">
<label class=" title" for="exampleInputEmail1">SKU</label>
<input type="text" value="{{$pro->product_sku}}" name ="product_sku"class="form-control" id="title" placeholder="Tên danh mục">
</td>
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">SIZE</label>
<input type="text" value="{{$pro->product_size}}" name ="product_size"class="form-control" id="slug" placeholder="Tên danh mục">
</td>
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">Tên Thuộc Tính </label>
<input type="text" value="{{$pro->product_name_attr}}"name ="product_name_attr"class="form-control" id="slug" placeholder="Tên danh mục">
</td>
{{-- <td style="padding-right: 5px;">
<label for="exampleInputEmail1">Tuổi Rựu</label>
<input type="text" value="{{$pro->product_age}}" name ="product_age"class="form-control" id="slug" placeholder="Tên danh mục">
</td> --}}
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">thông tin thêm </label>
<textarea id="ckeditor2" name ="product_sold"class="form-control" id="slug" placeholder="Tên danh mục">{{$pro->product_sold }}</textarea>
</td>
</tr>
<tr style="font-size: 14px;background: silver;">
{{-- <td style="padding-right: 5px;">
<label for="exampleInputEmail1">Nồng Độ Cồn</label>
<input type="text" name ="product_alco"class="form-control" value="{{$pro->product_alco}}"id="slug" placeholder="Tên danh mục">
</td>
--}}
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">Giá Bán</label>
<input type="text"value="{{$pro->product_price}}" name ="product_price"class="form-control" id="slug" placeholder="Tên danh mục">
</td>
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">Số Lượng</label>
<input type="text"value="{{$pro->product_quantity}}" name ="product_quantity"class="form-control" id="slug" placeholder="Tên danh mục">
</td>
<td style="padding-right: 5px;">
<label for="exampleInputEmail1">Màu sắc</label>
<input type="text"value="{{$pro->product_color}}" name ="product_color"class="form-control" id="slug" placeholder="Tên danh mục">
</td>
<td>
<label for="exampleInputEmail1">Hình ảnh </label>
<input type="file" value="{{$pro->product_image}}"name ="product_image"class="form-control" id="exampleInputEmail1" r>
</td>
<td style="padding-left: 5px;">
<button type="submit" name="add_ttr"class="btn btn-info">Cập nhật danh mục</button>
</td>
</form>
<tr>
</div>
</table>
@endforeach
</div>
</section>
</div>
<div class="col-lg-12">
@endsection