Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/storage/framework/views/ |
<?php $__env->startSection('title', 'Shop'); ?>
<?php $__env->startSection('main-content'); ?>
<?php if($popularSales->count()): ?>
<?php
$product_detail = $popularSales->first();
?>
<section>
<div class="container">
<div class="row">
<div class="col-sm-6 pt-4">
<h1 class="font-weight-bold"><?php echo e($product_detail->title); ?></h1>
<h6 class="mb-4 font-px-19 font-weight-normal" style="line-height: 34px;">
<?php echo $product_detail->summary; ?>
</h6>
<div class="mb-4">
<div class="ratings d-inline">
<ul class="rating d-inline-block">
<?php
$rate = ceil($product_detail->getReview->avg('rate'));
?>
<?php for($i = 1; $i <= 5; $i++): ?>
<?php if($rate >= $i): ?>
<li><i class="fa fa-star"></i></li>
<?php else: ?>
<li><i class="fa fa-star-o"></i></li>
<?php endif; ?>
<?php endfor; ?>
</ul>
</div>
<span class="ml-2">
<b><?php echo e($product_detail->getReview->count()); ?></b> Customer Reviews
</span>
</div>
<div class="mb-4">
<h4>
<?php if($product_detail->discount): ?>
<span
class="font-weight-bold text-egray"><s><?php echo e(config('shop.currency_symbol') . ' ' . number_format($product_detail->price, 2)); ?></s></span>
<span
class="ml-4 font-weight-normal text-e-primary"><?php echo e(config('shop.currency_symbol') . ' ' . number_format($product_detail->discounted_price, 2)); ?></span>
<?php else: ?>
<span
class="font-weight-bold text-e-primary"><?php echo e(config('shop.currency_symbol') . ' ' . number_format($product_detail->price, 2)); ?></span>
<?php endif; ?>
</h4>
</div>
<div class="mb-4">
<form class="row" action="<?php echo e(route('single-add-to-cart')); ?>" method="POST">
<?php echo csrf_field(); ?>
<div class="col quantity">
<div class="form-group input-material input-group">
<div class="button minus">
<button type="button" class="btn btn-success btn-sm shadow-sm btn-number"
disabled="disabled" data-type="minus" data-field="quant[1]">
<i class="ti-minus"></i>
</button>
</div>
<input type="hidden" name="slug" value="<?php echo e($product_detail->slug); ?>">
<input type="text" name="quant[1]" class="form-control font-weight-bold input-number"
data-min="1" data-max="1000" value="1" id="quantity"
style="max-width: 10%; text-align: center;">
<div class="button plus">
<button type="button" class="btn btn-success btn-sm shadow-sm btn-number"
data-type="plus" data-field="quant[1]">
<i class="ti-plus"></i>
</button>
</div>
</div>
<button type="submit" class="btn btn-lg btn-success"><span
class="ti-shopping-cart mr-2"></span> Add to cart</button>
<?php if(auth()->check()): ?>
<?php if(!$inWishProducts->where('id', $product_detail->id)->isEmpty()): ?>
<a href="<?php echo e(route('add-to-wishlist', $product_detail->slug)); ?>"
class="btn btn-success btn-lg min"><i class="ti-heart"></i></a>
<?php else: ?>
<button type="button" class="btn min ok btn-lg text-e-primary">
<i class="ti-heart"></i>
</button>
<?php endif; ?>
<?php else: ?>
<?php endif; ?>
</div>
<div class="add-to-cart mt-4">
</div>
</form>
</div>
</div>
<div class="col-sm-6">
<div class="flexslider-thumbnails">
<ul class="slides">
<?php
$photo = explode(',', $product_detail->photo);
?>
<?php $__currentLoopData = $photo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li data-thumb="<?php echo e($data); ?>" rel="adjustX:10, adjustY:">
<img class="lazyload" data-src="<?php echo e(Helper::imagePath($data)); ?>" alt="<?php echo e($data); ?>">
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
</div>
</div>
</div>
</section>
<?php endif; ?>
<div class="website-section position-relative">
<div
style="background: linear-gradient(186.41deg, rgba(3, 214, 117, 0) 10.84%, rgba(3, 214, 117, 0.667604) 94.15%, #03D675 118.98%);opacity: 0.16; position: absolute;left: 0; top: 0; width: 100%; height: 100%;">
</div>
<div class="container">
<?php if(isset($popularSales) && $popularSales->count()): ?>
<div class="row">
<div class="position-relative ml-3 mt-5 mb-3">
<h5 style="color:#FFCC4D;">Flash Sales <span class="pl-2 fire-svg"><?php echo svg_html('fire'); ?></span>
</h5>
<h2>Popular Sales</h2>
</div>
</div>
<div class="row">
<?php $__currentLoopData = $popularSales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popularSale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-xs-12 col-sm-6 col-md-3 mb-4">
<?php if (isset($component)) { $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductCard::class, ['product' => $popularSale,'showRating' => true] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('product-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\ProductCard::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5)): ?>
<?php $component = $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5; ?>
<?php unset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5); ?>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
<?php if(isset($apartments) && $apartments->count()): ?>
<div class="row">
<div class="position-relative ml-3 mt-5 mb-3">
<h5 style="color:#FFCC4D;">Hot Deals <span class="pl-2 fire-svg"><?php echo svg_html('fire'); ?></span>
</h5>
<h2>Apartments For Sales</h2>
</div>
</div>
<div class="row">
<?php $__currentLoopData = $apartments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $apartment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-xs-12 col-sm-6 col-md-4 mb-4">
<?php if (isset($component)) { $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductCard::class, ['product' => $apartment] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('product-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\ProductCard::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5)): ?>
<?php $component = $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5; ?>
<?php unset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5); ?>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if($hotProducts && $hotProducts->count()): ?>
<div class="website-section">
<div class="container">
<div class="row">
<div class=" position-relative ml-4">
<h5 style="color:#FFCC4D;">Flash Sales <span class="pl-2"
style="position: absolute;top: -2px;"><?php echo svg_html('fire'); ?></span></h5>
<h2>Hot Deals For You</h2>
</div>
</div>
<div class="row">
<?php $__currentLoopData = $hotProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hotProduct): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-xs-12 col-sm-6 col-md-3 mb-4">
<?php if (isset($component)) { $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\ProductCard::class, ['product' => $hotProduct,'showRating' => true] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('product-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(App\View\Components\ProductCard::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5)): ?>
<?php $component = $__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5; ?>
<?php unset($__componentOriginal5e109b4b7def75bd69cfe491f655f877e39a59a5); ?>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<?php endif; ?>
<?php echo $__env->make('frontend.partials.recently-viewed', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ecommerce/resources/views/frontend/new-index.blade.php ENDPATH**/ ?>