Advertisement
majweb

Untitled

Jun 13th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. //Widok edycji
  2.  
  3. <div class="form-group @if ($errors->has('gymprice_id')) has-error @endif">
  4. <div class="input-group">
  5. <span class="input-group-addon"><label class="label label-primary">Cennik</label></span>
  6. <select class="form-control" name="gymprice_id" id="gymprice_id">
  7. @foreach($all as $price)
  8. <option @if($price->id == $price->pivot->gymprice_id) selected @endif value="{{$price->id}}">
  9. {{$price->name}}</option>
  10. @endforeach
  11. </select>
  12. @if ($errors->has('gymprice_id')) <p class="help-block">{{ $errors->first('gymprice_id') }}</p> @endif
  13. </div>
  14. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement