![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/products/ |
<h3 class="bold">Make Combinations</h3> <div class="row"> <div class="col-md-12"> <h4 class="bold font-black">Activate?</h4> <div class="form-group"> <ul class="list-unstyled"> @foreach($attributes as $attribute) <li> <label for="attribute{{ $attribute->id }}" class="checkbox-inline"> {{ $attribute->name }} <input name="attribute[]" class="attribute" type="checkbox" id="attribute{{ $attribute->id }}" value="{{ $attribute->id }}"> </label> <label for="attributeValue{{ $attribute->id }}" style="display: none; visibility: hidden"></label> @if(!$attribute->values->isEmpty()) <select name="attributeValue[]" id="attributeValue{{ $attribute->id }}" class="form-control custom-select input-lg" disabled> {{-- Convert the attribute column type as decimal so that the ordering can be done numerically --}} @php $attributeValues = $attribute->values()->orderByRaw('Convert(value, decimal) desc')->get(); @endphp {{-- @foreach($attribute->values as $attr) --}} @foreach($attributeValues as $attr) <option value="{{ $attr->id }}">{{ $attr->value }}</option> @endforeach </select> @endif </li> @endforeach </ul> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="productAttributeQuantity">Quantity <span class="text text-danger">*</span></label> <input type="text" name="productAttributeQuantity" id="productAttributeQuantity" class="form-control input-lg" placeholder="Set quantity" disabled> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="productAttributePrice">Price</label> <div class="input-group"> <span class="input-group-addon">{{ config('cart.currency_symbol') }}</span> <input type="text" name="productAttributePrice" id="productAttributePrice" class="form-control input-lg" placeholder="Price" disabled> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="salePrice">Sale Price</label> <div class="input-group"> <span class="input-group-addon">{{ config('cart.currency_symbol') }}</span> <input type="text" name="salePrice" id="salePrice" class="form-control input-lg" placeholder="Sale Price" disabled> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="default">Show as default price?</label> <br /> <select name="default" id="default" class="form-control custom-select input-lg"> <option value="0" selected="selected">No</option> <option value="1">Yes</option> </select> </div> </div> </div> <div class="row"> <div class="col-md-6"> <button id="createCombinationBtn" type="submit" class="btn btn-lg btn-block btn-success" disabled="disabled">Create</button> </div> <div class="col-md-6"> <button type="button" class="btn btn-lg btn-block btn-danger" onclick="backToInfoTab()">Back</button> </div> </div>