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/resources/views/front/products/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/resources/views/front/products/product-list.blade.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">
        	{{-- First featured product --}}
        	@if(isset( $featuredCategories) && isset($featuredCategories[0]))
        		<div class="single-product">
        		    <div class="product">
        		        <div class="product-overlay-cat">
        		            @if($featuredCategories[0]->featured_category_template === 'font-white')
        		            <div class="cat-position cat-big-black-bg">
        		            @else
        		            <div class="cat-position cat-big-white-bg">
        		            @endif
        		                <h2 class="{{ $featuredCategories[0]->featured_category_template }}">{{ $featuredCategories[0]->name }}</h2>
        		                <a href="{{ url($featuredCategories[0]->slug) }}" class="btn btn-subscribe btn-lg">Shop Now</a>
        		            </div>
        		        </div>
        		        @if(!empty($featuredCategories[0]->cover))
        		        <img src="{{ asset('public/storage/' . $featuredCategories[0]->cover) }}" alt="" class="img-bordered img-responsive" />
        		        @else
        		        <img src="{{ asset('public/images/default.jpg') }}" alt="" class="img-bordered img-responsive" />
        		        @endif
        		    </div>
        		</div>
        	@endif
        </div>
        <div class="col-md-4 col-sm-6 col-xs-12 product-cat-small">
        	{{-- Second featured product --}}
        	@if( isset( $featuredCategories ) && isset( $featuredCategories[1] ) )
        	<div class="single-product">
                <div class="product">
                    <div class="product-overlay-cat">
                        @if($featuredCategories[1]->featured_category_template === 'font-white')
                        <div class="cat-position cat-small-black-bg">
                        @else
                        <div class="cat-position cat-small-white-bg">
                        @endif
                            <h2 class="{{ $featuredCategories[1]->featured_category_template }}">{{ $featuredCategories[1]->name }}</h2>
                            <a href="{{ url($featuredCategories[1]->slug) }}" class="btn btn-subscribe btn-lg">Shop Now</a>
                        </div>
                    </div>
                    @if(!empty($featuredCategories[1]->cover))
                    <img src="{{ asset('public/storage/' . $featuredCategories[1]->cover) }}" alt="" class="img-bordered img-responsive" />
                    @else
                	<img src="{{ asset('public/images/default.jpg') }}" alt="" class="img-bordered img-responsive" />
                    @endif
                </div>
            </div>
        	@endif
			{{-- Third featured product --}}
        	@if( isset( $featuredCategories ) && isset( $featuredCategories[2] ) )
        	<div class="single-product">
        	    <div class="product">
        	        <div class="product-overlay-cat">
        	            @if($featuredCategories[2]->featured_category_template === 'font-white')
                        <div class="cat-position cat-small-black-bg">
                        @else
                        <div class="cat-position cat-small-white-bg">
                        @endif
        	                <h2 class="{{ $featuredCategories[2]->featured_category_template }}">{{ $featuredCategories[2]->name }}</h2>
        	                <a href="{{ url($featuredCategories[2]->slug) }}" class="btn btn-subscribe btn-lg">Shop Now</a>
        	            </div>
        	        </div>
        	        @if(!empty($featuredCategories[2]->cover))
                    <img src="{{ asset('public/storage/' . $featuredCategories[2]->cover) }}" alt="" class="img-bordered img-responsive" />
                    @else
                	<img src="{{ asset('public/images/default.jpg') }}" alt="" class="img-bordered img-responsive" />
                    @endif
        	    </div>
        	</div>
        	@endif
        </div>
    </div>
	<div class="row">
	    @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>
	    @endif
	    <ul class="row text-center list-unstyled" id="list_popular_products" style="<?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? 'display: none;': '' ?>">
	        @foreach($products as $product)
	            <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">
	                                        @if($product->quantity > 0)
	                                        <li>
	                                            <form action="{{ route('cart.store') }}" class="form-inline" method="post">
	                                                {{ csrf_field() }}
	                                                <input type="hidden" name="quantity" value="1" />
	                                                <input type="hidden" name="product" value="{{ $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>
	                                        @else
	                                        <li>Out of Stock</li>
	                                        @endif
	                                        @php
                                        	$productCategory = $product->categories()->first();
                                        	$categorySlug = isset( $productCategory->slug ) ? $productCategory->slug : '';
	                                        @endphp
	                                        <li>
	                                        	<a class="btn btn-send font-white" href="{{ url(Str::slug($categorySlug) . '/' . Str::slug($product->slug)) }}">View Product</a>
	                                        </li>
	                                    </ul>
	                                </div>
	                            </div>
	                        </div>
	                        @if(isset($product->cover) && !empty($product->cover))
	                        <img src="{{ asset('public/storage/'.$product->cover) }}" alt="{{ $product->name }}" class="img-bordered img-responsive" />
	                        @else
	                        <img src="{{ asset('public/images/default.jpg') }}" alt="{{ $product->name }}" class="img-bordered img-responsive" />
	                        @endif
	                    </div>
	                    <div class="product-text">
	                        {{-- <h4><a href="{{ route('front.get.product', Str::slug($product->slug)) }}" title="{{ $product->name }}">{{ $product->name }}</a></h4> --}}
	                        <h4><a href="{{ url(Str::slug($categorySlug) . '/' . Str::slug($product->slug)) }}" title="{{ $product->name }}">{{ $product->name }}</a></h4>
	                        <p>
	                        	{{ config('cart.currency_symbol') }}
	                            @if(!is_null($product->attributes->where('default', 1)->first()))
	                                @if(!is_null($product->attributes->where('default', 1)->first()->sale_price))
										@php $vat = 0; $vatMsg = ''; @endphp
										@if( $vatDisplaySetting->vat_setting == 'included' )
											@php $vat = ( ( $product->attributes->where('default', 1)->first()->sale_price * $product->tax ) / 100 ) @endphp
											@php $vatMsg = 'incl vat'; @endphp
										@else
											@php $vatMsg = 'ex vat'; @endphp
										@endif
	                                    {{ number_format( ($product->attributes->where('default', 1)->first()->sale_price + $vat ), 2) }} <small>{{ $vatMsg }}</small>
	                                    <p class="text text-danger">Sale!</p>
	                                @else
										@php $vat = 0; $vatMsg = ''; @endphp
										@if( $vatDisplaySetting->vat_setting == 'included' )
											@php $vat = ( ( $product->attributes->where('default', 1)->first()->price * $product->tax ) / 100 ) @endphp
											@php $vatMsg = 'incl vat'; @endphp
										@else
											@php $vatMsg = 'ex vat'; @endphp
										@endif
	                                    {{ number_format( ($product->attributes->where('default', 1)->first()->price + $vat ), 2) }} <small>{{ $vatMsg }}</small>
	                                @endif
	                            @else
	                            	@php $vat = 0; $vatMsg = ''; @endphp
	                            	@if( $vatDisplaySetting->vat_setting == 'included' )
	                            		@php $vat = ( ( $product->price * $product->tax ) / 100 ) @endphp
	                            		@php $vatMsg = 'incl vat'; @endphp
	                            	@else
										@php $vatMsg = 'ex vat'; @endphp
	                            	@endif
	                                {{ number_format($product->price + $vat, 2) }} <small>{{ $vatMsg }}</small>
	                            @endif
	                        </p>
	                    </div>
	                    <div class="modal fade" id="myModal_{{ $product->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	                        <div class="modal-dialog" role="document">
	                            <div class="modal-content">
	                                @include('layouts.front.product')
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </li>
	   @endforeach
	   @if($products instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator)
	   <li>
	   <div class="row pagination-prods">
	       <div class="col-md-12">
	           <div class="text-center">{{ $products->links() }}</div>
	       </div>
	   </div>
	   </li>
	   @endif
	   </ul>
	    <ul class="row text-center list-unstyled" id="list_bestseller_products" style="<?php echo ( isset( $selectedTab ) && ( $selectedTab == 'best_seller_products' ) ) ? '': 'display: none;' ?>">
	    	@if( isset( $bestSellerProducts ) )
		        @foreach($bestSellerProducts as $product)
		            <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">
		                                        @if($product->quantity > 0)
		                                        <li>
		                                            <form action="{{ route('cart.store') }}" class="form-inline" method="post">
		                                                {{ csrf_field() }}
		                                                <input type="hidden" name="quantity" value="1" />
		                                                <input type="hidden" name="product" value="{{ $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>
		                                        @else
    	                                        <li>Out of Stock</li>
    	                                        @endif
    	                                        @php
                                            	$productCategory = $product->categories()->first();
                                            	$categorySlug = isset( $productCategory->slug ) ? $productCategory->slug : '';
    	                                        @endphp
    	                                        <li>
    	                                        	<a class="btn btn-send font-white" href="{{ url(Str::slug($categorySlug) . '/' . Str::slug($product->slug)) }}">View Product</a>
    	                                        </li>
		                                    </ul>
		                                </div>
		                            </div>
		                        </div>
		                        @if(isset($product->cover) && !empty($product->cover))
		                        <img src="{{ asset('public/storage/'.$product->cover) }}" alt="{{ $product->name }}" class="img-bordered img-responsive" />
		                        @else
		                        <img src="{{ asset('public/images/default.jpg') }}" alt="{{ $product->name }}" class="img-bordered img-responsive" />
		                        @endif
		                    </div>
		                    <div class="product-text">
		                        <h4><a href="{{ url(Str::slug($categorySlug) . '/' . Str::slug($product->slug)) }}" title="{{ $product->name }}">{{ $product->name }}</a></h4>
	                            <p>
	                        	{{ config('cart.currency_symbol') }}
	                            @if(!is_null($product->attributes->where('default', 1)->first()))
	                                @if(!is_null($product->attributes->where('default', 1)->first()->sale_price))
										@php $vat = 0; $vatMsg = ''; @endphp
										@if( $vatDisplaySetting->vat_setting == 'included' )
											@php $vat = ( ( $product->attributes->where('default', 1)->first()->sale_price * $product->tax ) / 100 ) @endphp
											@php $vatMsg = 'incl vat'; @endphp
										@else
											@php $vatMsg = 'ex vat'; @endphp
										@endif
	                                    {{ number_format( ($product->attributes->where('default', 1)->first()->sale_price + $vat ), 2) }} <small>{{ $vatMsg }}</small>
	                                    <p class="text text-danger">Sale!</p>
	                                @else
										@php $vat = 0; $vatMsg = ''; @endphp
										@if( $vatDisplaySetting->vat_setting == 'included' )
											@php $vat = ( ( $product->attributes->where('default', 1)->first()->price * $product->tax ) / 100 ) @endphp
											@php $vatMsg = 'incl vat'; @endphp
										@else
											@php $vatMsg = 'ex vat'; @endphp
										@endif
	                                    {{ number_format( ($product->attributes->where('default', 1)->first()->price + $vat ), 2) }} <small>{{ $vatMsg }}</small>
	                                @endif
	                            @else
	                            	@php $vat = 0; $vatMsg = ''; @endphp
	                            	@if( $vatDisplaySetting->vat_setting == 'included' )
	                            		@php $vat = ( ( $product->price * $product->tax ) / 100 ) @endphp
	                            		@php $vatMsg = 'incl vat'; @endphp
	                            	@else
										@php $vatMsg = 'ex vat'; @endphp
	                            	@endif
	                                {{ number_format($product->price + $vat, 2) }} <small>{{ $vatMsg }}</small>
	                            @endif
	                        </p>
		                    </div>
		                </div>
		            </li>
		        @endforeach
		    @endif
		    @if(isset($bestSellerProducts) && $bestSellerProducts instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator)
		    <li>
		    <div class="row pagination-prods">
		        <div class="col-md-12">
		            <div class="text-center">{{ $bestSellerProducts->links() }}</div>
		        </div>
		    </div>
		    </li>
		    @endif
	    </ul>
	</div>
@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>
@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>

Spamworldpro Mini