added item quantity
This commit is contained in:
@@ -3,25 +3,36 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<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">
|
||||
<span class="glyphicon glyphicon-minus"></span>
|
||||
</button>
|
||||
</span>
|
||||
<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" data-type="plus" data-field="quantity">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
<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>
|
||||
|
||||
</div>
|
||||
@if($available_qty != null)
|
||||
<p>{{ $available_qty }} piece/s available</p>
|
||||
|
||||
<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>{{ $available_qty }} piece/s available</p>
|
||||
@else
|
||||
<p>Sold out</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user