Created
April 26, 2017 00:08
-
-
Save dclarke-modus/0d1d21407e7fac075d7e1ae0cef1086b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="propertySave" name="propertySave"> | |
@foreach ($propertyFields as $key => $propertyField) | |
@if ($key % 2 === 0) | |
<div class="row"> | |
@endif | |
<div class="col-md-3"> | |
<div class="form-group"> | |
<label for="{{$propertyField['fieldName']}}">{{$propertyField['fieldLabel']}}</label> | |
@if ($propertyField['fieldInputType'] === "TEXT") | |
<!-- VALUE PROPERTY ON THIS INPUT GIVES ERROR --> | |
<input type="text" class="form-control" id="{{$propertyField['fieldName']}}" name="{{$key}}" placeholder="{{$propertyField['fieldLabel']}}" value="{{isset($propertyInfo[$key]) ? $propertyInfo[$key] | null }}" > | |
@elseIf ($propertyField['fieldInputType'] === "TEXTAREA") | |
<textarea id="{{$propertyField['fieldName']}}" name="{{$key}}" class="form-control" rows="3" placeholder="{{$propertyField['fieldLabel']}}">{{$val}}</textarea> | |
@endif | |
</div> | |
</div> | |
@if ($key % 2 === 0) | |
</div> | |
@endif | |
@endforeach | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment