@extends('layouts.master') @section('title') {{trans_choice('general.add',1)}} {{trans_choice('general.asset',1)}} @endsection @section('content')

{{trans_choice('general.add',1)}} {{trans_choice('general.asset',1)}}

{!! Form::open(array('url' => url('asset/store'), 'method' => 'post','class'=>'', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}

{{trans_choice('general.required',1)}} {{trans_choice('general.field',2)}}

{!! Form::label('asset_type_id',trans_choice('general.asset',1).' '.trans_choice('general.type',1),array('class'=>' control-label')) !!} {!! Form::select('asset_type_id',$types,null, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('current_value',trans_choice('general.current',1).' '.trans_choice('general.value',1),array('class'=>'')) !!}
# {{trans_choice('general.date',1)}} {{trans_choice('general.of',1)}} {{trans_choice('general.valuation',1)}} {{trans_choice('general.value',1)}} {{trans_choice('general.amount',1)}}
1

{{trans_choice('general.add_asset_msg',1)}}

{{trans_choice('general.optional',1)}} {{trans_choice('general.field',2)}}

{{trans_choice('general.add_asset_msg2',1)}}

{!! Form::label('purchase_date',trans_choice('general.purchase',1).' '.trans_choice('general.date',1),array('class'=>'')) !!} {!! Form::text('purchase_date',null, array('class' => 'form-control date-picker', 'placeholder'=>"",)) !!}
{!! Form::label('purchase_price',trans_choice('general.purchase',1).' '.trans_choice('general.price',1),array('class'=>'')) !!} {!! Form::text('purchase_price',null, array('class' => 'form-control touchspin', 'placeholder'=>"",)) !!}
{!! Form::label('replacement_value',trans_choice('general.replacement',1).' '.trans_choice('general.value',1),array('class'=>'')) !!} {!! Form::text('replacement_value',null, array('class' => 'form-control touchspin', 'placeholder'=>"",)) !!}
{!! Form::label('serial_number',trans_choice('general.serial_number',1),array('class'=>'')) !!} {!! Form::textarea('serial_number',null, array('class' => 'form-control')) !!}
{!! Form::label('notes',trans_choice('general.description',1),array('class'=>'')) !!} {!! Form::textarea('notes',null, array('class' => 'form-control')) !!}
{!! Form::label('files',trans_choice('general.file',2).'('.trans_choice('general.borrower_file_types',1).')',array('class'=>'')) !!} {!! Form::file('files[]', array('class' => 'form-control', 'multiple'=>"",'rows'=>'3')) !!}
{{trans_choice('general.select_thirty_files',1)}}

{{trans_choice('general.custom_field',2)}}

@foreach($custom_fields as $key)
{!! Form::label($key->id,$key->name,array('class'=>'')) !!} @if($key->field_type=="number") required==1) required @endif> @endif @if($key->field_type=="textfield") required==1) required @endif> @endif @if($key->field_type=="date") required==1) required @endif> @endif @if($key->field_type=="textarea") @endif @if($key->field_type=="decimal") required==1) required @endif> @endif
@endforeach

Click here to add custom fields on this page

{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection