@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

Item Type

@endsection @section('main-content')

Entry

{!! Form::open(['method' => 'PATCH', 'url' => '/admin/item-types/' .$item_type->item_type_id]) !!}
{!! Form::label('Name') !!} {!! Form::text('item_type_name', $item_type->item_type_name, ['class' => 'form-control', 'placeholder' => 'Name']) !!} @if ($errors->has('item_type_name')) {!! $errors->first('item_type_name') !!}@endif
{!! Form::label('Synonyms') !!} {!! Form::text('item_type_synonyms', $item_type->item_type_synonyms, ['class' => 'form-control', 'placeholder' => 'Synonyms']) !!} @if ($errors->has('item_type_synonyms')) {!! $errors->first('item_type_synonyms') !!}@endif
{!! Form::label('Code') !!} {!! Form::text('item_type_code', $item_type->item_type_code, ['class' => 'form-control', 'placeholder' => 'Code']) !!} @if ($errors->has('item_type_code')) {!! $errors->first('item_type_code') !!}@endif
{!! Form::label('Attribute Sets') !!} {!! Form::select('item_type_attribute_sets[]',$attribute_sets, null, ['class' => 'form-control','id' => 'item_type_attribute_sets' ,'multiple' => 'multiple']) !!}
{!! Form::label('Expanded') !!} {!! Form::select('expanded[]',$expanded, null, ['class' => 'form-control','id' => 'expanded' ,'multiple' => 'multiple']) !!}
{!! Form::label('Home') !!} {!! Form::select('item_type_is_home', [0 => 'No',1 => 'Yes'], $item_type->item_type_is_home, ['class' => 'form-control']) !!}
{!! Form::label('Status') !!} {!! Form::select('item_type_is_exist', [1 => 'Active', 0 => 'Inactive'], $item_type->item_type_is_exist, ['class' => 'form-control']) !!}
{!! Form::label('Point') !!} {!! Form::number('point', $item_type->point, ['class' => 'form-control', 'placeholder' => 'Point']) !!}
{!! Form::label('Point Type') !!} {!! Form::select('point_type', $pointTypes, $item_type->point_type, ['class' => 'form-control', 'id' => 'pointType']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection