Viewing file: 7baab413fc98edd33d54e3c028a1e531.php (20.58 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('meta'); ?>
<meta name="keywords" content="<?php echo e($setting->meta_keywords); ?>">
<meta name="description" content="<?php echo e($setting->meta_description); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<main class="solo-p-moblie">
<div class="mb-md-1 pb-md-3"></div>
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="image-thumbnail-carousel row d-none">
</div>
<div class="swiper product-swiper">
<?php
$product_galleries = $product->galleries ?? [];
$videoPath = isset($product_video) && file_exists('assets/videos/' . $product_video)
? asset('assets/videos/' . $product_video)
: null;
?>
<div class="swiper-wrapper">
<!-- Video Slide (if available) -->
<?php if($videoPath): ?>
<div class="swiper-slide">
<video
id="product-video"
controls autoplay muted
style="width: 100%; height: 100%; object-fit: contain;">
<source src="<?php echo e($videoPath); ?>" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<?php endif; ?>
<!-- Image Slides -->
<?php $__currentLoopData = $product_galleries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="swiper-slide">
<img
src="<?php echo e(asset('assets/images/' . $gallery->photo)); ?>"
alt="Product Image"
style="width: 100%; height: 100%; object-fit: contain;">
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<!-- Swiper Navigation Buttons -->
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<!-- Swiper Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<div class="col-lg-5">
<div class="d-flex justify-content-between mb-4 pb-md-2">
<div class="p-0 mb-0">
<a href="#" class="a-link text-uppercase"> Home </a>
<span> / </span>
<a href="<?php echo e(route('front.catalog')); ?>" class="a-link text-uppercase"> The Shop </a>
</div>
<div class="product-prev-next d-flex align-items-center justify-content-between justify-content-md-end">
<?php if($previousProduct): ?>
<a href="<?php echo e(route('front.product.solo', $previousProduct->slug)); ?>" class="text-uppercase fw-medium">
<span><i class="far fa-angle-left"></i></span>
<span class="a-link">Prev</span>
</a>
<?php else: ?>
<a href="#" class="text-uppercase fw-medium a-disabled" disabled>
<span><i class="far fa-angle-left"></i></span>
<span class="a-link">Prev</span>
</a>
<?php endif; ?>
<?php if($nextProduct): ?>
<a href="<?php echo e(route('front.product.solo', $nextProduct->slug)); ?>" class="text-uppercase fw-medium">
<span class="a-link">Next</span>
<span><i class="far fa-angle-right"></i></span>
</a>
<?php else: ?>
<span class="text-uppercase fw-medium a-disabled" disabled>
<span class="a-link">Next</span>
<span><i class="far fa-angle-right"></i></span>
</span>
<?php endif; ?>
</div>
</div>
<h1 class="product-single-name">
<?php echo e($product->name); ?>
</h1>
<div class="d-flex align-items-center">
<div class="d-flex" style="margin-right: 20px;">
<?php
$fullStars = floor($averageRating);
$halfStar = ($averageRating - $fullStars) >= 0.5 ? 1 : 0;
$emptyStars = 5 - ($fullStars + $halfStar);
for ($i = 0; $i < $fullStars; $i++) {
echo "<i class='fa fa-star review-stars'></i>";
}
if ($halfStar) {
echo "<i class='fa fa-star-half-alt review-stars'></i>";
}
for ($i = 0; $i < $emptyStars; $i++) {
echo "<i class='far fa-star review-stars '></i>";
}
?>
</div>
<?php
$count = $product->reviews->count();
if ($count >= 1_000_000_000_000) {
$formattedCount = round($count / 1_000_000_000_000, 1) . 't';
} elseif ($count >= 1_000_000_000) {
$formattedCount = round($count / 1_000_000_000, 1) . 'b';
} elseif ($count >= 1_000_000) {
$formattedCount = round($count / 1_000_000, 1) . 'm';
} elseif ($count >= 1_000) {
$formattedCount = round($count / 1_000, 1) . 'k';
} else {
$formattedCount = $count;
}
?>
<span class="text-lowercase text-secondary ml-1" style="font-size: 13px;"><?php echo e($formattedCount); ?> reviews</span>
</div>
<div class="product-single-price mt-1">
<span id="main_price" class="totalprice_solo" data-price="<?php echo e($product->discount_price); ?>">
<?php echo e(PriceHelper::setPreviousPrice($product->discount_price)); ?>
</span>
</div>
<div class="product-single-short-des">
<p> <?php echo e($product->sort_details); ?></p>
</div>
<input type="hidden" id="item_id" value="<?php echo e($product->id); ?>">
<input type="hidden" id="item_type" value="<?php echo e($product->item_type); ?>">
<input type="hidden" id="demo_price" value="<?php echo e(PriceHelper::setConvertPrice($product->discount_price)); ?>">
<input type="hidden" value="<?php echo e(PriceHelper::setCurrencySign()); ?>" id="set_currency">
<input type="hidden" value="<?php echo e(PriceHelper::setCurrencyValue()); ?>" id="set_currency_val">
<input type="hidden" value="<?php echo e($setting->currency_direction); ?>" id="currency_direction">
<input type="hidden" class="new-color-select">
<input type="hidden" name="new-size" id="chose-sizes">
<div class="product-size-n-color-sec">
<?php $__currentLoopData = $product_attributes_grouped; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attributeName => $options): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-sm-12">
<div class="mt-3 product-categories-f p-0 border-0 text-uppercase d-flex w-100 align-items-center">
<?php echo e($attributeName); ?>
</div>
<div class="product-categories-f-lists px-0 pb-3 pt-2 d-flex">
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<ul class="row mb-0 p-0">
<?php if($attributeName == 'Weight'): ?>
<div class="col-12 mt-3">
<a href="#" data-href="<?php echo e($option->id); ?>" data-type="<?php echo e($option->attribute_id); ?>"
data-item-weight-price="<?php echo e(PriceHelper::setConvertPrice($option->price)); ?>"
data-weight="<?php echo e($option->name); ?>"
class="ex-item-show-weight chose-weight gt_attr_item get_weight_attribute weightKey">
<?php echo e(trim($option->name)); ?>
</a>
</div>
<?php elseif($attributeName == 'Size'): ?>
<li class="col-3 mt-3">
<a href="#" data-href="<?php echo e($option->id); ?>" data-type="<?php echo e($option->attribute_id); ?>"
data-item-price="<?php echo e(PriceHelper::setConvertPrice($option->price)); ?>"
class="ex-item-show-size chose-size gt_attr_item get_size_attribute">
<?php echo e($option->name); ?>
</a>
</li>
<?php elseif($attributeName == 'Color'): ?>
<li>
<a href="#" data-href="<?php echo e($option->id); ?>" data-type="<?php echo e($option->attribute_id); ?>"
data-item-price="<?php echo e(PriceHelper::setConvertPrice($option->price)); ?>"
class="hover-product-content-color2 color_select222 m-0 gt_attr_item get_color_attribute"
data-color="<?php echo e($option->name); ?>"
style="color: <?php echo e($option->name); ?> !important;">
</a>
</li>
<?php endif; ?>
</ul>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<div class="solo-product-addcart">
<?php if($product->item_type == 'normal'): ?>
<div class="solo-product-addcart-qy">
<input type="number" value="1" id="qtyValue_1" class="qtyValue cart-amount qty-solo-product text-center quantity_section_solo" name="quantity">
<div class="qty-reduce quantity_mine_solo decreaseQty subclick">-</div>
<div class="qty-add quantity_plus_solo increaseQty addclick">+</div>
<input type="hidden" value="<?php echo e($product->stock); ?>" id="current_stock">
</div>
<?php endif; ?>
<div>
<?php if(Auth::user()): ?>
<?php
$hasAttributes = $product->attributes->isNotEmpty();
?>
<a id="add_to_cart" data-p-item-type="<?php echo e($hasAttributes ? 'yes' : 'no'); ?>" class="">ADD TO CART</a>
<?php else: ?>
<a href="<?php echo e(route('user.login')); ?>">ADD TO CART</a>
<?php endif; ?>
</div>
</div>
<div class="solo-product-links">
<a href="#" data-url="<?php echo e(route('user.wishlist.store')); ?>" data-token="<?php echo e(csrf_token()); ?>" data-product-id="<?php echo e($product->id); ?>" class="a-link whish-list-add"><i class="far fa-heart mr-2"></i> Add to Wishlist</a>
</div>
<div class="solo-product-links-meta-info mb-0">
<div class="links-meta">
<label for="">SKU:</label>
<span><?php echo e($product->sku); ?></span>
</div>
<div class="links-meta">
<label for="">Category:</label>
<span><?php echo e($product->category->name); ?></span>
</div>
<div class="links-meta">
<label for="">Tags:</label>
<span> <?php echo e($product->tags); ?></span>
</div>
</div>
</div>
</div>
<div class="product-single-details-tabs">
<ul class="nav nav-pills mb-3 justify-content-center text-uppercase" id="pills-tab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link nav-link2 active" id="pills-home-tab-details" data-bs-toggle="pill" data-bs-target="#pills-details" type="button" role="tab" aria-controls="pills-details" aria-selected="true">Description</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link nav-link2" id="pills-profile-tab" data-bs-toggle="pill" data-bs-target="#pills-profile" type="button" role="tab" aria-controls="pills-profile" aria-selected="false">Additional Information</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link nav-link2" id="pills-contact-tab" data-bs-toggle="pill" data-bs-target="#pills-contact" type="button" role="tab" aria-controls="pills-contact" aria-selected="false">Reviews (<?php echo e($product->reviews->count()); ?>)</button>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-details" role="tabpanel" aria-labelledby="pills-home-tab-details">
<?php echo $product->details; ?>
</div>
<div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">
<div class="product-single-addtional">
<?php
$specificationsname = json_decode($product->specification_name, true);
$specificationsdes = json_decode($product->specification_description, true);
$combinedSpecifications = [];
if (is_array($specificationsname) && is_array($specificationsdes)) {
foreach ($specificationsname as $index => $specification_name) {
if (isset($specificationsdes[$index])) {
$combinedSpecifications[$specification_name] = $specificationsdes[$index];
}
}
}
?>
<?php if($combinedSpecifications): ?>
<?php $__currentLoopData = $combinedSpecifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $combinedSpecification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="product-single-additional-item">
<label><?php echo e(str_replace(':', '', $key)); ?></label>
<span><?php echo e($combinedSpecification); ?></span>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
</div>
<div class="tab-pane fade" id="pills-contact" role="tabpanel" aria-labelledby="pills-contact-tab">
<div class="row">
<div class="col-12">
<?php $__currentLoopData = $product->reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="row pt-3 pb-3 mt-4 justify-content-center border-bottom-color">
<div class="col-2 col-lg-1">
<div class="reviews-img">
<img src="<?php echo e(asset('assets/images/' . $review->user->photo)); ?>" alt="reviewer-img">
</div>
</div>
<div class="col-10 col-lg-9">
<div class="reviews-respons">
<div class="reviewers-data d-flex">
<div class="me-auto">
<h6 class="m-0"><?php echo e($review->user->first_name); ?> <?php echo e($review->user->last_name); ?></h6>
<p><?php echo e($review->created_at->format('F d, Y')); ?></p>
</div>
<div class="reviewers-rate">
<?php
for($i=0; $i<$review->rating;$i++){
echo "<i class = 'fa fa-star'></i>";
}
for ($i = $review->rating; $i < 5; $i++) {
echo "<i class='far fa-star filled'></i>";
}
?>
</div>
</div>
<div class="reviewers-data-text mt-4">
<p> <?php echo e($review->review); ?> </p>
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\ecommerce1\core\resources\views/front/solo_product/index.blade.php ENDPATH**/ ?>
|