<div class="form-group">
    <label class="control-label">Quantity <span class="required">*</span></label>
    <div class="row">
        <div class="col-sm-6">
            <div class="input-group">
                <button class="btn btn-outline-secondary btn-number" disabled="disabled" data-type="minus" data-field="quantity" type="button" id="button-addon1"><i class="fa fa-minus"></i></button>
                {{-- <input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="100"> --}}
                @if($product_array[0]->ProductAvailableQty == null)
                    <input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="100">
                @else
                    <input type="text" name="quantity" class="form-control input-number" value="1" min="1" max="{{ $available_qty }}">
                @endif
                <button class="btn btn-outline-secondary btn-number" data-type="plus" data-field="quantity" type="button" id="button-addon1"> <i class="fa fa-plus"></i> </button>
            </div>
            {{-- <div class="input-group">
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default btn-number" disabled="disabled" data-type="minus" data-field="quantity">
                        <i class="fa fa-minus"></i>
                    </button>
                </span>
                
               
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default btn-number" data-type="plus" data-field="quantity">
                        <i class="fa fa-plus"></i>
                    </button>
                </span>
                
            </div> --}}
            @if($available_qty !== null)
                @if ($available_qty > 0)
                    <p><strong>{{ $available_qty }} piece/s available</strong></p>
                @else
                    <p>Item is sold out, please check back or contact <a href="mailto:orders@merchbay.com"><u>orders@merchbay.com</u></a> for a restock date</p>
                @endif
            @endif
            
        </div>
    </div>
</div>
