Wishlist Started to be done as an universal component

This commit is contained in:
prashant-webkul 2018-10-04 20:28:38 +05:30
parent adc7052afa
commit e86d78dc3f
3 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -49,7 +49,7 @@
template: '#product-options-template',
inject: ['$validator'],
inject: ['$validator'],
data: () => ({
config: @json($config),

View File

@ -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