Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Widok edycji
- <div class="form-group @if ($errors->has('gymprice_id')) has-error @endif">
- <div class="input-group">
- <span class="input-group-addon"><label class="label label-primary">Cennik</label></span>
- <select class="form-control" name="gymprice_id" id="gymprice_id">
- @foreach($all as $price)
- <option @if($price->id == $price->pivot->gymprice_id) selected @endif value="{{$price->id}}">
- {{$price->name}}</option>
- @endforeach
- </select>
- @if ($errors->has('gymprice_id')) <p class="help-block">{{ $errors->first('gymprice_id') }}</p> @endif
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement