@extends('backend/layouts/default') {{-- Page title --}} @section('title') @if ($model->id) @lang('admin/models/table.update') :: @else @lang('admin/models/table.create') :: @endif @parent @stop {{-- Page content --}} @section('content')
@if(isset($clone_model)) @lang('general.back') @else @lang('general.back') @endif

@if ($model->id) @lang('admin/models/table.update') @elseif(isset($clone_model)) @lang('admin/models/table.clone') @else @lang('admin/models/table.create') @endif

{{ Form::open(['method' => 'POST', 'files' => true, 'class' => 'form-horizontal' ]) }}
{{ $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') }}
@lang('general.months') {{ $errors->first('eol', '
:message') }}
@if ($model->image)
{{ Form::checkbox('image_delete') }} {{ $errors->first('image_delete', '
:message') }}
@endif
{{ Form::file('image') }} {{ $errors->first('image', '
:message') }}
@if(isset($clone_model)) @lang('button.cancel') @else @lang('button.cancel') @endif
@stop