Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-md-4 col-md-offset-2">
- {!! Form::open(array('route' => 'properties.store', 'data-parsley-validate' => '' , 'files' => true)) !!}
- {{ Form::label('address', 'Address:') }}
- {{ Form::text('address', null, array('class'=>'form-control', 'placeholder'=>'Street & Number')) }}
- </div>
- <div class="col-md-4">
- {{ Form::label('price_paid', "Price Paid:") }}
- {{ Form::number('fuel',null, ['class' => 'form-control']) }}
- {{ Form::label('loan_ltv', "Loan to Value:") }}
- {{ Form::input('number', 'amount', null, ['class' => 'form-control']) }}
- {{ Form::label('rent', "Rent Achievable:") }}
- {{ Form::number('name', 'value', ['class' => 'form-control']) }}
- {{ Form::label('mortgage', "Mortgage Rate:") }}
- {{ Form::number('name', 'value', ['class' => 'form-control']) }}
- {{ Form::label('management_moe', "Management and Operating Expenses:") }}
- {{ Form::number('name', 'value', ['class' => 'form-control']) }}
- {{ Form::submit('Create Property Case', array('class' => 'btn btn-success btn-lg btn-block', 'style' => 'margin-top: 20px;')) }}
- </div>
- {!! Form::close() !!}
- </div>
- public function store(Request $request)
- {
- //validate the data
- $this->validate($request, array(
- 'address' =>'max:255|nullable',
- 'price_paid' => 'integer|nullable',
- 'loan_ltv' => 'integer|nullable',
- 'rent' => 'integer|nullable',
- 'mortgage' => 'integer|nullable',
- 'management_moe' => 'integer|nullable'
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement