Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/storage/framework/views/65f9e85aba3d41eb07fb8fd826ab4c40.php
<?php if(!empty($products) && !collect($products)->isEmpty() && ($products->count() > 0)): ?>
    <div class="row cat-prods"> 
        <div class="col-md-8 col-sm-6 col-xs-12 product-cat-big">
        	
        	<?php if(isset( $featuredCategories) && isset($featuredCategories[0])): ?>
        		<div class="single-product">
        		    <div class="product">
        		        <div class="product-overlay-cat">
        		            <?php if($featuredCategories[0]->featured_category_template === 'font-white'): ?>
        		            <div class="cat-position cat-big-black-bg">
        		            <?php else: ?>
        		            <div class="cat-position cat-big-white-bg">
        		            <?php endif; ?>
        		                <h2 class="<?php echo e($featuredCategories[0]->featured_category_template); ?>"><?php echo e($featuredCategories[0]->name); ?></h2>
        		                <a href="<?php echo e(url($featuredCategories[0]->slug)); ?>" class="btn btn-subscribe btn-lg">Shop Now</a>
        		            </div>
        		        </div>
        		        <?php if(!empty($featuredCategories[0]->cover)): ?>
        		        <img src="<?php echo e(asset('public/storage/' . $featuredCategories[0]->cover)); ?>" alt="" class="img-bordered img-responsive" />
        		        <?php else: ?>
        		        <img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="" class="img-bordered img-responsive" />
        		        <?php endif; ?>
        		    </div>
        		</div>
        	<?php endif; ?>
        </div>
        <div class="col-md-4 col-sm-6 col-xs-12 product-cat-small">
        	
        	<?php if( isset( $featuredCategories ) && isset( $featuredCategories[1] ) ): ?>
        	<div class="single-product">
                <div class="product">
                    <div class="product-overlay-cat">
                        <?php if($featuredCategories[1]->featured_category_template === 'font-white'): ?>
                        <div class="cat-position cat-small-black-bg">
                        <?php else: ?>
                        <div class="cat-position cat-small-white-bg">
                        <?php endif; ?>
                            <h2 class="<?php echo e($featuredCategories[1]->featured_category_template); ?>"><?php echo e($featuredCategories[1]->name); ?></h2>
                            <a href="<?php echo e(url($featuredCategories[1]->slug)); ?>" class="btn btn-subscribe btn-lg">Shop Now</a>
                        </div>
                    </div>
                    <?php if(!empty($featuredCategories[1]->cover)): ?>
                    <img src="<?php echo e(asset('public/storage/' . $featuredCategories[1]->cover)); ?>" alt="" class="img-bordered img-responsive" />
                    <?php else: ?>
                	<img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="" class="img-bordered img-responsive" />
                    <?php endif; ?>
                </div>
            </div>
        	<?php endif; ?>
			
        	<?php if( isset( $featuredCategories ) && isset( $featuredCategories[2] ) ): ?>
        	<div class="single-product">
        	    <div class="product">
        	        <div class="product-overlay-cat">
        	            <?php if($featuredCategories[2]->featured_category_template === 'font-white'): ?>
                        <div class="cat-position cat-small-black-bg">
                        <?php else: ?>
                        <div class="cat-position cat-small-white-bg">
                        <?php endif; ?>
        	                <h2 class="<?php echo e($featuredCategories[2]->featured_category_template); ?>"><?php echo e($featuredCategories[2]->name); ?></h2>
        	                <a href="<?php echo e(url($featuredCategories[2]->slug)); ?>" class="btn btn-subscribe btn-lg">Shop Now</a>
        	            </div>
        	        </div>
        	        <?php if(!empty($featuredCategories[2]->cover)): ?>
                    <img src="<?php echo e(asset('public/storage/' . $featuredCategories[2]->cover)); ?>" alt="" class="img-bordered img-responsive" />
                    <?php else: ?>
                	<img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="" class="img-bordered img-responsive" />
                    <?php endif; ?>
        	    </div>
        	</div>
        	<?php endif; ?>
        </div>
    </div>
	<div class="row">
	    <?php if(!$search): ?>
	    <div class="col-md-12 text-center margin-bottom-30">
	        <ul class="nav nav-pills">
	            <li class="col-md-2 col-md-offset-4 <?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? '': 'active' ?>"><a href="javascript:void(0);" id="tab_popular_products">Popular</a></li>
	            <li class="col-md-2 <?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? 'active': '' ?>"><a href="javascript:void(0);" id="tab_bestseller_products">Best Sellers</a></li>
	        </ul>
	    </div>
	    <?php endif; ?>
	    <ul class="row text-center list-unstyled" id="list_popular_products" style="<?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? 'display: none;': '' ?>">
	        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	            <li class="col-md-3 col-sm-6 col-xs-12 product-list">
	                <div class="single-product">
	                    <div class="product other">
	                        <div class="product-overlay">
	                            <div class="vcenter">
	                                <div class="centrize">
	                                    <ul class="list-unstyled list-group">
	                                        <?php if($product->quantity > 0): ?>
	                                        <li>
	                                            <form action="<?php echo e(route('cart.store')); ?>" class="form-inline" method="post">
	                                                <?php echo e(csrf_field()); ?>

	                                                <input type="hidden" name="quantity" value="1" />
	                                                <input type="hidden" name="product" value="<?php echo e($product->id); ?>" />
	                                                <button id="add-to-cart-btn" type="submit" class="btn btn-send" data-toggle="modal" data-target="#cart-modal">Add to Cart</button>
	                                            </form>
	                                        </li>
	                                        <?php else: ?>
	                                        <li>Out of Stock</li>
	                                        <?php endif; ?>
	                                        <?php
                                        	$productCategory = $product->categories()->first();
                                        	$categorySlug = isset( $productCategory->slug ) ? $productCategory->slug : '';
	                                        ?>
	                                        <li>
	                                        	<a class="btn btn-send font-white" href="<?php echo e(url(Str::slug($categorySlug) . '/' . Str::slug($product->slug))); ?>">View Product</a>
	                                        </li>
	                                    </ul>
	                                </div>
	                            </div>
	                        </div>
	                        <?php if(isset($product->cover) && !empty($product->cover)): ?>
	                        <img src="<?php echo e(asset('public/storage/'.$product->cover)); ?>" alt="<?php echo e($product->name); ?>" class="img-bordered img-responsive" />
	                        <?php else: ?>
	                        <img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="<?php echo e($product->name); ?>" class="img-bordered img-responsive" />
	                        <?php endif; ?>
	                    </div>
	                    <div class="product-text">
	                        
	                        <h4><a href="<?php echo e(url(Str::slug($categorySlug) . '/' . Str::slug($product->slug))); ?>" title="<?php echo e($product->name); ?>"><?php echo e($product->name); ?></a></h4>
	                        <p>
	                        	<?php echo e(config('cart.currency_symbol')); ?>

	                            <?php if(!is_null($product->attributes->where('default', 1)->first())): ?>
	                                <?php if(!is_null($product->attributes->where('default', 1)->first()->sale_price)): ?>
										<?php $vat = 0; $vatMsg = ''; ?>
										<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
											<?php $vat = ( ( $product->attributes->where('default', 1)->first()->sale_price * $product->tax ) / 100 ) ?>
											<?php $vatMsg = 'incl vat'; ?>
										<?php else: ?>
											<?php $vatMsg = 'ex vat'; ?>
										<?php endif; ?>
	                                    <?php echo e(number_format( ($product->attributes->where('default', 1)->first()->sale_price + $vat ), 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                                    <p class="text text-danger">Sale!</p>
	                                <?php else: ?>
										<?php $vat = 0; $vatMsg = ''; ?>
										<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
											<?php $vat = ( ( $product->attributes->where('default', 1)->first()->price * $product->tax ) / 100 ) ?>
											<?php $vatMsg = 'incl vat'; ?>
										<?php else: ?>
											<?php $vatMsg = 'ex vat'; ?>
										<?php endif; ?>
	                                    <?php echo e(number_format( ($product->attributes->where('default', 1)->first()->price + $vat ), 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                                <?php endif; ?>
	                            <?php else: ?>
	                            	<?php $vat = 0; $vatMsg = ''; ?>
	                            	<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
	                            		<?php $vat = ( ( $product->price * $product->tax ) / 100 ) ?>
	                            		<?php $vatMsg = 'incl vat'; ?>
	                            	<?php else: ?>
										<?php $vatMsg = 'ex vat'; ?>
	                            	<?php endif; ?>
	                                <?php echo e(number_format($product->price + $vat, 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                            <?php endif; ?>
	                        </p>
	                    </div>
	                    <div class="modal fade" id="myModal_<?php echo e($product->id); ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	                        <div class="modal-dialog" role="document">
	                            <div class="modal-content">
	                                <?php echo $__env->make('layouts.front.product', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </li>
	   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
	   <?php if($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator): ?>
	   <li>
	   <div class="row pagination-prods">
	       <div class="col-md-12">
	           <div class="text-center"><?php echo e($products->links()); ?></div>
	       </div>
	   </div>
	   </li>
	   <?php endif; ?>
	   </ul>
	    <ul class="row text-center list-unstyled" id="list_bestseller_products" style="<?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? '': 'display: none;' ?>">
	    	<?php if( isset( $bestSellerProducts ) ): ?>
		        <?php $__currentLoopData = $bestSellerProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		            <li class="col-md-3 col-sm-6 col-xs-12 product-list">
		                <div class="single-product">
		                    <div class="product other">
		                        <div class="product-overlay">
		                            <div class="vcenter">
		                                <div class="centrize">
		                                    <ul class="list-unstyled list-group">
		                                        <?php if($product->quantity > 0): ?>
		                                        <li>
		                                            <form action="<?php echo e(route('cart.store')); ?>" class="form-inline" method="post">
		                                                <?php echo e(csrf_field()); ?>

		                                                <input type="hidden" name="quantity" value="1" />
		                                                <input type="hidden" name="product" value="<?php echo e($product->id); ?>" />
		                                                <button id="add-to-cart-btn" type="submit" class="btn btn-send" data-toggle="modal" data-target="#cart-modal">Add to Cart</button>
		                                            </form>
		                                        </li>
		                                        <?php else: ?>
    	                                        <li>Out of Stock</li>
    	                                        <?php endif; ?>
    	                                        <?php
                                            	$productCategory = $product->categories()->first();
                                            	$categorySlug = isset( $productCategory->slug ) ? $productCategory->slug : '';
    	                                        ?>
    	                                        <li>
    	                                        	<a class="btn btn-send font-white" href="<?php echo e(url(Str::slug($categorySlug) . '/' . Str::slug($product->slug))); ?>">View Product</a>
    	                                        </li>
		                                    </ul>
		                                </div>
		                            </div>
		                        </div>
		                        <?php if(isset($product->cover) && !empty($product->cover)): ?>
		                        <img src="<?php echo e(asset('public/storage/'.$product->cover)); ?>" alt="<?php echo e($product->name); ?>" class="img-bordered img-responsive" />
		                        <?php else: ?>
		                        <img src="<?php echo e(asset('public/images/default.jpg')); ?>" alt="<?php echo e($product->name); ?>" class="img-bordered img-responsive" />
		                        <?php endif; ?>
		                    </div>
		                    <div class="product-text">
		                        <h4><a href="<?php echo e(url(Str::slug($categorySlug) . '/' . Str::slug($product->slug))); ?>" title="<?php echo e($product->name); ?>"><?php echo e($product->name); ?></a></h4>
	                            <p>
	                        	<?php echo e(config('cart.currency_symbol')); ?>

	                            <?php if(!is_null($product->attributes->where('default', 1)->first())): ?>
	                                <?php if(!is_null($product->attributes->where('default', 1)->first()->sale_price)): ?>
										<?php $vat = 0; $vatMsg = ''; ?>
										<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
											<?php $vat = ( ( $product->attributes->where('default', 1)->first()->sale_price * $product->tax ) / 100 ) ?>
											<?php $vatMsg = 'incl vat'; ?>
										<?php else: ?>
											<?php $vatMsg = 'ex vat'; ?>
										<?php endif; ?>
	                                    <?php echo e(number_format( ($product->attributes->where('default', 1)->first()->sale_price + $vat ), 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                                    <p class="text text-danger">Sale!</p>
	                                <?php else: ?>
										<?php $vat = 0; $vatMsg = ''; ?>
										<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
											<?php $vat = ( ( $product->attributes->where('default', 1)->first()->price * $product->tax ) / 100 ) ?>
											<?php $vatMsg = 'incl vat'; ?>
										<?php else: ?>
											<?php $vatMsg = 'ex vat'; ?>
										<?php endif; ?>
	                                    <?php echo e(number_format( ($product->attributes->where('default', 1)->first()->price + $vat ), 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                                <?php endif; ?>
	                            <?php else: ?>
	                            	<?php $vat = 0; $vatMsg = ''; ?>
	                            	<?php if( $vatDisplaySetting->vat_setting == 'included' ): ?>
	                            		<?php $vat = ( ( $product->price * $product->tax ) / 100 ) ?>
	                            		<?php $vatMsg = 'incl vat'; ?>
	                            	<?php else: ?>
										<?php $vatMsg = 'ex vat'; ?>
	                            	<?php endif; ?>
	                                <?php echo e(number_format($product->price + $vat, 2)); ?> <small><?php echo e($vatMsg); ?></small>
	                            <?php endif; ?>
	                        </p>
		                    </div>
		                </div>
		            </li>
		        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		    <?php endif; ?>
		    <?php if(isset($bestSellerProducts) && $bestSellerProducts instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator): ?>
		    <li>
		    <div class="row pagination-prods">
		        <div class="col-md-12">
		            <div class="text-center"><?php echo e($bestSellerProducts->links()); ?></div>
		        </div>
		    </div>
		    </li>
		    <?php endif; ?>
	    </ul>
	</div>
<?php else: ?>
    <p class="alert alert-warning">We are currently updating our shop. Please come back later to see our products or call (01) 8412606 to see a list of these products before they go online.</p>
<?php endif; ?>
<script type="text/javascript">
$(document).ready(function () {
    $('#tab_popular_products').click(function(){
    	$('#tab_bestseller_products').closest('li').removeClass('active');
    	$(this).closest('li').addClass('active');
    	$('#list_bestseller_products').hide();
    	$('#list_popular_products').show();
    });
    $('#tab_bestseller_products').click(function(){
    	$('#tab_popular_products').closest('li').removeClass('active');
    	$(this).closest('li').addClass('active');
    	$('#list_popular_products').hide();
    	$('#list_bestseller_products').show();
    });
});
</script><?php /**PATH /home/corals/mcoil.corals.io/resources/views/front/products/product-list.blade.php ENDPATH**/ ?>

Spamworldpro Mini