@extends('Myadmin::layout.basic') @section('header') @stop @section('content')
{{ Form::model($product, array( 'route'=> array($_CONST["CONTROLLER_ROUTE"].'.update', $product->id), 'class'=>'form-horizontal well', 'method' => 'put', 'files' => true ))}}
{{ Form::text('title', null, array('class' => 'form-control'))}}
{{ Form::select('category_id', $option, null, array('class' => 'form-control'))}}
{{ Form::text('price', null, array('class' => 'form-control'))}}
{{ Form::text('format', 'red / S', array('class' => 'form-control'))}}
{{ Form::radio('is_available', '上架', true )}}上架
{{ Form::radio('is_available', '下架' )}}下架
{{ Form::radio('is_available', '隱藏' )}}隱藏
{{ Form::select('type', array('一般商品'=>'一般商品', '集量商品'=>'集量商品', '限時商品'=>'限時商品') , null, array('class' => 'form-control'))}}
{{ Form::text('stock_amount', null, array('class' => 'form-control'))}}
{{ Form::text('available_amount', null, array('class' => 'form-control'))}}
{{ Form::text('stock_threshold', null, array('class' => 'form-control'))}}
{{ Form::file('image')}} @if (strlen($product->img_path) > 0) @else asset('images/photoshop.jpg') }}"> @endif
{{ Form::textarea('description', null, array('class' => 'form-control'))}}

{{ Form::close()}}
@stop @section('js-snippet') @include('Myadmin::js.preview', array('bind' => 'input[name=image]','target' => '#preview')) @include('Myadmin::js.ckeditor', array( 'target' => 'origin_content', )) @stop