|
|
@ -13,11 +13,13 @@
|
|
|
|
<i class="fa fa-shopping-bag"></i>
|
|
|
|
<i class="fa fa-shopping-bag"></i>
|
|
|
|
سبد خرید
|
|
|
|
سبد خرید
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="step step2" data-id="step2" data-done=".progress-step .step1,.progress-step .step2">
|
|
|
|
<div class="step step2" data-id="step2"
|
|
|
|
|
|
|
|
data-done=".progress-step .step1,.progress-step .step2">
|
|
|
|
<i class="fa fa-truck-fast"></i>
|
|
|
|
<i class="fa fa-truck-fast"></i>
|
|
|
|
اطلاعات ارسال
|
|
|
|
اطلاعات ارسال
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="step step3" data-id="step3" data-done=".progress-step .step1,.progress-step .step2, .progress-step .step3">
|
|
|
|
<div class="step step3" data-id="step3"
|
|
|
|
|
|
|
|
data-done=".progress-step .step1,.progress-step .step2, .progress-step .step3">
|
|
|
|
<i class="fa fa-credit-card"></i>
|
|
|
|
<i class="fa fa-credit-card"></i>
|
|
|
|
اطلاعات پرداخت
|
|
|
|
اطلاعات پرداخت
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -29,7 +31,7 @@
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div id="card-steps">
|
|
|
|
<div id="card-steps">
|
|
|
|
<div id="step1" class="step active" >
|
|
|
|
<div id="step1" class="step active">
|
|
|
|
<div class="text-center" id="card">
|
|
|
|
<div class="text-center" id="card">
|
|
|
|
<table class="table table-hover table-responsive-lg"
|
|
|
|
<table class="table table-hover table-responsive-lg"
|
|
|
|
id="card-table">
|
|
|
|
id="card-table">
|
|
|
@ -74,7 +76,8 @@
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
@else
|
|
|
|
<span class="active" data-count="{{$pro->stock_quantity}}"></span>
|
|
|
|
<span class="active"
|
|
|
|
|
|
|
|
data-count="{{$pro->stock_quantity}}"></span>
|
|
|
|
@foreach(\App\Helpers\getPriceableMeta($pro) as $k => $meta)
|
|
|
|
@foreach(\App\Helpers\getPriceableMeta($pro) as $k => $meta)
|
|
|
|
<div class="meta">
|
|
|
|
<div class="meta">
|
|
|
|
{{\App\Helpers\getPropLabel($k)}}
|
|
|
|
{{\App\Helpers\getPropLabel($k)}}
|
|
|
@ -89,7 +92,8 @@
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td colspan="2" class="price-td" data-price="{{$pro->getPurePrice()}}">
|
|
|
|
<td colspan="2" class="price-td"
|
|
|
|
|
|
|
|
data-price="{{$pro->getPurePrice()}}">
|
|
|
|
@if($pro->getPurePrice() == 0)
|
|
|
|
@if($pro->getPurePrice() == 0)
|
|
|
|
{{__("We call you about price soon.")}}
|
|
|
|
{{__("We call you about price soon.")}}
|
|
|
|
@else
|
|
|
|
@else
|
|
|
@ -105,8 +109,10 @@
|
|
|
|
<div class="btn btn-info count-inc">
|
|
|
|
<div class="btn btn-info count-inc">
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="number" data-stock="{{$pro->stock_quantity}}"
|
|
|
|
<input type="number"
|
|
|
|
max="{{$pro->stock_quantity}}" name="count[{{$pro->id}}]"
|
|
|
|
data-stock="{{$pro->stock_quantity}}"
|
|
|
|
|
|
|
|
max="{{$pro->stock_quantity}}"
|
|
|
|
|
|
|
|
name="count[{{$pro->id}}]"
|
|
|
|
min="1"
|
|
|
|
min="1"
|
|
|
|
data-price="{{str_replace(',','',$pro->getPurePrice())}}"
|
|
|
|
data-price="{{str_replace(',','',$pro->getPurePrice())}}"
|
|
|
|
class="form-control product-count"
|
|
|
|
class="form-control product-count"
|
|
|
@ -117,7 +123,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a href="{{route('card.rem',$pro->slug)}}" class="btn btn-outline-danger">
|
|
|
|
<a href="{{route('card.rem',$pro->slug)}}"
|
|
|
|
|
|
|
|
class="btn btn-outline-danger">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -129,7 +136,8 @@
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
|
|
<a href="{{route('product',$qpro->product->slug)}}">
|
|
|
|
<a href="{{route('product',$qpro->product->slug)}}">
|
|
|
|
<img src="{{$qpro->product->thumbUrl()}}" class="img-64" alt="">
|
|
|
|
<img src="{{$qpro->product->thumbUrl()}}" class="img-64"
|
|
|
|
|
|
|
|
alt="">
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td colspan="2">
|
|
|
|
<td colspan="2">
|
|
|
@ -137,7 +145,8 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td colspan="2">
|
|
|
|
<td colspan="2">
|
|
|
|
@php($data = json_decode($qpro->data))
|
|
|
|
@php($data = json_decode($qpro->data))
|
|
|
|
<span class="badge badge-inverse" style="background: {{$data->color}};">
|
|
|
|
<span class="badge badge-inverse"
|
|
|
|
|
|
|
|
style="background: {{$data->color}};">
|
|
|
|
<b>
|
|
|
|
<b>
|
|
|
|
{{\App\Helpers\getColorName($data->color)}}
|
|
|
|
{{\App\Helpers\getColorName($data->color)}}
|
|
|
|
</b>
|
|
|
|
</b>
|
|
|
@ -162,7 +171,8 @@
|
|
|
|
<div class="btn btn-info count-inc">
|
|
|
|
<div class="btn btn-info count-inc">
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="number" data-stock="{{$qpro->count}}" max="{{$qpro->count}}"
|
|
|
|
<input type="number" data-stock="{{$qpro->count}}"
|
|
|
|
|
|
|
|
max="{{$qpro->count}}"
|
|
|
|
name="qcount[{{$qpro->id}}]"
|
|
|
|
name="qcount[{{$qpro->id}}]"
|
|
|
|
min="1"
|
|
|
|
min="1"
|
|
|
|
data-price="{{$qpro->price}}"
|
|
|
|
data-price="{{$qpro->price}}"
|
|
|
@ -174,7 +184,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a href="{{route('card.remq',$qpro->id)}}" class="btn btn-outline-danger">
|
|
|
|
<a href="{{route('card.remq',$qpro->id)}}"
|
|
|
|
|
|
|
|
class="btn btn-outline-danger">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -183,16 +194,19 @@
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-success text-center">
|
|
|
|
@if(\App\Helpers\getSetting('reserve') != null )
|
|
|
|
شما میتوانید محصولات را رزرو کنید , برای اینکار به مرحله بعدی بروید و
|
|
|
|
|
|
|
|
<b>
|
|
|
|
|
|
|
|
گزینه فعال سازی
|
|
|
|
|
|
|
|
حالت
|
|
|
|
|
|
|
|
رزرو
|
|
|
|
|
|
|
|
</b>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
را انتخاب کنید
|
|
|
|
<div class="alert alert-success text-center">
|
|
|
|
</div>
|
|
|
|
شما میتوانید محصولات را رزرو کنید , برای اینکار به مرحله بعدی بروید و
|
|
|
|
|
|
|
|
<b>
|
|
|
|
|
|
|
|
گزینه فعال سازی
|
|
|
|
|
|
|
|
حالت
|
|
|
|
|
|
|
|
رزرو
|
|
|
|
|
|
|
|
</b>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
را انتخاب کنید
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="step2" class="step">
|
|
|
|
<div id="step2" class="step">
|
|
|
|
@if(count($transports) > 0)
|
|
|
|
@if(count($transports) > 0)
|
|
|
@ -207,6 +221,7 @@
|
|
|
|
<input id="tns{{$k}}" type="radio" name="transport_id"
|
|
|
|
<input id="tns{{$k}}" type="radio" name="transport_id"
|
|
|
|
data-price="{{$t->price}}"
|
|
|
|
data-price="{{$t->price}}"
|
|
|
|
value="{{$t->id}}"
|
|
|
|
value="{{$t->id}}"
|
|
|
|
|
|
|
|
required
|
|
|
|
onclick="$('.product-count').change();"
|
|
|
|
onclick="$('.product-count').change();"
|
|
|
|
@if ($t->is_default) checked
|
|
|
|
@if ($t->is_default) checked
|
|
|
|
@endif class="form-check-input transport">
|
|
|
|
@endif class="form-check-input transport">
|
|
|
@ -215,8 +230,13 @@
|
|
|
|
{{$t->title}}
|
|
|
|
{{$t->title}}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
@if(strlen($t->description) > 1)
|
|
|
|
@if(strlen($t->description) > 1)
|
|
|
|
<p class="preline alert alert-info mt-1">{{$t->description}} <span
|
|
|
|
<p class="preline alert alert-info mt-1">{{$t->description}}
|
|
|
|
class="float-end">@if($t->price > 0){{number_format($t->price)}} @else {{__("Free")}} @endif</span>
|
|
|
|
<span
|
|
|
|
|
|
|
|
class="float-end">@if($t->price > 0)
|
|
|
|
|
|
|
|
{{number_format($t->price)}}
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
{{__("Free")}}
|
|
|
|
|
|
|
|
@endif</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -249,18 +269,21 @@
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<div class="p-5 py-3" id="resv">
|
|
|
|
@if(\App\Helpers\getSetting('reserve') != null )
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<div class="p-5 py-3" id="resv">
|
|
|
|
<input name="reserve" class="form-check-input" type="checkbox" role="switch"
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
id="flexSwitchCheckDefault">
|
|
|
|
<input name="reserve" class="form-check-input" type="checkbox"
|
|
|
|
<label class="form-check-label"
|
|
|
|
role="switch"
|
|
|
|
for="flexSwitchCheckDefault">{{__("Reserve order for :H hours",['H'=>\App\Helpers\getSetting('reserve')])}}</label>
|
|
|
|
id="flexSwitchCheckDefault">
|
|
|
|
|
|
|
|
<label class="form-check-label"
|
|
|
|
|
|
|
|
for="flexSwitchCheckDefault">{{__("Reserve order for :H hours",['H'=>\App\Helpers\getSetting('reserve')])}}</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="text-left p-3">
|
|
|
|
<div class="text-left p-3">
|
|
|
|
@if(auth('customer')->check() && auth('customer')->user()->colleague == 1)
|
|
|
|
@if(auth('customer')->check() && auth('customer')->user()->colleague == 1)
|
|
|
|
<div class="p-3 ">
|
|
|
|
<div class="p-3 ">
|
|
|
|
اگر همکاری هستید آدرس مشتری را در این قسمت بنویسید
|
|
|
|
اگر همکاری هستید آدرس مشتری را در این قسمت بنویسید
|
|
|
@ -287,13 +310,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="step3" class="step">
|
|
|
|
<div id="step3" class="step">
|
|
|
|
<div >
|
|
|
|
<div>
|
|
|
|
<label class="text-start d-block">
|
|
|
|
<label class="text-start d-block">
|
|
|
|
{{__("Discount code")}}
|
|
|
|
{{__("Discount code")}}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="discount-code" name="discount"
|
|
|
|
<input type="text" class="form-control" id="discount-code"
|
|
|
|
|
|
|
|
name="discount"
|
|
|
|
placeholder="{{__("Discount code")}}">
|
|
|
|
placeholder="{{__("Discount code")}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="col-md-6">
|
|
|
@ -360,18 +384,20 @@
|
|
|
|
تکمیل اطلاعات
|
|
|
|
تکمیل اطلاعات
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
@else
|
|
|
|
<button type="submit" class="btn btn-success float-end me-3 ms-3">
|
|
|
|
<button type="submit" class="btn btn-success float-end my-2 w-100 card-submit" >
|
|
|
|
<i class="far fa-credit-card"></i>
|
|
|
|
<i class="far fa-credit-card"></i>
|
|
|
|
پرداخت از درگاه های آنلاین
|
|
|
|
پرداخت از درگاه های آنلاین
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="submit" class="btn btn-secondary float-end " name="nopay" value="no-payment">
|
|
|
|
<button type="submit" class="btn btn-secondary float-end w-100 card-submit" name="nopay"
|
|
|
|
|
|
|
|
value="no-payment" >
|
|
|
|
<i class="far fa-credit-card"></i>
|
|
|
|
<i class="far fa-credit-card"></i>
|
|
|
|
ثبت سفارش پرداخت اعتباری + آنلاین
|
|
|
|
ثبت سفارش پرداخت اعتباری + آنلاین
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
|
|
|
|
|
|
|
|
@else
|
|
|
|
{{-- {{__("Register or login to complete purchase")}}--}}
|
|
|
|
{{-- {{__("Register or login to complete purchase")}}--}}
|
|
|
|
<hr>
|
|
|
|
<hr>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|