Viewing file: 8fc92cee5287b86993a0fee029400b7b.php (36.1 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startPush('css'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend')); ?>/css/smk-accordion.css"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend')); ?>/css/proctuct-detail.css"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend')); ?>/css/shop-listing.css"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend')); ?>/css/star-rating-svg.css"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('frontend')); ?>/css/product-detail-extra.css">
<style> .protdetail-container.product-details{ margin-top: 83px; }
@media (max-width: 750px) { .protdetail-container.product-details{ margin-top: 0px !important; } } </style> <?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<!--==== START BREADCUMB ====--> <section class="page-crumb"> <ul class="cd-breadcrumb"> <li><a href="<?php echo e(url('/')); ?>"><?php echo e(__('homepage')['title']); ?></a></li> <li class="current"><?php echo e(__('product_details')['title']); ?></li> </ul> </section> <!--==== END BREADCUMB ====-->
<!--==== START PRODUCT LISTING ====--> <section class="inner-wrapperr" id="shop-listing"> <div class="">
<div class="protdetail-container product-details"> <div class="prod-silder"> <div class="shopdetail_slider"> <div <?php if(Session::get('locale') == 'ar'): ?> dir="rtl" <?php endif; ?>> <ul class="js_product_mainslider">
<li> <div class="imgmain"> <img id="NZoomImg" data-NZoomscale="2" src="<?php echo e(asset('uploads')); ?>/product/<?php echo e($data['product']->image); ?>" alt="" title="" /> </div> </li>
<?php $__currentLoopData = $data['product_images']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <div class="imgmain"> <img src="<?php echo e(asset('uploads')); ?>/product/<?php echo e($value->image); ?>" alt="" title="" /> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul> <ul class="js_product_thumbslider slicknav">
<li> <div class="product_thumbitem"> <img src="<?php echo e(asset('uploads')); ?>/product/<?php echo e($data['product']->image); ?>" alt="" title="" /> </div> </li>
<?php $__currentLoopData = $data['product_images']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <div class="product_thumbitem"> <img src="<?php echo e(asset('uploads')); ?>/product/<?php echo e($value->image); ?>" alt="" title="" /> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul> </div> </div>
<!-- Start Social link --> <?php $title = $data['product']->productDescription->name; $short_url =url()->current(); $url = url()->current();
$twitter_params = '?text=' . urlencode($title) . '+-' . '&url=' . urlencode($short_url) . '&counturl=' . urlencode($url) . '';
$link = "http://twitter.com/share" . $twitter_params . "";
$text = $title.' Buy product now from here'; $produtURL =url()->current(); $wurl = "https://api.whatsapp.com/send?text=".urlencode($text.' URL:'.$produtURL);
$stars = $data['avgReview'] ? (int)$data['avgReview'] : 0; // dd($data['avgReview']); $starResult = ""; for ( $i = 1; $i <= 5; $i++ ) { if ( round( $stars) >= $i ) { $starResult .= " <i class='fa fa-star' style='color:#FFCC00 !important'></i>"; } elseif ( round( $stars + .25 ) >= $i ) { $starResult .= " <i class='fa fa-star-half-o' ></i>"; } else { $starResult .= " <i class='fa fa-star' style='color:#BCC7D1'></i>"; } } ?> <!-- End Social link --> </div>
<div class="prod-detail">
<div class=" heading-sm mb-4"><?php echo e($data['product']->productDescription->name); ?></div> <div class=" mb-4 row product-detail-info"> <div class="col-md-4 col-lg-4 col-xl-4 col-xs-6 col-sm-6 star-rating"> <div class="my-rating-6"></div>   <?php echo e($data['totalReviews']); ?> Reviews </div> <div class="col-md-4 col-lg-4 col-xl-4 col-xs-6 col-sm-6 stock-status"> </div> <div class="col-md-4 col-lg-4 col-xl-4 col-xs-12 col-sm-6"> <div class="row"> <div class="col-6"> <button class="btn-add-to-wishlist d-flex justify-content-center" onclick="addToWish(this,'<?php echo e($data['product']->id); ?>',1)"> <?php if(Auth::guard('customer')->check()): ?> <?php if(in_array($data['product']->id, getWishlist())): ?> <i class="fa fa-heart" <?php if(session()->get('locale') == 'ar'): ?> style="margin-left:10px;" <?php else: ?> style="margin-right:10px;" <?php endif; ?>></i> <?php else: ?> <i class="fa fa-heart-o " <?php if(session()->get('locale') == 'ar'): ?> style="margin-left:10px;" <?php else: ?> style="margin-right:10px;" <?php endif; ?>></i> <?php endif; ?> <?php else: ?> <i class="fa fa-heart-o " <?php if(session()->get('locale') == 'ar'): ?> style="margin-left:10px;" <?php else: ?> style="margin-right:10px;" <?php endif; ?>></i> <?php endif; ?> <?php echo e(__('common')['wishlist']); ?>
</button> <input type="hidden" id="showshare" name="" value="0"> </div> <div class="col-6 "> <button onclick="showShareOptions()" class="btn-share d-flex justify-content-center mx-3"> <i class="fas fa-share-alt " <?php if(session()->get('locale') == 'ar'): ?> style="margin-left:10px;" <?php else: ?> style="margin-right:10px;" <?php endif; ?>></i> <?php echo e(__('product_details')['share']); ?></button> <div class="ctnect-link justify-content-end d-none "> <ul class="social-link"> <li><a href="https://www.facebook.com/sharer.php?u=<?php echo e(url()->current()); ?>" target="_blank" class="facebook"><i class="fa fa-facebook" aria-hidden="true"></i> </a></li> <li><a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(url()->current()); ?>" target="_blank" class="linkedin"><i class="fa fa-linkedin" aria-hidden="true"></i> </a> </li> <li><a href="<?php echo e($link); ?>" class="twitter" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i> </a> </li> <li><a href="<?php echo e($wurl); ?>" data-action="share/whatsapp/share" target="_blank" class="whatsapp"><i class="fa fa-whatsapp" aria-hidden="true"></i></a> </li> </ul> </div> </div> </div>
</div> </div>
<form action="" method="post"> <?php echo csrf_field(); ?> <?php $price =$data['product']->price; $special = 0; $offTxt = ''; if($data['product']->special) { $endDate = Carbon\Carbon::createFromFormat('m/d/Y',$data['product']->special->end_date); $startDate = Carbon\Carbon::createFromFormat('m/d/Y', $data['product']->special->start_date); $todayDate = Carbon\Carbon::createFromFormat('m/d/Y', date('m/d/y')); if($startDate->gte($todayDate) && $todayDate->lte($endDate)) { $special = $data['product']->special->price; $offTxt = calculatePercentage($price,$special); } }
?> <div class="price-wrap"> <?php if($special > 0 ): ?> <input type="hidden" id="orignalPrice" name="orignalPrice" value="<?php echo e($data['product']->price); ?>"> <div class="price"><?php echo e(__('product_details')['price']); ?>: <span id="priceproduct"><?php echo e(config('settingConfig.config_currency')); ?><?php echo e($special > 0 ? number_format($special,2) : number_format($data['product']->price,2)); ?></span> <span class="originalPrice" ><?php echo e(config('settingConfig.config_currency')); ?><?php echo e($price); ?></span> <span class="offer" style="font-size:16px;"><?php echo e($offTxt); ?></span> </div> <?php else: ?> <input type="hidden" id="orignalPrice" name="orignalPrice" value="<?php echo e($price); ?>"> <div class="price"> <span id="priceproduct"><?php echo e(config('settingConfig.config_currency')); ?><?php echo e($price); ?></span></div> <?php endif; ?>
</div>
<div class="product-short-desc my-2"> <span><?php echo $data['product']->productDescription->short_description; ?></span> </div>
<ul class=" prod-all-deatil <?php if($data['productOptions'] > 0): ?> mt-5 <?php else: ?> mt-2 <?php endif; ?>">
<?php $__currentLoopData = $data['productOptions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $title = explode('-',$key); ?> <li> <div class="probox "> <div class="prod-head mb-3"><?php echo e($title[1]); ?>: <span class="optionSelected"></span></div> <div class="prod-info">
<?php if($title[0] == 'Checkbox'): ?> <div class="row"> <?php $__currentLoopData = $data['productOptions'][$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2=>$optionValues): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(strlen($optionValues->label) == 1): ?> <div class="col-md-1 col-1 col-sm-1 col-lg-1"> <label class="check-label"> <input type="radio" name="optionCheckbox" value="<?php echo e($optionValues->product_option_id); ?>" onchange="changePrice('<?php echo e($optionValues->price); ?>','Checkbox','<?php echo e($optionValues->label); ?>')" > <span class="checkmark-round"><?php echo e($optionValues->label); ?></span> </label> </div> <?php else: ?> <div class="col-md-4 col-sm-4 col-lg-4"> <label class="check-label"><?php echo e($optionValues->label); ?> <?php if($optionValues->price > 0): ?> (+<?php echo e($optionValues->price); ?>) <?php endif; ?> <input type="radio" name="optionCheckbox" value="<?php echo e($optionValues->product_option_id); ?>" onchange="changePrice('<?php echo e($optionValues->price); ?>','Checkbox')" > <span class="checkmark"></span> </label> </div> <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div>
<?php elseif($title[0] == 'Select'): ?> <select name="selectoption" id="select<?php echo e($data['product']->id); ?>" class="form-control size_id" > <option value="">Select Size</option> <?php $__empty_1 = true; $__currentLoopData = $data['productOptions'][$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2=>$optionValues): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($optionValues->product_option_id); ?>"><?php echo e($optionValues->label); ?> (+<?php echo e($optionValues->price); ?>)</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <option value="">No Size</option> <?php endif; ?> </select>
<?php elseif($title[0] == 'Radio'): ?> <div class="row"> <?php $__currentLoopData = $data['productOptions'][$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2=>$optionValues): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(strlen($optionValues->label) == 1): ?> <div class="col-md-1 col-1 col-sm-1 col-lg-1"> <label class="check-label"> <input type="radio" name="optionRadio" value="<?php echo e($optionValues->product_option_id); ?>" onchange="changePrice('<?php echo e($optionValues->price); ?>','Radio','<?php echo e($optionValues->label); ?>')" > <span class="checkmark-round"><?php echo e($optionValues->label); ?></span> </label> </div> <?php else: ?> <div class="col-md-4 col-sm-6 col-lg-4"> <label class="check-label"><?php echo e($optionValues->label); ?> <?php if($optionValues->price > 0): ?> (+<?php echo e($optionValues->price); ?>) <?php endif; ?> <input type="radio" name="optionRadio" value="<?php echo e($optionValues->product_option_id); ?>" onchange="changePrice('<?php echo e($optionValues->price); ?>','Radio')" > <span class="checkmark"></span> </label> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php elseif($title[0] == 'Color'): ?> <div class="row"> <?php $__currentLoopData = $data['productOptions'][$key]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key2=>$optionValues): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-1 col-1 col-sm-1 col-lg-1"> <label class="check-label"> <input type="radio" name="optionColor" value="<?php echo e($optionValues->product_option_id); ?>" onchange="changePrice('<?php echo e($optionValues->price); ?>','Checkbox','',0,this)" > <span class="checkmark-round" style="background:<?php echo e($optionValues->color_code); ?>" ></span> </label> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?>
</div> </div> </li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<ul class="mt-5 "> <li > <span class="heading-xs ">Availibility: <span class="info <?php if($data['product']->quantity > 0 ): ?> greenclr <?php else: ?> redclr <?php endif; ?>"><?php echo e($data['product']->quantity > 0 ? __('product_details')['instock'] : __('common')['label_out_of_stock']); ?></span></span> </li> <li class="my-1"> <span class="heading-xs ">Category: <span class="themeTxt"><?php echo e(isset($data['product']->category->name)?$data['product']->category->name:''); ?></span></span> </li> <li class="my-1"> <span class="heading-xs ">Brand: <span class="themeTxt"><?php echo e(isset($data['product']->productManufacturer->name)?$data['product']->productManufacturer->name:''); ?></span></span> </li> <li > <span class="heading-xs ">SKU: <span class="themeTxt"><?php echo e($data['product']->sku); ?></span></span> </li> </ul> <div class="quantity-wrap"> <div class="quantitybox d-flex justify-content-center align-items-center"> <div class="value-button decrease" onclick="decreaseValue($(this))" value="Decrease Value"> <i class="fas fa-sharp fa-regular fa-minus"></i> </div> <div class="quantity "> <label class="screen-reader-text" >Sponge Float dense sponge 40mm with long edge quantity</label> <input type="number" class="input-text qty text" step="1" min="1" max="100" name="quantity" value="1" title="Qty" size="4" placeholder="" inputmode="numeric" /> </div> <div class="value-button increase" onclick="increaseValue($(this))" value="Increase Value"> <i class="fas fa-sharp fa-regular fa-plus"></i> </div> </div> <input type="hidden" name="productID" value="<?php echo e($data['product']->id); ?>"> <!-- <input type="submit" class="add-to-cart" value="Add to Cart"> --> <button class="add-to-cart"><?php echo e(__('product_details')['add_to_cart']); ?> </button> </div> </form>
</div> </div>
<div class="container-fluid"> <ul class="nav nav-tabs " role="tablist"> <li class="nav-item " <?php if(app()->getLocale() == 'en'): ?> style="margin-right:10px;" <?php else: ?> style="margin-left:10px;" <?php endif; ?>> <a onclick="activeTabGetData(this,'detail')" class="nav-link active " rel="prd-detail" data-toggle="tab" role="tab" > <?php echo e(__('product_details')['title']); ?>
</a> </li> <li class="nav-item " <?php if(app()->getLocale() == 'en'): ?> style="margin-right:10px;" <?php else: ?> style="margin-left:10px;" <?php endif; ?>> <a onclick="activeTabGetData(this,'reviews')" class="nav-link " rel="prd-reviews" data-toggle="tab" role="tab" > <?php echo e(__('product_details')['review']); ?>
</a> </li> <?php if(count($data['releted_products']) > 0): ?> <li class="nav-item " <?php if(app()->getLocale() == 'en'): ?> style="margin-right:10px;" <?php else: ?> style="margin-left:10px;" <?php endif; ?>> <a onclick="activeTabGetData(this,'related')" class="nav-link " data-toggle="tab" role="tab" > <?php echo e(__('product_details')['releted_products']); ?>
</a> </li> <?php endif; ?> <?php if(count($data['productAttributes']) > 0): ?> <li class="nav-item " <?php if(app()->getLocale() == 'en'): ?> style="margin-right:10px;" <?php else: ?> style="margin-left:10px;" <?php endif; ?>> <a onclick="activeTabGetData(this,'product_specification')" class="nav-link " data-toggle="tab" role="tab" > <?php echo e(__('product_details')['product_specification']); ?>
</a> </li> <?php endif; ?> </ul>
<div class="tab-content clearfix my-3">
<div id="prd-detail" class="tab-pane active " rel="prd-detail" role="tabpanel"> <div class="prod-description-wrappers p-3">
<?php echo html_entity_decode($data['product']->productDescription->description); ?>
</div> </div>
<div id="prd-reviews" class="tab-pane" rel="prd-reviews"> <div class="overall-ratting"> <div class="rating-left"> <div class="ratting-inner"> <div class="ratingtxt"><?php echo e(__('product_details')['overall_rating']); ?></div> <div class="rate-prod"><?php echo e($data['avgReview']); ?></div> <div class="my-rating-6 m-2"></div> <p><?php echo e(__('product_details')['based_on']); ?> <?php echo e($data['totalReviews']); ?> <?php echo e(__('product_details')['review']); ?></p> </div> </div> <div class="rating-right"> <div class="progress-col"> <div class="progress-title"><?php echo e(__('product_details')['excellent']); ?></div> <div class="progress"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e($data['star5']); ?>%"> </div> </div> </div>
<div class="progress-col"> <div class="progress-title"><?php echo e(__('product_details')['good']); ?></div> <div class="progress"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e($data['star4']); ?>%"></div> </div> </div>
<div class="progress-col"> <div class="progress-title"><?php echo e(__('product_details')['avg']); ?></div> <div class="progress"> <div class="progress-bar progress-bar-in" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e($data['star3']); ?>%"> </div> </div> </div>
<div class="progress-col"> <div class="progress-title"><?php echo e(__('product_details')['poor']); ?></div> <div class="progress"> <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e($data['star2']); ?>%"> </div> </div> </div>
<div class="progress-col"> <div class="progress-title"><?php echo e(__('product_details')['very_bad']); ?></div> <div class="progress"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e($data['star1']); ?>%"></div> </div> </div>
</div> </div>
<div class="review_wrapper"> <?php $__empty_1 = true; $__currentLoopData = $data['reviews_text']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="reviewbox"> <div class="review-info"> <div class="writer-img"> <img src="<?php if($review->image != null): ?> <?php echo e(asset('uploads')); ?>/user/<?php echo e($review->image); ?>
<?php else: ?> <?php echo e(asset('frontend')); ?>/images/profile.png <?php endif; ?> " alt="" title=""> </div> <div class="writer-info"> <div class="name"><?php echo e($review->firstname); ?> </div> <div class="deg"> <div class="my-rating-<?php echo e($review->id); ?>" ></div> </div> </div> </div> <div class="review-cont"> <p><?php echo e($review->text); ?></p> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <h4 class="text-center text-black"><?php echo e(__('product_details')['review_not']); ?></h4> <?php endif; ?> </div> </div> <?php if(count($data['releted_products']) > 0): ?> <div id="prd-related" class="tab-pane" rel="prd-related"> <?php echo $__env->make('frontend.partials.homeproduct',['isSlider' => false,'type' => 'releted','title' => "Flash Sale For You!", 'content' => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy.",'productsArr' =>$data['releted_products'],'new' => false], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <?php endif; ?> <?php if(count($data['productAttributes']) > 0): ?> <div id="prd-product_specification" class="tab-pane " rel="prd-detail" role="tabpanel"> <?php $__currentLoopData = $data['productAttributes']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$productattribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="product-specification my-4"> <div class="heading-sm"><?php echo e($key); ?></div> <?php $__currentLoopData = $productattribute; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="row "> <div class="col-md-2 col-xl-2 col-lg-2 "> <span class="attribute_name"><?php echo e($attribute['name']); ?></span> </div> <div class="col-md-1 col-xl-1 col-lg-1"> <span class="attribute_name">:</span> </div> <div class="col-md-7 col-xl-7 col-lg-7 "> <span class="attribute_name"><?php echo e($attribute['text']); ?></span> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?>
</div> </div>
</div> </section> <!--==== END PRODUCT LISTING ====-->
<?php $__env->startPush('js'); ?>
<script type="text/javascript" src="<?php echo e(asset('frontend')); ?>/js/smk-accordion.js"></script> <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> <script type="text/javascript" src="<?php echo e(asset('frontend')); ?>/js/jquery.star-rating-svg.js"></script> <script type="text/javascript" src="<?php echo e(asset('frontend')); ?>/js/Nzoom.min.js"></script>
<script type="text/javascript"> localStorage.clear(); $(document).ready(function() { // FAQ $(".faq_accordion").smk_Accordion({ closeAble: true, //boolean //closeOther: false, //boolean activeIndex: 2 //second section open })
});
</script> <script type="text/javascript"> $(function (){
$(".my-rating-6").starRating({ totalStars: 5, emptyColor: 'lightgray', hoverColor: 'slategray', activeColor: '#F3C13A', initialRating: parseFloat("<?php echo e($data['avgReview']); ?>"), strokeWidth: 0, readOnly: true, useGradient: false, minRating: 1, callback: function(currentRating, $el){ } }); <?php foreach($data['reviews_text'] as $review) { ?> $(".my-rating-"+'<?php echo $review->id; ?>').starRating({ totalStars: 5, starSize:20, emptyColor: 'lightgray', hoverColor: 'slategray', activeColor: '#F3C13A', initialRating: parseFloat("<?php echo e($review->rating); ?>"), strokeWidth: 0, readOnly: true, useGradient: false, minRating: 1, callback: function(currentRating, $el){ } });
<?php } ?>
$('.size_id').change(function () {
var id = $(this).val(); var url = '<?php echo e(route("product.price", ":id")); ?>'; url = url.replace(':id', id);
let orignalPrice = $('#orignalPrice').val(); orignalPrice = parseFloat(orignalPrice);
let productPrice = $('#priceproduct').text().replace(/^\D|,+/g, ''); productPrice = parseFloat(productPrice);
if(id == null || id == ""){ let nPrice = orignalPrice; $('#priceproduct').text("<?php echo e(config('settingConfig.config_currency')); ?>"+nPrice.toFixed(2)) localStorage.setItem('select',0); }
else{ $.ajax({ url: url, type: 'get', dataType: 'json', success: function(response) { var additionalPrice = response.price;
if (response != null) { if(additionalPrice == null || additionalPrice == 0 || id == "" ){ $('#priceproduct').text(orignalPrice); localStorage.setItem('select',0); }else{ // let price = Number.parseFloat(orignalPrice) + Number.parseFloat(additionalPrice); let price = Number.parseFloat(additionalPrice); let newPrice = productPrice; if(price > 0) { newPrice += Number.parseFloat(price) }
let getTypePrice = localStorage.getItem('select'); if(getTypePrice > 0) { newPrice -= getTypePrice } localStorage.setItem('select', additionalPrice);
$('#priceproduct').text("<?php echo e(config('settingConfig.config_currency')); ?>"+newPrice.toFixed(2)) } } else{ alert("Error"); } } }); } }) })
function showShareOptions() { let shareStatus = $('#showshare').val(); if(shareStatus == 1) { $('#showshare').val(0) $('.ctnect-link').addClass('d-none'); } else { $('#showshare').val(1) $('.ctnect-link').removeClass('d-none'); } }
function activeTabGetData(data,category){
//find active var activeTab = $("ul.nav-tabs li a.active");
activeTab.removeClass('active'); $(data).addClass('active');
//find acitve tab content var activeTabContent = $("div.tab-content .active"); activeTabContent.removeClass('active'); $('#prd-'+category).addClass('active'); }
</script> <?php $__env->stopPush(); ?> <?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layouts.app', ['class' => 'bg-white'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/resources/views/frontend/product/productDetails.blade.php ENDPATH**/ ?>
|