create-attributes.blade.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <h2>Make combinations</h2>
  2. <div class="form-group">
  3. <ul class="list-unstyled attribute-lists">
  4. @foreach($attributes as $attribute)
  5. <li>
  6. <label for="attribute{{ $attribute->id }}" class="checkbox-inline">
  7. {{ $attribute->name }}
  8. <input name="attribute[]" class="attribute" type="checkbox" id="attribute{{ $attribute->id }}" value="{{ $attribute->id }}">
  9. </label>
  10. <label for="attributeValue{{ $attribute->id }}" style="display: none; visibility: hidden"></label>
  11. @if(!$attribute->values->isEmpty())
  12. <select name="attributeValue[]" id="attributeValue{{ $attribute->id }}" class="form-control select2" style="width: 100%" disabled>
  13. @foreach($attribute->values as $attr)
  14. <option value="{{ $attr->id }}">{{ $attr->value }}</option>
  15. @endforeach
  16. </select>
  17. @endif
  18. </li>
  19. @endforeach
  20. </ul>
  21. </div>
  22. <div class="form-group">
  23. <label for="productAttributeQuantity">Quantity <span class="text text-danger">*</span></label>
  24. <input type="text" name="productAttributeQuantity" id="productAttributeQuantity" class="form-control" placeholder="Set quantity" disabled>
  25. </div>
  26. <div class="form-group">
  27. <label for="productAttributePrice">Price</label>
  28. <div class="input-group">
  29. <span class="input-group-addon">{{ config('cart.currency') }}</span>
  30. <input type="text" name="productAttributePrice" id="productAttributePrice" class="form-control" placeholder="Price" disabled>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="salePrice">Sale Price</label>
  35. <div class="input-group">
  36. <span class="input-group-addon">{{ config('cart.currency') }}</span>
  37. <input type="text" name="salePrice" id="salePrice" class="form-control" placeholder="Sale Price" disabled>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="default">Show as default price?</label> <br />
  42. <select name="default" id="default" class="form-control select2">
  43. <option value="0" selected="selected">No</option>
  44. <option value="1">Yes</option>
  45. </select>
  46. </div>
  47. <div class="box-footer">
  48. <div class="btn-group">
  49. <button type="button" class="btn btn-sm btn-default" onclick="backToInfoTab()">Back</button>
  50. <button id="createCombinationBtn" type="submit" class="btn btn-sm btn-primary" disabled="disabled">Create combination</button>
  51. </div>
  52. </div>