|
|
@ -139,17 +139,29 @@
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<div class="color-pick">
|
|
|
|
<div class="color-pick">
|
|
|
|
<input type="hidden" class="color" value="red"/>
|
|
|
|
|
|
|
|
@php $colors = json_decode(\App\Helpers\getProp('color')->options,'true'); @endphp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@foreach($colors as $c)
|
|
|
|
|
|
|
|
<div style="background: {{$c['value']}}" data-color="{{$c['value']}}"
|
|
|
|
|
|
|
|
class="color @if($c['value'] == $pro->getMeta('color')) active @endif"></div>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th style="vertical-align: middle">
|
|
|
|
|
|
|
|
تعداد
|
|
|
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{{-- <div id="counting" class="text-muted float-start mt-2"></div>--}}
|
|
|
|
|
|
|
|
<div class="product-count d-inline-block">
|
|
|
|
|
|
|
|
<div class="btn btn-info count-inc" style="padding: 2px 5px">
|
|
|
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type="number" id="single-count" class="product-count"
|
|
|
|
|
|
|
|
value="1" max="1">
|
|
|
|
|
|
|
|
<div class="btn btn-info count-dec" style="padding: 2px 5px">
|
|
|
|
|
|
|
|
<i class="fa fa-minus"></i>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
@if($pro->hasMeta('warranty'))
|
|
|
|
@if($pro->hasMeta('warranty'))
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
@ -199,8 +211,8 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="col">
|
|
|
|
<a href="{{route('card.add',$pro->slug)}}"
|
|
|
|
<a href="{{route('card.addq',['',''])}}"
|
|
|
|
class="add-to-card btn btn-primary w-100 mt-1">
|
|
|
|
class="add-to-card-q btn btn-primary w-100 mt-1">
|
|
|
|
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt="">
|
|
|
|
<img src="{{asset('images/basket.svg')}}" class="basket-icon" alt="">
|
|
|
|
افزودن به سبد خرید
|
|
|
|
افزودن به سبد خرید
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
@ -219,6 +231,7 @@
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-container">
|
|
|
|
<div class="tab-container">
|
|
|
|
<div id="tab-detail" class="active">
|
|
|
|
<div id="tab-detail" class="active">
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table table-bordered attribute ">
|
|
|
|
<table class="table table-bordered attribute ">
|
|
|
|
@foreach($pro->getAllMeta() as $k => $meta)
|
|
|
|
@foreach($pro->getAllMeta() as $k => $meta)
|
|
|
|
@if($k != 'color' && $k != 'warranty')
|
|
|
|
@if($k != 'color' && $k != 'warranty')
|
|
|
@ -374,6 +387,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<input type="hidden" id="qn" value="">
|
|
|
|
<input type="hidden" id="qn" value="">
|
|
|
|
<input type="hidden" id="qnt" value='{!! $pro->quantities()->orderBy('price')->get();!!}'>
|
|
|
|
<input type="hidden" id="qnt" value='{!! $pro->quantities()->orderBy('price')->get();!!}'>
|
|
|
|