

<?php $__env->startSection("content"); ?>


<!-- Start Page Title Area -->
        <div class="page-title">
            <div class="d-table">
                <div class="d-table-cell">
                    <div class="container">
                        <div class="row">
                            <div class="col-lg-6 col-md-6">
                                <div class="page-title-text">
                                    <h3><?php echo trans('products.title'); ?></h3>
                                </div>
                            </div>
                            
                            <div class="col-lg-6 col-md-6">
                                <ul>
                                    <li><a href="<?php echo URL::to('front'); ?>"><i class="fa fa-home"></i> <?php echo trans("home.header_btn"); ?></a></li>
                                    <li><i class="fa fa-angle-right"></i></li>
                                    <li class="active"><?php echo trans('products.title'); ?></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- End Page Title Area -->
<!-- Start Mountain Bike Area -->
       <section class="bike-area ptb-80">
           <div class="container container-fluid">
               <div class="row">
                  
                   <div class="col-lg-4 col-md-5" style="height: fit-content;">
                    <div class="side-bar">
                      <div class="logo">
                          <!--img src="http://lorempixel.com/output/people-q-g-64-64-1.jpg" class="img-responsive center-block" alt="Logo"-->
                      </div>
                      <br>
                      <div class="left-navigation">
                          <ul class="list">
                              <h4><strong style="color:white;"><?php echo trans("products.category_product_title"); ?></strong></h4>
                                <?php if($langset == 'en'): ?>
                                    <?php foreach($categories as $category): ?>
                                    <li><a class='sidebar-a' href="<?php echo URL::to('front/products/'.$category->id); ?>"><i class="fa fa-angle-double-right"></i>  <?php echo $category->name; ?></a></li>
                                    <?php endforeach; ?>
                                <?php else: ?>
                                    <?php foreach($categories as $category): ?>
                                    <li><a class='sidebar-a'  href="<?php echo URL::to('front/products/'.$category->id); ?>"><i class="fa fa-angle-double-right"></i>  <?php echo $category->name_tw; ?></a></li>
                                    <?php endforeach; ?>                       
                                <?php endif; ?>
				    <li></li>
				    <li></li>
                          </ul>
                      </div>
                    </div>


<?php /* 
                       <div class="side-bar mt-0">
                           <h2 class="title"><?php echo trans("products.category_product_title"); ?></h2>
                    
                           <div class="border"></div>
                           
                           <div class="categories-2">
                               <ul>
                                <?php if($langset == 'en'): ?>
                                    <?php foreach($categories as $category): ?>
                                    <li><a href="<?php echo URL::to('front/products/'.$category->id); ?>" style="color: #033E96;font-size:19px;"><i class="fa fa-angle-double-right"></i>  <?php echo $category->name; ?></a></li>
                                    <?php endforeach; ?>
                                <?php else: ?>
                                    <?php foreach($categories as $category): ?>
                                    <li><a href="<?php echo URL::to('front/products/'.$category->id); ?>" style="color: #033E96;font-size:19px;"><i class="fa fa-angle-double-right"></i>  <?php echo $category->name_tw; ?></a></li>
                                    <?php endforeach; ?>                       
                                <?php endif; ?>
                                </ul>
                           </div>
                           
                           <div class="border"></div>
                       </div>
*/ ?>

                   </div>
                   
                   <div class="col-lg-8 col-md-7">

                    <?php $count=1; ?>
                    <?php foreach($products as $product): ?>
                        <!--如果沒有圖片的話-->
                        <?php if(isset($productimgs[$product->id])): ?>
                        <?php if($count %2 == 1): ?>             
                       <div class="row">
                        <?php endif; ?>
                            <div class="col-lg-6 col-md-12">
                               <div class="single-product">
                                    <div class="product-image">
                                        <?php if(!empty($productimgs)): ?>
                                            <?php echo HTML::image($productimgs[$product->id][0],"",['class'=>'image', 'id'=>'priview_slide_img', 'style'=>'height: -webkit-fill-available']); ?>

                                        <!--img src="<?php echo asset('images/imgs/Home/Bike_1.png'); ?>" alt="bike"-->
                                        <?php else: ?>
                                            <img src="<?php echo asset('images/imgs/Product/product2.jpg'); ?>" alt="GENGHUNG">
                                        <?php endif; ?>
                                        <div class="hover-box">
                                            <button type="button" class="detail-btn detail-btn-primary" data-toggle="modal" data-target="#exampleModalCenter"><a class="detail-link" href="<?php echo URL::to('front/productdetail/'.$product->id); ?>"><?php echo trans('products.detail_btn'); ?></a></button>
                                        </div>
                                    </div>

                                    <div class="product-content">
                                        <?php if(Session::get('set_lang')=='en'): ?>
                                        <h3 style="padding:0px;"><a href="<?php echo URL::to('front/productdetail/'.$product->id); ?>"><?php echo $product->title_en; ?></a></h3>
                                        <?php else: ?>
                                        <h3 style="padding:0px;"><a href="<?php echo URL::to('front/productdetail/'.$product->id); ?>"><?php echo $product->title_tw; ?></a></h3>
                                        <?php endif; ?>
                                        <ul>
                                            <li><i class="fa fa-star"></i></li>
                                            <li><i class="fa fa-star"></i></li>
                                            <li><i class="fa fa-star"></i></li>
                                            <li><i class="fa fa-star"></i></li>
                                            <li><i class="fa fa-star"></i></li>
                                        </ul>
                                    </div>
				<?php if($product->sequence < 3): ?>
                                    <div class="discount">
                                        TOP<span> <?php echo $product->sequesce +1; ?></span>
                                    </div>
				<?php endif; ?>
                                </div>
                           </div>
                      <?php if($count %2 == 0): ?>
                       </div> <!-- End .row -->         
                      <?php endif; ?>
                    <?php $count++; ?>
                    <?php endif; ?> 
                        <!--end img count-->
                    <?php endforeach; ?>
                   </div>                                                                
               </div>
           </div>
       </section>
       <!-- End Mountain Bike Area -->


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.basic_front', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>