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

Item Type insert and update item type

@endsection @section('main-content')

Entry

{!! Form::open(['method' => 'PATCH', 'url' => '/admin/sub-item-types/' .$sub_item_type->sub_item_type_id]) !!}
{!! Form::label('Name') !!} {!! Form::text('sub_item_type_name', $sub_item_type->sub_item_type_name, ['class' => 'form-control', 'placeholder' => 'Name']) !!} @if ($errors->has('sub_item_type_name')) {!! $errors->first('sub_item_type_name') !!}@endif
{!! Form::label('Code') !!} {!! Form::text('sub_item_type_code', $sub_item_type->sub_item_type_code, ['class' => 'form-control', 'placeholder' => 'Code']) !!} @if ($errors->has('item_type_code')) {!! $errors->first('sub_item_type_code') !!}@endif
{!! Form::label('Item Type') !!} {!! Form::select('item_type_id',$item_type, null, ['class' => 'form-control','id' => 'item_type_id']) !!}
{!! Form::label('Status') !!} {!! Form::select('sub_item_type_is_exist', [1 => 'Active', 0 => 'Inactive'], isset($sub_item_type->sub_item_type_is_exist) ? $sub_item_type->sub_item_type_is_exist : null, ['class' => 'form-control']) !!}
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection