Current File : //home/tradevaly/public_html/storage/framework/views/527e4718ee334e62c58b39b0621fe7b645bc95fb.php |
<?php $__env->startPush('style'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/frontend/css/lightslider.css')); ?>">
<style>
.qty-container{
display: flex;
align-items: center;
}
.qty-container .input-qty{
text-align: center;
padding: 6px 10px;
border: 1px solid #d4d4d4;
max-width: 80px;
}
.qty-container .qty-btn-minus,
.qty-container .qty-btn-plus{
border: 1px solid #d4d4d4;
padding: 10px 13px;
font-size: 10px;
height: 38px;
width: 38px;
transition: 0.3s;
}
.qty-container .qty-btn-plus{
margin-left: -1px;
}
.qty-container .qty-btn-minus{
margin-right: -1px;
}
</style>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('product-info'); ?>
<meta property="og:type" content="website">
<meta property="og:title" content="<?php echo e($product->title); ?>">
<meta property="og:description" content="<?php echo strip_tags($product->description); ?>">
<meta property="og:image" content="<?php echo e(asset('storage/images/admin/product/'.$product->image.'')); ?>">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<link href="https://cdn.jsdelivr.net/npm/shareon@2/dist/shareon.min.css" rel="stylesheet"/>
<div class="bread">
<div class="container">
<ul class="breadcrumb d-flex justify-content-between">
<div class=" d-flex">
<li class="breadcrumb-item" itemtype="" itemscope="">
<a itemprop="url" href="<?php echo e(route('homepage')); ?>">
<span itemprop="title"><?php echo e(translate('Home')); ?></span>
</a>
</li>
<li class="breadcrumb-item active" itemtype="" itemscope="">
<span itemprop="title"><?php echo e($product->title); ?></span>
</li>
</div>
</ul>
</div>
</div>
<!--------------------------- Single Product view -------------------------------->
<style>
.shareon {
font-size: 0!important;
botton: 1px;
position: relative;
bottom: -23px;
}
</style>
<section class="productbox mob-box bggrey">
<div class="container ">
<div class="row">
<div class="col-md-9 mt-3">
<div class="detail-box brd-white-pad">
<h2 class="prd-titile"><?php echo e($product->title); ?></h2>
<div class="col-md-12">
<div class="row">
<div class="col-md-7 pl-0">
<div class="lSSlideOuter ">
<div class="lSSlideWrapper usingCss" style="transition-duration: 500ms; transition-timing-function: ease;">
<ul id="image-gallery" class="lightSlider lsGrab lSSlide" style="width: 2587.5px; transform: translate3d(-431.25px, 0px, 0px); height: 431.25px; padding-bottom: 0%;">
<li data-thumb="<?php echo e(asset('storage/images/admin/product/'.$product->image.'')); ?>">
<img src="<?php echo e(asset('storage/images/admin/product/'.$product->image.'')); ?>" alt="produt img">
</li>
<?php if($product->gallary1): ?>
<li data-thumb="<?php echo e(asset('storage/images/admin/product/'.$product->gallary1.'')); ?>">
<img src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary1.'')); ?>" alt="gellry 1">
</li>
<?php endif; ?>
<?php if($product->gallary2): ?>
<li data-thumb="<?php echo e(asset('storage/images/admin/product/'.$product->gallary2)); ?>">
<img src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary2)); ?>" alt="">
</li>
<?php endif; ?>
<?php if(!empty($product->gallary3)): ?>
<li data-thumb="<?php echo e(asset('storage/images/admin/product/'.$product->gallary3)); ?>">
<img src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary3)); ?>" alt="">
</li>
<?php endif; ?>
<?php if(!empty($product->gallary4)): ?>
<li data-thumb="<?php echo e(asset('storage/images/admin/product/'.$product->gallary4)); ?>">
<img src="<?php echo e(asset('storage/images/admin/product/'.$product->gallary4)); ?>" alt="">
</li>
<?php endif; ?>
</ul>
<div class="lSAction">
<a class="lSPrev"></a>
<a class="lSNext"></a>
</div>
</div>
</div>
<div class="shareon pb-3">
<a class="facebook"></a>
<a class="linkedin"></a>
<!--<a class="telegram"></a>-->
<!--<a class="twitter"></a>-->
<!--<a class="whatsapp"></a>-->
</div>
</div>
<div class="col-md-5 pl-0">
<div class="prod-info w-100">
<ul>
<?php if(!empty($product->supply_ability)): ?>
<li><strong><?php echo e(translate('Supply Ability:')); ?> <?php echo e($product->supply_ability); ?> <?php echo e($product->unit); ?> per Day</strong></li>
<?php endif; ?>
<li><strong><?php echo e(translate('Origin:')); ?> <?php echo e($product->origin); ?></strong></li>
<?php if(isset($product->stock)): ?>
<li><strong><?php echo e(translate('Stock:')); ?> <?php echo e($product->stock); ?></strong></li>
<?php endif; ?>
<?php if(isset($product->model_number)): ?>
<li><strong><?php echo e(translate('Model Number:')); ?> <?php echo e($product->model_number); ?></strong></li>
<?php endif; ?>
<?php if(isset($product->brand)): ?>
<li><strong><?php echo e(translate('Brand:')); ?> <?php echo e($product->brand); ?></strong></li>
<?php endif; ?>
<?php if(isset($product->material)): ?>
<li><strong><?php echo e(translate('Material:')); ?> <?php echo e($product->material); ?></strong></li>
<?php endif; ?>
<?php if(isset($product->processing_time)): ?>
<li><strong><?php echo e(translate('Processing Time:')); ?> <?php echo e($product->processing_time); ?> Days</strong></li>
<?php endif; ?>
<?php if($product->product_type == "ecommerce"): ?>
<?php if($product->price_type == 'negotiable'): ?>
<li><strong>Price : Negotiable</strong></li>
<?php else: ?>
<li><strong>Price : <span id="price"><?php echo e($product->price); ?></span> <?php echo e($product->currency); ?></strong></li>
<?php if($product->discount_price >0): ?>
<li><strong>Discount Price : <span id="dprice"><?php echo e($product->discount_price); ?></span>%</strong></li>
<?php else: ?>
<li class='d-none'><strong>Discount Price : <span id="dprice">0</span>%</strong></li>
<?php endif; ?>
<?php endif; ?>
<?php if($product->price_type == 'negotiable'): ?>
<?php else: ?>
<?php if($product_prices->count() !=0): ?>
<li>
<table class="table">
<thead>
<tr>
<th scope="col">Min</th>
<th scope="col">Max</th>
<th scope="col">Unit/Price</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $product_prices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_price): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($product_price->pbq): ?>
<tr >
<td><?php echo e($product_price->min.$product->currency); ?></td>
<td><?php echo e($product_price->max.$product->currency); ?></td>
<td><?php echo e($product_price->total.$product_price->unit); ?></td>
</tr>
<?php else: ?>
<tr >
<td><?php echo e($product_price->min.$product_price->unit); ?></td>
<td><?php echo e($product_price->max.$product_price->unit); ?></td>
<td><?php echo e($product_price->total.$product->currency); ?></td>
</tr>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</li>
<?php endif; ?>
<?php if($product->price_type !== 'negotiable'): ?>
<li>
<form action="<?php echo e(route('user.cart.store')); ?>" method="post">
<div class="d-flex justify-content-between">
<div class="col-md-4 mb-3">
<div class="qty-container">
<button class="qty-btn-minus btn-light" type="button"><i class="fa fa-minus"></i></button>
<input type="hidden" name="product_id" value="<?php echo e($product->id); ?>"/>
<input onchange="priceFunction()" type="text" name="quantity" value="1" id="inputValue" class="input-qty mx-3"/>
<button class="qty-btn-plus btn-light " type="button"><i class="fa fa-plus"></i></button>
</div>
</div>
</div>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php if($product->price_type !== 'negotiable'): ?>
<div class="row ml-3">
<div class=" d-flex justify-content-between w-100">
<div class="pr-3">
<label for="name" class="form-label"><strong>Sub Total:</strong> </label>
</div>
<div class="price_box"><span id="subTotal"><?php echo e($product->price); ?></span> <?php echo e($product->currency); ?></div>
</div>
</div>
<div class="row ml-3">
<div class=" d-flex justify-content-between w-100">
<div class="pr-3">
<label for="name" class="form-label"><strong>Discount: </strong></label>
</div>
<div class="price_box">-<span id="discount"><?php echo e((($product->discount_price/100)*$product->price )); ?></span> <?php echo e($product->currency); ?></div>
</div>
</div>
<hr class="m-0 p-0">
<div class="row ml-3">
<div class=" d-flex justify-content-between w-100">
<div class="pr-3">
<label for="name" class="form-label"><strong>Total Price:</strong> </label>
</div>
<div class="price_box"><span id="total"><?php echo e($product->price - (($product->discount_price/100)*$product->price )); ?></span> <?php echo e($product->currency); ?></div>
</div>
</div>
<?php endif; ?>
<div class="buyer-listing-social">
<?php if(Auth::check()): ?>
<button type="submit" class="btn btn-success buyer-listing-btn" style="font-size: 10px;"><?php echo e(translate('Add Cart')); ?></button>
<a href="<?php echo e(route('user.check.buy',$product->id)); ?>" class="buyer-listing-btn"><?php echo e(translate('Buy Now')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('front.user.login')); ?>" title="<?php echo e(translate('Join Free')); ?>" class="btn btn-success buyer-listing-btn"><?php echo e(translate('Add Cart')); ?></a>
<a href="<?php echo e(route('front.user.login')); ?>" title="<?php echo e(translate('Join Free')); ?>" class="buyer-listing-btn"><?php echo e(translate('Buy Now')); ?></a>
<?php endif; ?>
</div>
</form>
<?php else: ?>
<div class="buyer-listing-social">
<?php if(Auth::check()): ?>
<a href="<?php echo e(route('product.inquery', $product->slug)); ?>" class="buyer-listing-btn"><?php echo e(translate('Inquire Now')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('front.user.login')); ?>" title="<?php echo e(translate('Join Free')); ?>" class="buyer-listing-btn"><?php echo e(translate('Inquire Now')); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(isset($product->supplier->user->package->slug)): ?>
<figure class="free-mem"> <a href="<?php echo e(route('packages')); ?>" title="Free"> <img class="emtag lazy" src="<?php echo e(asset('storage/images/admin/package/'.$product->supplier->user->package->image)); ?>" style=""> </a> </figure>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="clear"> </div>
</div>
<div class="prod-supplier-box mob-prod brd-white-pad">
<h2><?php echo e(translate('Supplier Info.')); ?></h2>
<div class="row">
<div class="col-md-1 nopad ">
<?php if(isset($product->supplier->user->username)): ?>
<i><a href="<?php echo e(route('supplier.view', $product->supplier->user->username)); ?>" title="<?php echo e($product->supplier->name); ?>"><img class="lazy" src="<?php echo e(asset('storage/images/user/avatar/'.$product->supplier->image.'')); ?>" alt="" style=""></a></i>
<?php endif; ?>
</div>
<div class="col-md-6 nopad padleft15 ">
<ul>
<li>
<strong><?php echo e(translate('Company Name')); ?> </strong>
<?php if(isset($product->supplier->user->username)): ?>
<em><a class="product-a" href="<?php echo e(route('supplier.view', $product->supplier->user->username)); ?>" title="<?php echo e($product->supplier->name); ?>"> <?php echo e($product->supplier->name); ?></a></em>
<?php endif; ?>
</li>
<li>
<strong><?php echo e(translate('Membership:')); ?></strong>
<?php if(isset($product->supplier->user->package->slug)): ?>
<a href="<?php echo e(route('packages')); ?>" title="Join Now"><img src="<?php echo e(asset('storage/images/admin/package/'.$product->supplier->user->package->image)); ?>" class="emtag-sm lazy" alt="Free" style=""></a>
<?php endif; ?>
</li>
<li><strong>Business Type:</strong> <?php echo e(isset($product->supplier->type)?$product->supplier->type:''); ?></li>
</ul>
</div>
<div class="col-md-5 nopad">
<ul>
<?php if(isset($product->supplier->user)): ?>
<li><strong><?php echo e(translate('Location')); ?> </strong><?php echo e($product->supplier->user->country->nicename); ?></li>
<li><strong><?php echo e(translate('Employees Total')); ?> </strong> <?php echo e($product->supplier->employee); ?></li>
<li><strong><?php echo e(translate('Annual Revenue')); ?> </strong> <?php echo e($product->supplier->revenue); ?></li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
<?php if(!empty($product->video)): ?>
<div class="prod-supplier-box mob-prod brd-white-pad">
<div class="row">
<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0"width="890" height="500" type="text/html" src="https://www.youtube.com/embed/<?php echo e(youtubeid($product->video)); ?>?autoplay=0&fs=1&iv_load_policy=3&showinfo=0&rel=0&cc_load_policy=0&start=0&end=0&origin=https://ayaantec.com"><div><small><a href="https://ayaantec.com"><?php echo e(translate('Ayaan Tech Limited')); ?></a></small></div><div><small><a href="https://ayaantec.com"><?php echo e(translate('Ayaan Tech Limited')); ?></a></small></div></iframe>
</div>
</div>
<?php endif; ?>
<div class="prod-supplier-box mob-prod brd-white-pad">
<h2><?php echo e(translate('Product Description.')); ?></h2>
<div class="row">
<?php echo $product->details; ?>
</div>
</div>
</div>
<?php if(!Auth::user()): ?>
<div class="col-md-3 ">
<section class="quote-now d-md-none d-lg-block d-xl-block pt-4 mt-3">
<?php echo $__env->make('frontend.utils.tellus', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</section>
</div>
<?php else: ?>
<div class="side-nav-dark my_own_custom_style col-md-3 d-none d-lg-block" style="height: 500px;">
<ul class="side-ul">
<li><a href="<?php echo e(route('user.dashboard')); ?>" title="Dashboard">Dashboard</a></li>
<li><a href="<?php echo e(route('user.profile.view')); ?>" title="My Profile">My Profile</a></li>
<li><a href="<?php echo e(route('user.inbox')); ?>" title="Messages">Messages</a></li>
<li><a href="<?php echo e(route('user.products')); ?>" title="Products">Products</a></li>
<li><a href="<?php echo e(route('user.setting')); ?>" title="Company Profile">Company Profile</a></li>
<li><a href="<?php echo e(route('packages')); ?>" title="Premium Services">Premium Services</a>
</li>
<li><a href="<?php echo e(route('logout')); ?>" title="Post RFQ">Logout</a></li>
</ul>
</div>
<?php endif; ?>
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/shareon@2/dist/shareon.iife.js" defer init ></script>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script>
var buttonPlus = $(".qty-btn-plus");
var buttonMinus = $(".qty-btn-minus");
var incrementPlus = buttonPlus.click(function() {
var $n = $(this)
.parent(".qty-container")
.find(".input-qty");
$n.val(Number($n.val())+1 );
const input = document.getElementById('inputValue').value;
const price = document.getElementById('price').innerHTML;
const dprice = document.getElementById('dprice').innerHTML;
const subTotal = document.getElementById('subTotal');
const discount = document.getElementById('discount');
const total = document.getElementById('total');
var subtotaltotal = input*price;
const totalDis = (dprice/100)*subtotaltotal;
const totalprice = subtotaltotal - totalDis;
subTotal.innerHTML = subtotaltotal;
discount.innerHTML = totalDis;
total.innerHTML = totalprice;
});
var incrementMinus = buttonMinus.click(function() {
var $n = $(this)
.parent(".qty-container")
.find(".input-qty");
var amount = Number($n.val());
if (amount > 1) {
$n.val(amount-1);
}
const input = document.getElementById('inputValue').value;
const price = document.getElementById('price').innerHTML;
const dprice = document.getElementById('dprice').innerHTML;
const subTotal = document.getElementById('subTotal');
const discount = document.getElementById('discount');
const total = document.getElementById('total');
var subtotaltotal = input*price;
const totalDis = (dprice/100)*subtotaltotal;
const totalprice = subtotaltotal - totalDis;
subTotal.innerHTML = subtotaltotal;
discount.innerHTML = totalDis;
total.innerHTML = totalprice;
});
function priceFunction() {
const input = document.getElementById('inputValue').value;
const price = document.getElementById('price').innerHTML;
const dprice = document.getElementById('dprice').innerHTML;
const subTotal = document.getElementById('subTotal');
const discount = document.getElementById('discount');
const total = document.getElementById('total');
var subtotaltotal = input*price;
const totalDis = (dprice/100)*subtotaltotal;
const totalprice = subtotaltotal - totalDis;
subTotal.innerHTML = subtotaltotal;
discount.innerHTML = totalDis;
total.innerHTML = totalprice;
}
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/frontend/pages/single_product.blade.php ENDPATH**/ ?>