@extends('layouts/default') {{-- Page title --}} @section('title') @if ($model->id) {{ trans('admin/models/table.update') }} @else {{ trans('admin/models/table.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
{{ Form::open(['method' => 'POST', 'files' => true, 'class' => 'form-horizontal' ]) }}
@if ($model->id)

{{ $model->name }}

@endif
{!! $errors->first('name', ' :message') !!}
{{ Form::select('manufacturer_id', $manufacturer_list , Input::old('manufacturer_id', $model->manufacturer_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('manufacturer_id', '
:message
') !!}
{{ Form::select('category_id', $category_list , Input::old('category_id', $model->category_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('category_id', '
:message
') !!}
{!! $errors->first('modelno', '
:message
') !!}
{{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', $model->depreciation_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('depreciation_id', '
:message
') !!}
{{ trans('general.months') }} {!! $errors->first('eol', '
:message
') !!}
{{ Form::select('custom_fieldset', \App\Helpers\Helper::customFieldsetList(),Input::old('custom_fieldset', $model->fieldset_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('custom_fieldset', '
:message
') !!}

{!! trans('general.markdown') !!}

{!! $errors->first('note', '
:message
') !!}
@if ($model->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', '
:message
') !!}
@endif
{{ Form::file('image') }} {!! $errors->first('image', '
:message
') !!}
@stop