Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <div class="col-md-4 col-md-offset-2">
  2. {!! Form::open(array('route' => 'properties.store', 'data-parsley-validate' => '' , 'files' => true)) !!}
  3. {{ Form::label('address', 'Address:') }}
  4. {{ Form::text('address', null, array('class'=>'form-control', 'placeholder'=>'Street & Number')) }}
  5.  
  6. </div>
  7.  
  8. <div class="col-md-4">
  9.  
  10. {{ Form::label('price_paid', "Price Paid:") }}
  11. {{ Form::number('fuel',null, ['class' => 'form-control']) }}
  12.  
  13. {{ Form::label('loan_ltv', "Loan to Value:") }}
  14. {{ Form::input('number', 'amount', null, ['class' => 'form-control']) }}
  15.  
  16. {{ Form::label('rent', "Rent Achievable:") }}
  17. {{ Form::number('name', 'value', ['class' => 'form-control']) }}
  18.  
  19. {{ Form::label('mortgage', "Mortgage Rate:") }}
  20. {{ Form::number('name', 'value', ['class' => 'form-control']) }}
  21.  
  22. {{ Form::label('management_moe', "Management and Operating Expenses:") }}
  23. {{ Form::number('name', 'value', ['class' => 'form-control']) }}
  24.  
  25. {{ Form::submit('Create Property Case', array('class' => 'btn btn-success btn-lg btn-block', 'style' => 'margin-top: 20px;')) }}
  26. </div>
  27. {!! Form::close() !!}
  28. </div>
  29.  
  30. public function store(Request $request)
  31. {
  32. //validate the data
  33. $this->validate($request, array(
  34. 'address' =>'max:255|nullable',
  35. 'price_paid' => 'integer|nullable',
  36. 'loan_ltv' => 'integer|nullable',
  37. 'rent' => 'integer|nullable',
  38. 'mortgage' => 'integer|nullable',
  39. 'management_moe' => 'integer|nullable'
  40. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement