<?php $__env->startPush('css'); ?>

<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<?php

use App\Models\Information;
use App\Models\BanglaText;
$info = Information::first();
$bangla_text = BanglaText::first();
$data=getProductInfo($product);
?>

<style>
    .product-action-wrapper {
        flex-direction: inherit;
    }
</style>

<main class="main-wrapper">
    <!-- Start Shop Area  -->
    <div class="axil-single-product-area p pb--0 bg-color-white">
        <div class="single-product-thumb mb--5">
            <div class="container-fluid p-5 mobile_show">
                <div class="row">
                    <div class="col-lg-5 mb--10">
                        <div class="row">
                            <div class="col-lg-10 order-lg-2">
                                <div class="single-product-thumbnail-wrap zoom-gallery">
                                    <div class="single-product-thumbnail product-large-thumbnail-3 img-section axil-product">
                                        <div class="thumbnail">
                                            <a href="<?php echo e(getImage('products', $product->image)); ?>" class="popup-zoom">
                                                <img src="<?php echo e(getImage('products', $product->image)); ?>" alt="<?php echo e($product->name); ?> Images">
                                            </a>
                                        </div>

                                        <?php $__currentLoopData = $product->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $im): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="thumbnail">
                                            <a href="<?php echo e(getImage('products', $im->image)); ?>" class="popup-zoom">
                                                <img src="<?php echo e(getImage('products', $im->image)); ?>" alt="<?php echo e($product->name); ?> Images">
                                            </a>
                                        </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        
                                    </div>
                                  
                                  	<?php if($info->catalog_mode ==0 && $product->discount_type): ?>
                                    <div class="label-block">
                                        <div class="product-badget" style="background: #fc5403;"><?php echo e($product->discount_type=='fixed'?'Tk :':''); ?><?php echo e($product->discount); ?> <?php echo e($product->discount_type=='fixed'?'':'%'); ?> OFF</div>
                                    </div>
                                  	<?php endif; ?>
                                    <div class="product-quick-view position-view">
                                        <a href="<?php echo e(getImage('products', $product->image)); ?>" class="popup-zoom">
                                            <i class="far fa-search-plus"></i>
                                        </a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-2 order-lg-1">
                                <div class="product-small-thumb-3 small-thumb-wrapper">
                                    <div class="small-thumb-img">
                                        <img src="<?php echo e(getImage('products', $product->image)); ?>" alt="<?php echo e($product->name); ?> image">
                                    </div>
                                    <?php $__currentLoopData = $product->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $im): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="small-thumb-img">
                                        <img src="<?php echo e(getImage('products', $im->image)); ?>" alt="<?php echo e($product->name); ?> image">
                                    </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="col-lg-7 mb--30">

                        <?php if($info->catalog_mode==0): ?>
                        <div class="single-product-content">
                            <div class="inner" style="color:#000">
                                <!--h4 class="product-title" style="margin:0px"><?php echo e($product->name); ?></h4>
                                
                              	<div class="product-price-variant">
                                  <span class="price current-price" style="font-size:22px; font-weight: 500"><?php echo e(priceFormate($data['price'])); ?></span>
                                  <?php if($data['old_price'] >0): ?>
                                  <del><span class="price old-price" style="font-size:14px;margin-left:10px"><?php echo e(priceFormate($data['old_price'])); ?> </span></del>
                                  <?php endif; ?>
                                  
                                  <?php if($product->discount_type): ?>
                                  <span class="price old-price" style="font-size:16px;margin-left:10px;background: #0064D2;padding:4px;color:#fff"><?php echo e($product->discount); ?> <?php echo e($product->discount_type=='fixed'?'া':'%'); ?> OFF </span>
                                  <?php endif; ?>
                                </div>
                              
                                <h6 style="font-size:14px;margin:2px">Catgeory : <?php echo e($product->category?$product->category->name:''); ?></h6>
                                <h6 style="font-size:14px;margin:2px">Brand : <?php echo e($product->brand?$product->brand->name:''); ?></h6-->
                                <div class="product-meta">
                                  	<div style="">
                                      <h2 class="product-title" style="margin:0px"><?php echo e($product->name); ?></h2>
                                  	</div>
                                  	
                                  	<style>
                                  	    .price.old-price{
                                  	            font-size: 25px;
                                                margin-left: 10px;
                                                font-weight: bold;
                                                text-decoration: line-through;
                                  	    }
                                  	    .price.current-price-product{
                                  	            font-size: 34px !important;
                                                font-weight: bold !important;
                                                color: #fc5403;
                                  	    }
                                  	    .hide_span {
                                  	        color: #7393f2 !important;
                                  	    }
                                  	</style>
                                  	
                                  	<div style="">
                                      <div class="product-price-variant">
                                        <span class="price current-price-product" style="">
                                        
                                        <?php  
                                          $curr = $info->currency;                   
                                        ?>

                                        <?php if($curr == 'BDT'): ?>
                                          ৳ <?php echo e($data['price']); ?>

                                        <?php elseif($curr == 'Dollar'): ?> 
                                          $ <?php echo e($data['price']); ?>

                                        <?php elseif($curr == 'Euro'): ?> 
                                          € <?php echo e($data['price']); ?>

                                        <?php elseif($curr == 'Rupee'): ?> 
                                           <?php echo e($data['price']); ?>                 
                                        <?php else: ?>                  
                                         <?php endif; ?>                                 
                                        
                                        
                                        </span>
                                        <?php if($data['discount_amount'] > 0 && $data['old_price'] >0): ?>
                                        <del><span class="price old-price" style="font-size:14px;margin-left:10px">                                          
                                         
                                           <?php  
                                          $curr = $info->currency;                   
                                        ?>

                                        <?php if($curr == 'BDT'): ?>
                                           <?php echo e($data['old_price']); ?>

                                        <?php elseif($curr == 'Dollar'): ?> 
                                          $ <?php echo e($data['old_price']); ?>

                                        <?php elseif($curr == 'Euro'): ?> 
                                          € <?php echo e($data['old_price']); ?>

                                        <?php elseif($curr == 'Rupee'): ?> 
                                           <?php echo e($data['old_price']); ?>                 
                                        <?php else: ?>                  
                                         <?php endif; ?> 
                                          
                                          </span></del>
                                        <?php endif; ?>

                                        <?php if($product->discount_type): ?>
                                        <span class="price old-price" style="font-size:16px;margin-left:12px;background: #fc5403;padding:4px;color:#fff"><?php echo e($product->discount); ?> <?php echo e($product->discount_type=='fixed'?'Tk':'%'); ?> OFF </span>
                                        <?php endif; ?>
                                      </div>
                                  	</div>
                                  	<ul class="product-metas">
                                      <?php echo $product->feature; ?>

                                    </ul>                                  	
                                </div>                             	
                                
                                </div>                               
                                <div class="col-md-6">
                                <form method="POST" action="<?php echo e(route('front.carts.store')); ?>" id="cart_form">
                                    <?php echo csrf_field(); ?>

                                    <?php if($product->type=='single'): ?>
                                    <input type="hidden" name="variation_id" value="<?php echo e($product->variation->id); ?>">
                                    <?php else: ?>
                                    <div class="product-variations-wrapper">

                                        <div class="product-variation product-size-variation">
                                            
                                            <!--<select style="height: 35px; width:50%; margin-bottom: 10px;" name="variation_id">-->
                                            <!--    <option value="" hidden>Select Size and Color ..</option>-->
                                            <!--    <?php $__currentLoopData = $product->variations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>-->
                                            <!--        <option value="<?php echo e($v->id); ?>"><?php echo e('size ('.$v->size->title.') color : ('.$v->color->name.')'); ?></option>-->
                                            <!--    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
                                            <!--</select>-->
                                            <h5><strong>Select Size/Color:</strong></h5>
                                            <div class="sizes" id="sizes">
                                                <?php $__currentLoopData = $product->variations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                  <?php if($v->color->name == 'Default' && $v->size->title == 'free'): ?>
                                                  <?php else: ?>
                                                    <div class="size" value="<?php echo e($v->id); ?>">
                                                        <?php if($v->size->title == 'free'): ?>
                                                        <?php else: ?>
                                                        <?php echo e($v->size->title); ?> 
                                                        <?php endif; ?>
                                                         <span id="add_here" class="" style="color: #fff;">-</span>
                                                         <?php if($v->color->name == 'Default'): ?>
                                                         <?php else: ?>
                                                         <?php echo e($v->color->name); ?>

                                                         <?php endif; ?>
                                                    </div>
                                                <?php endif; ?>    
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </div>
                                            <input type="hidden" id="size_value" name="variation_id">
                                        </div>

                                    </div>
				
                                    <?php endif; ?>
                                    <style>
                                        .sizes{
                                            display: flex;
                                        }
                                        .sizes .size {
                                            padding: 5px;
                                            margin: 5px;
                                            border: 1px solid #fca204;
                                            width: auto;
                                            text-align: center;
                                            cursor: pointer;
                                        }
                                        .sizes .size.active{
                                            background: #fca204;
                                            color: white;
                                        }
                                        
                                        .increase-qty {
                                                width: 32px;
                                                display: block;
                                                float: left;
                                                line-height: 26px;
                                                cursor: pointer;
                                                text-align: center;
                                                font-size: 16px;
                                                font-weight: 300;
                                                color: #000;
                                                height: 32px;
                                                background: #f6f7fb;
                                                border-radius: 50%;
                                                transition: .3s;
                                                border: 2px solid rgba(0,0,0,0);
                                                background: #ffffff;
                                                border: 1px solid #ddd;
                                                border-radius: 10%;
                                        }
                                        .decrease-qty {
                                                width: 32px;
                                                display: block;
                                                float: left;
                                                line-height: 26px;
                                                cursor: pointer;
                                                text-align: center;
                                                font-size: 16px;
                                                font-weight: 300;
                                                color: #000;
                                                height: 32px;
                                                background: #f6f7fb;
                                                border-radius: 50%;
                                                transition: .3s;
                                                border: 2px solid rgba(0,0,0,0);
                                                background: #ffffff;
                                                border: 1px solid #ddd;
                                                border-radius: 10%;
                                        }
                                    </style>
                                <input class="qty1 qty-input" type="hidden" name="quantity" value="1" />
                              

                                    <div class="product-action-wrapper d-flex-center" style="margin-bottom: 15px;">
                                        <!-- Start Quentity Action  -->
                                        <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>">
                                        <?php if($product->after_discount != '0'): ?>
                                        <input type="hidden" name="price" id="price_val" value="<?php echo e($product->after_discount); ?>">
                                        <?php else: ?>
                                        <input type="hidden" name="price" id="price_val" value="<?php echo e($product->sell_price); ?>">
                                        <?php endif; ?>
                                        
                                        <input type="hidden" name="is_stock" value="<?php echo e($product->is_stock); ?>">
                                        
                                       
                                        <div class="pro-qty item-quantity">
                                            <span class="decrease-qty quantity-button">-</span>
                                            <input type="text" class="qty qty-input quantity-input" value="1" name="quantity" />
                                            <span class="increase-qty quantity-button">+</span>
                                        </div>
                                        
                                        <!-- End Quentity Action  -->
                                        <!-- Start Product Action  -->

                                        <ul class="product-action d-flex-center mb--0" style="margin-left: 22px;">
                                            <li class="add-to-cart" style="margin: 0px;">
                                                <?php if($product->is_free_shipping == 0): ?>
                                                <button class="axil-btn" style="padding:7px 28px; background: #fca204; width: 235px;color: white;"><?php echo e($bangla_text->order_text); ?></button>
                                                 
                                                <?php else: ?>
                                                <button class="axil-btn" style="padding:7px 28px; background: #fca204; width: 235px;color: white;"><?php echo e($bangla_text->fshipping_text); ?> <?php echo e($bangla_text->order_text); ?> </button>
                                                <?php endif; ?>
                                            </li>
                                            
                                        </ul>
                                        <!-- End Product Action  --> 
                                    </div>
                                    </form>
                                    </div>
                          <div class="col-md-6" style="margin-bottom: 10px;">
                                     <form method="POST" action="<?php echo e(route('front.carts.storeCart')); ?>" id="cart_submit">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>">
                <input class="qty1 qty-input" type="hidden" name="quantity" value="1" />
                <!--<input type="hidden" name="variation_id" id="size-value" name="variation_id">-->
                <input type="hidden" name="variation_id" id="size_value1" value="<?php echo e($product->variation->id); ?>">
                 <input type="hidden" name="price" id="price_val1" value="">
                <input type="hidden" name="is_stock" value="<?php echo e($product->is_stock); ?>">
                <div class="desktop-cart cart-count" style="padding-bottom: 0px;">
                    <div class="product-add-to-cart col-12">
                        <ul class="cart-action col-12" style="padding-left: 0px;width: 100%;">
                            <li class="select-option col-12" style="margin-bottom: 0px;">
                               
                                <button type="submit" class="btn p-0 m-auto text-light col-12" style="background: #fc5403 !important;"> 
                                      
                                      
                                      <?php if($product->is_free_shipping == 0): ?>
                                     
                                             <p><b style="color: white;">
                                          <i class="fas fa-shopping-cart"></i>
                                          
                                         &nbsp; <?php echo e($bangla_text->cart_text); ?> </b></p>
                                         
                                      <?php else: ?>
                                      
                                        <p><b style="color: white;">
                                          <i class="fas fa-shopping-cart"></i>
                                          
                                         &nbsp; <?php echo e($bangla_text->fshipping_text); ?> - <?php echo e($bangla_text->order_text); ?> </b></p>
                                          
                                    <?php endif; ?>      
                                </button> 
                            </li>
                        </ul>
                    </div>
                </div>
            </form>
                          </div>
            </div>
                                  
                                  <?php if( $info->number_visibility == 3 ): ?>                                    
                                  
                                   <div class="product-action-wrapper phone-box d-flex-center first" style="background:#3167EB;border-radius: 5px;padding: 10px 30px;margin-bottom: 10px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num1); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num1; ?></span></a>
                                      </div>
                                    </div>
                                  
                                  <div class="product-action-wrapper phone-box d-flex-center second" style="background:#FE9017;border-radius: 5px;padding: 10px 30px;margin-bottom: 10px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num2); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num2 ?></span></a>
                                      </div>
                                    </div>
                                  
                                  <div class="product-action-wrapper phone-box d-flex-center third" style="background:#FA3435;border-radius: 5px;padding: 10px 30px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num3); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num3 ?></span></a>
                                      </div>
                                    </div>
                                  <?php elseif( $info->number_visibility == 2 ): ?>
                                    <div class="product-action-wrapper phone-box d-flex-center first" style="background:#3167EB;border-radius: 5px;padding: 10px 30px;margin-bottom: 10px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num1); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num1; ?></span></a>
                                      </div>
                                    </div>
                                  
                                  <div class="product-action-wrapper phone-box d-flex-center second" style="background:#FE9017;border-radius: 5px;padding: 10px 30px;margin-bottom: 10px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num2); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num2 ?></span></a>
                                      </div>
                                    </div>
                                  
                                  <?php elseif( $info->number_visibility == 1 ): ?>
                                    <div class="product-action-wrapper phone-box d-flex-center first" style="background:#3167EB;border-radius: 5px;padding: 10px 30px;margin-bottom: 10px;">                                      
                                      <div class="inner_div" style="margin: 0 auto;">
                                      		<a href="tel: <?php echo e($info->supp_num1); ?>" style="color: white;display: flex; align-items:center"><i class='fas fa-phone-alt'></i> &nbsp;&nbsp; <span><?php echo $info->supp_num1; ?></span></a>
                                      </div>
                                    </div>
                                  
                                  <?php else: ?>
                                  
                                  <?php endif; ?>
                                  
                                  
                                
                                <!-- End Product Action Wrapper  -->
                               
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php endif; ?>
        <!-- End .single-product-thumb -->

        <div class="woocommerce-tabs wc-tabs-wrapper bg-vista-white">
            <div class="container">  
                <div class="product-desc-wrapper">
                    <div class="row">
                        <div class="col-lg-12 mb--20">
                            <h5 class="title"> Short Description </
                            <div class="single-desc pt-4">
                                <?php if($product->video_link): ?>
                                <div class="col-lg-5">
                                  <?php echo $product->video_link; ?>                                  
                                </div>
                                <?php endif; ?>
                                <?php echo $product->body; ?>

                            </div>
                        </div>
                        
                    </div>
                </div>
          </div>
            
            </div>
        <!-- woocommerce-tabs -->
          
    <!--      <div class="woocommerce-tabs wc-tabs-wrapper" style="background: #dbd3d39e;">-->
    <!--        <div class="container">  -->
                
                
    <!--            <div class="reviews-wrapper pt-4">-->
    <!--                <div class="row">-->
    <!--                    <div class="col-lg-6 mb--20">-->
    <!--                        <div class="axil-comment-area pro-desc-commnet-area pt-3">-->
    <!--                            <h5 class="title">(<?php echo e($product->reviews->count()); ?>) Relative Product</h5>-->
    <!--                            <ul class="comment-list">-->
                                    <!-- Start Single Comment  -->
                                  	
    <!--                              <?php $__currentLoopData = $product->reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>-->
    <!--                                <li class="comment">-->
    <!--                                    <div class="comment-body">-->
    <!--                                        <div class="single-comment">-->
    <!--                                            <div class="comment-img">-->
    <!--                                                <img src="<?php echo e(asset('images/users.png')); ?>" alt="Author Images" style="width:60px">-->
    <!--                                            </div>-->
    <!--                                            <div class="comment-inner">-->
    <!--                                                <h6 class="commenter">-->
    <!--                                                    <a class="hover-flip-item-wrapper" href="#">-->
    <!--                                                        <span class="hover-flip-item">-->
    <!--                                                            <span data-text="Cameron Williamson"><?php echo e($review->user?$review->name:''); ?></span>-->
    <!--                                                        </span>-->
    <!--                                                    </a>-->
    <!--                                                    <span class="commenter-rating ratiing-four-star">-->
    <!--                                                      	<?php for($i=1;$i<=5;$i++): ?>-->
                                                        
    <!--                                                          <?php if($i <= $review->review): ?>-->
    <!--                                                            <a><i class="fas fa-star"></i></a>-->
    <!--                                                            <?php else: ?>-->
    <!--                                                            <a><i class="fas fa-star empty-rating"></i></a>-->
    <!--                                                            <?php endif; ?>-->
    <!--                                                        <?php endfor; ?>-->
    <!--                                                    </span>-->
    <!--                                                </h6>-->
    <!--                                                <div class="comment-text">-->
    <!--                                                    <p> <?php echo e($review->message); ?>  </p>-->
    <!--                                                </div>-->
    <!--                                            </div>-->
    <!--                                        </div>-->
    <!--                                    </div>-->
    <!--                                </li>-->
    <!--                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
                                    <!-- End Single Comment  -->
    <!--                            </ul>-->
    <!--                        </div>-->
                            <!-- End .axil-commnet-area -->
    <!--                    </div>-->
                        <!-- End .col -->
    <!--                    <div class="col-lg-6 mb--20">-->
                            <!-- Start Comment Respond  -->
    <!--                        <div class="comment-respond pro-des-commend-respond mt--0">-->
    <!--                            <h5 class="title mb--10">Add a Review</h5>-->
                                
    <!--                            <div class="rating-wrapper d-flex-center mb--10">-->
                                   
    <!--                             <div class="wrapper">-->
    <!--                                <div class="master">-->
    <!--                                    <div class="rating-component">-->
    <!--                                        <div class="status-msg">-->
    <!--                                            <label>-->
    <!--                                                <input class="rating_msg" type="hidden" name="rating_msg" value="" />-->
    <!--                                            </label>-->
    <!--                                        </div>-->
    <!--                                        <div class="stars-box">-->
    <!--                                            <i class="star fa fa-star" title="1 star" data-message="Poor" data-value="1"></i>-->
    <!--                                            <i class="star fa fa-star" title="2 stars" data-message="Too bad" data-value="2"></i>-->
    <!--                                            <i class="star fa fa-star" title="3 stars" data-message="Average quality" data-value="3"></i>-->
    <!--                                            <i class="star fa fa-star" title="4 stars" data-message="Nice" data-value="4"></i>-->
    <!--                                            <i class="star fa fa-star" title="5 stars" data-message="very good qality" data-value="5"></i>-->
    <!--                                        </div>-->
    <!--                                        <div class="starrate">-->
    <!--                                            <label>-->
    <!--                                                <input class="ratevalue" type="hidden" name="rate_value" value="" />-->
    <!--                                            </label>-->
    <!--                                        </div>-->
    <!--                                    </div>-->

    <!--                                    <div class="feedback-tags">-->
    <!--                                        <div class="tags-container" data-tag-set="1">-->
    <!--                                            <div class="question-tag">-->
    <!--                                                Why was your experience so bad?-->
    <!--                                            </div>-->
    <!--                                        </div>-->
    <!--                                        <div class="tags-container" data-tag-set="2">-->
    <!--                                            <div class="question-tag">-->
    <!--                                                Why was your experience so bad?-->
    <!--                                            </div>-->
    <!--                                        </div>-->

    <!--                                        <div class="tags-container" data-tag-set="3">-->
    <!--                                            <div class="question-tag">-->
    <!--                                                Why was your average rating experience ?-->
    <!--                                            </div>-->
    <!--                                        </div>-->
    <!--                                        <div class="tags-container" data-tag-set="4">-->
    <!--                                            <div class="question-tag">-->
    <!--                                                Why was your experience good?-->
    <!--                                            </div>-->
    <!--                                        </div>-->

    <!--                                        <div class="tags-container" data-tag-set="5">-->
    <!--                                            <div class="make-compliment">-->
    <!--                                                <div class="compliment-container">-->
    <!--                                                    Give a compliment-->
    <!--                                                    <i class="far fa-smile-wink"></i>-->
    <!--                                                </div>-->
    <!--                                            </div>-->
    <!--                                        </div>-->

    <!--                                        <div class="tags-box">-->
    <!--                                            <form action="<?php echo e(route('front.product-reviews.store')); ?>" method="post" id="review_form">-->
    <!--                                              	<?php echo csrf_field(); ?>-->
    <!--                                              	<input type="hidden" name="product_id" value="<?php echo e($product->id); ?>" />-->
    <!--                                              	<input type="hidden" name="review" id="review" value="" />-->
                                                  	
    <!--                                                <div class="row">-->
    <!--                                                    <div class="col-12">-->
    <!--                                                        <div class="form-group">-->
    <!--                                                            <label>Other Notes (optional)</label>-->
    <!--                                                            <textarea name="message" placeholder="Your Comment"></textarea>-->
    <!--                                                        </div>-->
    <!--                                                    </div>-->
    <!--                                                    <div class="col-lg-6 col-md-6 col-12 m-0">-->
    <!--                                                        <div class="form-group">-->
    <!--                                                            <label>Name <span class="require">*</span></label>-->
    <!--                                                            <input id="name" type="text" name="name"/>-->
    <!--                                                        </div>-->
    <!--                                                    </div>-->
                                                        
    <!--                                                    <div class="col-lg-12 m-0">-->
    <!--                                                        <div class="button-box form-submit">-->
    <!--                                                            <button type="submit" id="submit" class="axil-btn btn-bg-primary w-auto">Submit Comment</button>-->
    <!--                                                        </div>-->
    <!--                                                      <div class="submited-box">-->
    <!--                                                          <div class="loader"></div>-->
    <!--                                                          <div class="success-message">-->
    <!--                                                              Thank you!-->
    <!--                                                          </div>-->
    <!--                                                      </div>-->
    <!--                                                    </div>-->
    <!--                                                </div>-->
    <!--                                            </form>-->
    <!--                                        </div>-->
    <!--                                    </div>-->

                                        
    <!--                                </div>-->
    <!--                            </div>-->

 			<!--					</div>-->
    <!--                        </div>-->
                            <!-- End Comment Respond  -->
    <!--                    </div>-->
                        <!-- End .col -->
    <!--                </div>-->
    <!--            </div>-->
                        
    <!--        </div>-->
            
            
            <!--  second woocomerce -->

    <!--</div>-->
    <!-- End Shop Area  -->

    <!-- Start Recently Viewed Product Area  -->
    <div class="axil-product-area bg-color-white pt--10">
        <div class="container-fluid">
            <a class="viewall-right" href="<?php echo e(route('front.products.index')); ?>"><span class="title-highlighter view all highlighter-primary"> View All >></span></a>
            <div class="section-title-wrapper">
                <!--<span class="title-highlighter highlighter-primary"> <i class="far fa-shopping-basket"></i> Our Products</span>-->
                <h2 class="title">You Might Also Like</h2>
            </div>
            <div class="explore-product-activation slick-layout-wrapper slick-layout-wrapper--15 axil-slick-arrow arrow-top-slide">
                <div class="slick-single-layout" id="relative_data">
                    
                </div>
                <!-- End .slick-single-layout -->
            </div>

        </div>
    </div>
    <!-- End Recently Viewed Product Area  -->
</main>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>
<script type="text/javascript">

  $(document).on('submit','form#cart_submit', function(e) {   
    e.preventDefault();
    
    let url=$(this).attr('action');
	let method=$(this).attr('method');
	let data= $(this).serialize();
	
	$.ajax({
	    url: url,
        method: method,
        data: data,
        success: function (res) {
            if (res.success) {
                toastr.success(res.msg);
                if (res.view) {
                	$(document).find('div#cart_section').html(res.view);
                }

                if (res.item) {
                	$(document).find('span.cart-count').text(res.item);
                }
              
                if(res.url){
                	document.location.href = res.url;
                } else {
                    window.location.reload();
                }
                
            }else{
                toastr.error(res.msg);
            }
        },
        error:function (response){
            $.each(response.responseJSON.errors,function(field_name,error){
                toastr.error(error);
            })
        }
	}); 
 
}); 
    
    $('li.size').click(function(){

        $('li.size').removeClass('active');
   
        $(this).addClass('active');
        
    });


    $('li.color').click(function(){

        $('li.color').removeClass('active');
        $(this).addClass('active');
    
    });
  
  	$(document).ready(function(){
        getRelatedProduct();
        
        function getRelatedProduct(){
            let url ='<?php echo e(route("front.products.relativeProduct",[$product->id])); ?>';
            $.ajax({
                url: url,
                method: 'GET',
                data:{},
                dataType :"JSON",
                success: function (res) {

                    if (res.success) {
                        $('div#relative_data').html(res.html);
                    }
                   
                }
            });
        }

    });
</script>
  <script type="text/javascript">
//   $(document).ready(function(){
//       $('#sizes .size').on('click', function(){
//           $('#sizes .size').removeClass('active');
//           $(this).addClass('active');
//           var value = $(this).attr('value');
//           $("#size-value").val(value);
//           $("#size_value1").val(value);
        
//       }) 
//     });

$('#sizes .size').on('click', function(){
           $('#sizes .size').removeClass('active');
           $(this).addClass('active');
        //   $('#add_here').addClass('hide_span');
           let value = $(this).attr('value');
           $.ajax({
               type: 'get',
               url: '<?php echo e(route("front.get-variation_price")); ?>',
               data: {value},
               success: function(res)
               {
                   $('.current-price-product').text('৳'+res.price);
                   $('#price_val').val(res.price);
                   $('#price_val1').val(res.price);
                   console.log(res);
               }
           });
         
           $("#size_value").val(value);
           $("#size_value1").val(value);
        
       });
    
    $('.increase-qty').on('click', function () {
            var proQty = $('.qty1').val();  
            var qtyInput = $(this).siblings('.qty');
            
            var newQuantity = parseInt(qtyInput.val()) + 1;
            
            $('.qty1').val(newQuantity);
            // proQty.val(newQuantity);
            qtyInput.val(newQuantity);
        });
    
        $('.decrease-qty').on('click', function () {
            var qtyInput = $(this).siblings('.qty');
            var newQuantity = parseInt(qtyInput.val()) - 1;
            if (newQuantity > 0) {
                qtyInput.val(newQuantity);
            }
            if(parseInt(qtyInput.val() != '0'))
            {
                $('.qty1').val(newQuantity);    
            }
            
        });
    
    
    $(".rating-component .star").on("mouseover", function () {
  var onStar = parseInt($(this).data("value"), 10); //
  $(this).parent().children("i.star").each(function (e) {
    if (e < onStar) {
      $(this).addClass("hover");
    } else {
      $(this).removeClass("hover");
    }
  });
}).on("mouseout", function () {
  $(this).parent().children("i.star").each(function (e) {
    $(this).removeClass("hover");
  });
});

$(".rating-component .stars-box .star").on("click", function () {
  var onStar = parseInt($(this).data("value"), 10);
  var stars = $(this).parent().children("i.star");
  var ratingMessage = $(this).data("message");

  var msg = "";
  if (onStar > 1) {
    msg = onStar;
  } else {
    msg = onStar;
  }
  $(document).find('#review').val(onStar);
  $('.rating-component .starrate .ratevalue').val(msg);
  

 
  $(".fa-smile-wink").show();
  
  $(".button-box .done").show();

  if (onStar === 5) {
    $(".button-box .done").removeAttr("disabled");
  } else {
    $(".button-box .done").attr("disabled", "true");
  }

  for (i = 0; i < stars.length; i++) {
    $(stars[i]).removeClass("selected");
  }

  for (i = 0; i < onStar; i++) {
    $(stars[i]).addClass("selected");
  }

  $(".status-msg .rating_msg").val(ratingMessage);
  $(".status-msg").html(ratingMslick-slideressage);
  $("[data-tag-set]").hide();
  $("[data-tag-set=" + onStar + "]").show();
});

$(".feedback-tags  ").on("click", function () {
  var choosedTagsLength = $(this).parent("div.tags-box").find("input").length;
  choosedTagsLength = choosedTagsLength + 1;

  if ($(this).hasClass("choosed")) {
    $(this).removeClass("choosed");
    choosedTagsLength = choosedTagsLength - 2;
  } else {
    $(this).addClass("choosed");
    $(".button-box .done").removeAttr("disabled");
  }

  console.log(choosedTagsLength);

  if (choosedTagsLength <= 0) {
    $(".button-box .done").attr("enabled", "false");
  }
});



$(".compliment-container .fa-smile-wink").on("click", function () {
  $(this).fadeOut("slow", function () {
    $(".list-of-compliment").fadeIn();
  });
});


$(".done").on("click", function () {
  $(".rating-component").hide();
  $(".feedback-tags").hide();
  $(".button-box").hide();
  $(".submited-box").show();
  $(".submited-box .loader").show();

  setTimeout(function () {
    $(".submited-box .loader").hide();
    $(".submited-box .success-message").show();
  }, 1500);
});

</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xamp\htdocs\project2\resources\views/frontend/products/show.blade.php ENDPATH**/ ?>