@extends('Myadmin::layout.basic') @section('content')

{{{ trans($_CONST["LANG_DEST"].".class_title")}}}

產品管理
{{ Form::open(array( 'action'=>$_CONST["CONTROLLER_ROUTE"].'.store', 'class'=>'form-horizontal well'))}}
{{{ trans($_CONST["LANG_DEST"].".new_class_name")}}}: {{ Form::text('title', null, array('class' => 'form-control','placeholder'=>'英文','required' => 'required'))}} {{ Form::text('title_tw', null, array('class' => 'form-control','placeholder'=>'中文','required' => 'required'))}} {{-- 分類順序 {{ Form::text('category_order', null, array('class' => 'form-control','placeholder'=>'順序(1,2,3...)','required' => 'required'))}} --}}
{{ Form::close()}} @foreach ($categories as $category) id}}> {{-- --}} @endforeach
分類英文名稱 分類中文名稱 分類順序 操作 刪除 呈現
{{{ $category-> name }}} {{{ $category-> name_tw }}}
{{-- {{ Form::model($category, array( 'route' => array($_CONST["CONTROLLER_ROUTE"].'.orderchange', $category->id), 'method' => 'put' ))}} --}} {{ Form::open(['url' => 'admin/productclass/orderchange/'. $category->id, 'method' => 'get' ]) }} {{ Form::text('category_order', '', array('class' => 'form-control','placeholder'=> $category->order))}} {{ Form::close()}}
id)}}">{{{ $category->title}}} {{ Form::model($category, array( 'route' => array($_CONST["CONTROLLER_ROUTE"].'.update', $category->id), 'class' =>'form-horizontal', 'method' => 'put' ))}}
{{ Form::text('title', '', array('class' => 'form-control','placeholder'=>'英文'))}} {{ Form::text('title_tw', '', array('class' => 'form-control','placeholder'=>'中文'))}}
{{ Form::close()}}
{{ Form::open(array( 'route'=>array($_CONST["CONTROLLER_ROUTE"].'.destroy', $category->id), 'method' => 'delete') )}} 刪除 {{-- {{ Form::submit(trans($_CONST["LANG_DEST"].".class_delete_action"), array("class"=>"delete"));}} --}} {{ Form::close()}}
@if($category->show == '1') {{ Form::checkbox('show', null, true, array('class' => 'form-control' , 'style' => 'width:15px')) }} @else {{ Form::checkbox('show', null, false, array('class' => 'form-control' , 'style' => 'width:15px')) }} @endif
@stop