Wishlist Started to be done as an universal component
This commit is contained in:
parent
adc7052afa
commit
e86d78dc3f
|
|
@ -4,7 +4,6 @@
|
|||
{{ $product->name }}
|
||||
@stop
|
||||
|
||||
|
||||
@section('content-wrapper')
|
||||
<section class="product-detail">
|
||||
<div class="category-breadcrumbs">
|
||||
|
|
@ -36,8 +35,11 @@
|
|||
</div>
|
||||
|
||||
<div class="quantity control-group" :class="[errors.has('quantity') ? 'has-error' : '']">
|
||||
|
||||
<label class="reqiured">Quantity</label>
|
||||
|
||||
<input name="quantity" class="control" value="1" v-validate="'required|numeric|min_value:1'" style="width: 60px;">
|
||||
|
||||
<span class="control-error" v-if="errors.has('quantity')">@{{ errors.first('quantity') }}</span>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
template: '#product-options-template',
|
||||
|
||||
inject: ['$validator'],
|
||||
inject: ['$validator'],
|
||||
|
||||
data: () => ({
|
||||
config: @json($config),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
@auth('customer')
|
||||
<a class="add-to-wishlist" href="">
|
||||
@if($product->type == "simple")
|
||||
<a class="add-to-wishlist" href="{{ route('customer.wishlist.add', $product->id) }}">
|
||||
<span class="icon wishlist-icon"></span>
|
||||
</a>
|
||||
@endif
|
||||
@endauth
|
||||
|
|
|
|||
Loading…
Reference in New Issue