<div class="product-tabs inner-bottom-xs wow fadeInUp"> <div class="row"> <div class="col-sm-3"> <ul id="product-tabs" class="nav nav-tabs nav-tab-cell"> <li class="active"><a data-toggle="tab" href="#description"><?php echo app('translator')->getFromJson('DESCRIPTION'); ?></a></li> <li><a data-toggle="tab" href="#specification"><?php echo app('translator')->getFromJson('SPECIFICATION'); ?></a></li> <li><a data-toggle="tab" href="#review"><?php echo app('translator')->getFromJson('REVIEWS'); ?></a></li> </ul> </div> <div class="col-sm-9"> <div class="tab-content"> <div id="description" class="tab-pane in active"> <div class="product-description"> <h4 class="title"><?php echo app('translator')->getFromJson('Product Description'); ?></h4> <p class="text top-10"> <?php echo $product->description; ?> </p> </div> </div> <div id="specification" class="tab-pane"> <div class="product-tag"> <h4 class="title"><?php echo app('translator')->getFromJson('Product Specifications'); ?></h4> <?php if(count($product->specificationTypes) > 0): ?> <br> <div class="table-responsive"> <table class="table table-bordered table-hover"> <tbody> <tr> <th><?php echo app('translator')->getFromJson('PROPERTY'); ?></th> <th><?php echo app('translator')->getFromJson('VALUE'); ?></th> </tr> <?php $__currentLoopData = $product->specificationTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $specification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($specification->pivot->value)): ?> <tr> <th width="40%"><?php echo e($specification->name); ?></th> <td><?php echo e($specification->pivot->value); ?> <?php echo e($specification->pivot->unit); ?></td> </tr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> <div id="review" class="tab-pane"> <div class="product-tab" id="reviews"> <div class="product-reviews"> <h4 class="title"><?php echo app('translator')->getFromJson('Customer Reviews'); ?></h4> <div class="reviews"> <?php echo $__env->make('includes.reviews', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> </div> <?php if(Auth::check()): ?> <?php if(!$product->reviews->contains('user_id', Auth::user()->id)): ?> <div class="product-add-review"> <h4 class="title"><?php echo app('translator')->getFromJson('Write your own review'); ?></h4> <?php echo Form::open(['method'=>'post', 'action'=>'FrontReviewsController@store', 'id'=>'review-form', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']); ?> <?php echo Form::hidden('product', $product ? $product->id : 0); ?> <span class="weight-title"> <?php echo app('translator')->getFromJson('Your Rating'); ?> : </span> <div class="rating"> <div class="row"> <div class="col-12 col-md-6 custom_add_rating_div"> <div id="halfstarsReview"></div> </div> <input type="hidden" name="stars" readonly id="halfstarsInput" class="form-control form-control-sm"> </div> </div> <div class="form-group<?php echo e($errors->has('review') ? ' has-error' : ''); ?>"> <?php echo Form::textarea('review', null, ['rows'=>6, 'cols'=>4, 'id'=>'front_review_form', 'class'=>'form-control', 'placeholder'=>__('Enter your review')]); ?> </div> <div class="form-group text-right"> <?php echo Form::submit(__('Submit Review'), ['class'=>'btn btn-primary', 'name'=>'submit_button']); ?> </div> <?php echo Form::close(); ?> </div> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> </div>