@extends('layouts.master') @section('title') {{translate('add collateral')}} @endsection @section('content')
{{translate('add collateral')}}
{!! Form::open(array('url' => url('collateral/'.$id.'/store'), 'method' => 'post','class'=>'', 'name' => 'form',"enctype"=>"multipart/form-data")) !!}
@if(isset($_REQUEST['return_url'])) @endif
{!! Form::label('collateral_type_id',translate('type'),array('class'=>' control-label')) !!} {!! Form::select('collateral_type_id',$types,null, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('name',translate('product').' '.translate('name'),array('class'=>'')) !!} {!! Form::text('name',null, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('value',translate('value'),array('class'=>'')) !!} {!! Form::text('value',null, array('class' => 'form-control touchspin', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('date',translate('register').' '.translate('date'),array('class'=>'')) !!} {!! Form::text('date',null, array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('status',translate('current').' '.translate('status'),array('class'=>' control-label')) !!} {!! Form::select('status',array('deposited_into_branch'=>'Deposited into branch','collateral_with_borrower'=>'Collateral with borrower','returned_to_borrower'=>'Returned to borrower','repossession_initiated'=>'Repossession initiated','repossessed'=>'Repossessed','sold'=>'Sold','lost'=>'Lost'),null, array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('name',translate('owner').' '.translate('name'),array('class'=>'')) !!} {!! Form::text('owner_name',null , array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('relationship',translate('relationship'),array('class'=>'')) !!} {!! Form::text('relationship',null, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('color',translate('color'),array('class'=>'')) !!} {!! Form::text('color',null, array('class' => 'form-control')) !!}
{!! Form::label('manufacture_date',translate('manufacture_date'),array('class'=>'')) !!} {!! Form::text('manufacture_date',null, array('class' => 'form-control date-picker')) !!}
{!! Form::label('serial_number',translate('serial_number'),array('class'=>'')) !!} {!! Form::text('serial_number',null, array('class' => 'form-control')) !!}
{!! Form::label('engine_number',translate('engine_number'),array('class'=>'')) !!} {!! Form::text('engine_number',null, array('class' => 'form-control')) !!}
{!! Form::label('frame_number',translate('frame_number'),array('class'=>'')) !!} {!! Form::text('frame_number',null, array('class' => 'form-control')) !!}
{!! Form::label('license_plate',translate('license_plate'),array('class'=>'')) !!} {!! Form::text('license_plate',null, array('class' => 'form-control')) !!}
{!! Form::label('model_name',translate('model_name'),array('class'=>'')) !!} {!! Form::text('model_name',null, array('class' => 'form-control')) !!}
{!! Form::label('model_number',translate('model_number'),array('class'=>'')) !!} {!! Form::text('model_number',null, array('class' => 'form-control')) !!}
{!! Form::label('notes',translate('description'),array('class'=>'')) !!} {!! Form::textarea('notes',null, array('class' => 'form-control')) !!}
{!! Form::label('photo',translate('collateral').' '.translate('photo'),array('class'=>'')) !!} {!! Form::file('photo', array('class' => 'form-control',)) !!}
{!! Form::label('files',translate('collateral').' '.translate('file').'('.translate('borrower_file_types').')',array('class'=>'')) !!} {!! Form::file('files[]', array('class' => 'form-control', 'multiple'=>"",'rows'=>'3')) !!}

{{translate('custom_field')}}

@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
{!! Form::close() !!}
@endsection @section('footer-scripts') @endsection