attribute-select.blade.php 738 B

1234567891011121314
  1. <div class="form-group"><br />
  2. <label for="weight">Weight </label>
  3. <div class="form-inline">
  4. <input type="text" class="form-control col-md-8" id="weight" name="weight" placeholder="0" value="{{ number_format($product->weight, 2) }}">
  5. <label for="mass_unit" class="sr-only">Mass unit</label>
  6. <select name="mass_unit" id="mass_unit" class="form-control col-md-4 select2">
  7. @foreach($weight_units as $key => $unit)
  8. <option @if($default_weight == $unit) selected="selected" @endif value="{{ $unit }}">{{ $key }} - ({{ $unit }})</option>
  9. @endforeach
  10. </select>
  11. </div>
  12. <div class="clearfix"></div>
  13. <small class="text text-warning">optional</small>
  14. </div>