Ejemplo n.º 1
0
					<label class="switch">
	      				<input type="checkbox" name="product_active" value="1" {{$checked}}>
	      				<span></span>
	    			</label>
				</div>
				{!!$errors->first('product_active', "<p class='c-red input_error_tips'>:message</p>")!!}
		  	</div>
		</div>
	</div>

	<div class="form-group">
		<label>商品类型 <span class="c-red">*</span></label>
		<select class="form-control input_check" name="product_type" id="product_type">
			<?php 
$modelProduct = new \App\Product();
$types = $modelProduct->thisType('all');
?>
			@foreach($types as $key => $type)
				@if($key==$product_type)
					<option value="{{$key}}" selected>{{$type}}</option>
				@else
					<option value="{{$key}}">{{$type}}</option>
				@endif
			@endforeach
		</select>
        {!!$errors->first('product_type', "<p class='c-red input_error_tips'>:message</p>")!!}
    </div>

    <div class="form-group">
    	<label>商品图片 </label>
		<div class="row">