@extends('Myadmin::layout.basic') @section('header') @stop @section('content')
{{ Form::open(array( 'action'=>$_CONST["CONTROLLER_ROUTE"].'.store', 'class'=>'form-horizontal well', 'files' => true ))}} @if($errors->has()) @endif
@if ($categorytype == 1)

{{ Form::hidden('categorytype', '1', array('class' => 'form-control')) }} @elseif ($categorytype == 2)

{{ Form::hidden('categorytype', '2', array('class' => 'form-control')) }} @else
{{ Form::select('category_id', $option, '', array('class' => 'form-control'))}}
@endif
{{ Form::text('product_code', '', array('class' => 'form-control'))}}
{{ Form::text('title', null, array('class' => 'form-control'))}}
{{ Form::text('format', 'red / S', array('class' => 'form-control'))}}
{{ Form::number('price', null, array('class' => 'form-control'))}}
{{ Form::number('selling_price', null, array('class' => 'form-control'))}}
{{ Form::number('available_amount', null, array('class' => 'form-control'))}}
{{ Form::number('stock_amount', null, array('class' => 'form-control'))}}
{{ Form::text('video_url', null, array('class' => 'form-control'))}}
{{ Form::select('special_case', array('無' => '無', '限量商品' => '限量商品', '熱銷商品' => '熱銷商品') , '無', array('class' => 'form-control'))}}
{{ Form::select('bonus_category_id', $bonusoption, null, array('class' => 'form-control'))}}
{{ Form::radio('is_available', '上架' )}}上架
{{ Form::radio('is_available', '下架', true )}}下架
{{--
{{ Form::radio('is_available', '隱藏' )}}隱藏
--}}
{{ Form::number('stock_threshold', null, array('class' => 'form-control'))}}
{{-- {{ Form::file('image')}} --}} asset('images/photoshop.jpg') }}">

Name : {{Form::text('img_title0', null, array('class' => 'form-control'))}}
Contents : {{Form::textarea('img_description0', null, array('class' => 'input-xlarge form-control'))}}

{{ Form::textarea('description', null, array('class' => 'input-xxlarge form-control'))}} {{--origin_content -> description--}}

{{--
{{ Form::submit('Click me!!')}}
--}}
{{ 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