<?php

use App\Models\Category;
use App\Models\Deals;
use App\Models\DealTypes;
use App\Models\Vendor;




$dealtype = json_decode($deal_type->type);

?>




<?php $__env->startSection('nav_options'); ?>
                                    <div class="header-language d-none d-sm-block">
                                     
                                        <a href="/deals">
                                            <span class="text gold" style="text-transform: initial;">Deals</span>
                                        </a>
                                    </div>
                                    <div class="header-language d-none d-sm-block">
                                      
                                        <a href="/home/faq">
                                            <span class="text gold" style="text-transform: initial;">FAQ'S</span>
                                        </a>
                                    </div>
                                    
                                    <div class="header-language d-none d-sm-block">
                                       <a href="#">
                                             <img src="/assets/images/tiger/app_white.png" alt="" style="width:120px">
                                        </a>
                                    </div>
                                    
                                    <div class="header-language d-none d-sm-block">
                                        <a href="#">
                                              <img src="/assets/images/tiger/android_white.png" alt="" style="width:120px">
                                        </a>
                                    </div>

<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>


	<!-- Event Page Banner Start -->
	<div class="section overlay padbtm_36" style="padding-top:4em">
	    <div class="container">
	        <div class="col-12">
	           
	            <div class="banner_container overlay" style="border-radius:15px;">
	              
	              <img src="https://tigeradmin.testing.co.tz/<?php echo e($deal_type->featured_image); ?>" alt="<?php echo e($dealtype->en); ?>" style="width:100%;border-radius:15px;">
	            
	              
	              <div class="top-left">
	              	<h2 class="title bold_text font_48 white"><?php echo e($dealtype->en); ?></h2>
	              </div>
	        </div>
	    </div>
	</div>
	<!-- Event Page Banner End -->

	<!--Search-->
	<?php
	/*
	<div class="section mt-4 padbtm_36">
	    <div class="container">
	        <div class="row sidebar-widget">
	            <div class="col-4 sidebar-widget-content">
	                <div class="sidebar-widget-search">
	                    <form action="#">
	                        <input type="text" placeholder="Search...">
	                        <button><i class="fas fa-search"></i></button>
	                    </form>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
	*/
	?>


	<!-- Featured Section Start -->
	<div class="section mt-4 padbtm_36">
	    <div class="container">

	        <!-- Course Top Bar Start -->
	        <div class="row justify-content-between align-items-center max-mb-20">
	            <div class="col-12 max-mb-10">
	                <h3 class="font_24 bold_text white" style="display: inline;">Deals</h3>
	            </div>
	        </div>
	        <!-- Course Top Bar End -->

	        <!-- Deal Wrapper Start -->
	        <div class="row max-mb-30">

	        	<?php $__empty_1 = true; $__currentLoopData = $deals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
	        	<?php
	        	$vendor = Vendor::where('id',$deal->vendorid)->first();
	        	?>
	        	
	            <!-- Deal Start -->
	            <div class="col-lg-3 col-md-6 max-mb-30 mob_50w" data-aos="fade-up">
	                <div class="deal">
	                    <div class="thumbnail">
	                        <a href="/vendor/<?php echo e($vendor->id); ?>" class="image">
	                            <img src="https://tigeradmin.testing.co.tz/<?php echo e($deal->featured_image); ?>" class="vendor_image"  alt="<?php echo e($vendor->name); ?>">
	                        </a>
	                    </div>
	                    <div>
	                        <?php if(isset($deal->name)): ?>
	                        <?php
	                        $deal_name = json_decode($deal->name);
                            ?>
                            <p class="meta urban_bold gold mb-0"><?php echo e($deal_name->en); ?></p>
                            <?php endif; ?>
	                        <h3 class="title white font_18 mb-0"><a href=""><?php echo e($vendor->name); ?></a></h3>
	                        <p class="meta urban_light white"><?php echo e($vendor->address); ?></p>
	                    </div>
	                </div>
	            </div>
	            <!-- Deal End -->
	            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
	            <div class="col-lg-3 col-md-6 max-mb-30 mob_50w" data-aos="fade-up">
	                <div class="deal">
	                    <div>
	                        <h3 class="title white font_18 mt-4 mb-0"><a href="">No Deals Found :(</a></h3>
	                </div>
	            </div>
	            <?php endif; ?>

	        </div>
	        <!-- Courses Wrapper End -->


	    </div>
	</div>
	<!-- Featured Section End -->



<?php $__env->stopSection(); ?>
<?php echo $__env->make('mainlayout_landing', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sampleco/tiger.testing.co.tz/resources/views/web/viewall_db.blade.php ENDPATH**/ ?>