<div class="innerBanner container-fluid mb-5">
	<div class="row h-100 align-items-center">
		<div class="col-md-4 col-lg-6">
			<h2 class="whiteColor mb-0">Events</h2>
		</div>
		<div class="col-md-8 col-lg-6">
			<ul class="breadcrumb">
				<li><a href="<?php echo base_url(); ?>">Home</a></li>
				<li>Awards</li>
			</ul>
		</div>
	</div>
</div>

<div class="container-fluid">
	<div class="row">
		<div class="col-lg-8 order-lg-12 mb-5" id="innerData">
			<div class="row">
				<h1 class="col-12 mb-4"><span>Awards</span></h1>
				<div class="col-12">
        <?php if($awards !== "No Data"){ ?>
          <div class="row" id="awardWinners">
            <?php 
            $i = $j = 0;
            $length = sizeof($awards);

            if($length <= 6){
              $loop_limit_1 = $length;
            }else{
              $loop_limit_1 = 6;
            }
            for($i=0; $i < $loop_limit_1; $i++){ 
            ?>
            <div class="col-md-6 col-lg-4 mb-4">
							<div class="rounded border p-2">
								<img src="<?php echo base_url(); ?>public/images/award.jpg" class="img-fluid rounded" alt="award picture">
								<div class="row justify-content-between">
									<div class="col-8 pr-0">
										<h6 class="redColor"><?php echo $awards[$i]->title; ?></h6>
										<p class="mb-0"><?php echo $awards[$i]->year; ?></p>
									</div>
									<div class="col-4 text-right">
										<a href="<?php echo base_url().$awards[$i]->filepath; ?>" target="_blank"  class="downloadIcon fadeAnim rounded-circle"></a>
									</div>
								</div>
							</div>
						</div>
            <?php } ?>
            
            <?php 
            if($length > 6){ 
            ?>
            <div class="archiveData col-12">
							<div class="row">
            <?php  
            for($j=$i; $j < $length; $j++){ 
            ?>
						    <div class="col-md-6 col-lg-4 mb-4">
									<div class="rounded border p-2">
										<img src="<?php echo base_url(); ?>public/images/award.jpg" class="img-fluid rounded" alt="">
										<div class="row justify-content-between">
											<div class="col-8 pr-0">
												<h6 class="redColor"><?php echo $awards[$j]->title; ?></h6>
												<p class="mb-0"><?php echo $awards[$j]->year; ?></p>
											</div>
											<div class="col-4 text-right">
												<a href="<?php echo base_url().$awards[$j]->filepath; ?>" target="_blank" class="downloadIcon fadeAnim rounded-circle"></a>
											</div>
										</div>
									</div>
                </div>
            <?php } ?>
							</div>
            </div>
            <?php } ?>

            <?php 
            if($length > 5){ 
            ?>
						<div class="col-12 pt-4">
							<a href="#" class="archive grayGradientBg rounded mb-4">Archive  <i class="fa fa-angle-down rounded-circle" aria-hidden="true"></i></a>
            </div>
            <?php } ?>
					</div>
        <?php } ?>
				</div>
			</div>
		</div>
		<div class="col-lg-4 order-lg-1 mb-5">
			<div class="dataList">
				<div class="blackRect"></div>
				<ul>
					<ul>
						<li><a href="<?php echo base_url(); ?>exhibitions" class="fadeAnim">Exhibitions </a></li>
						<li><a href="<?php echo base_url(); ?>" class="fadeAnim">Seminar / Workshops </a></li>
						<li><a href="<?php echo base_url(); ?>trade-delegation" class="fadeAnim">Trade Delegation </a></li>
						<li><a href="<?php echo base_url(); ?>bsm-rbsm" class="fadeAnim">Buyer Seller Meet / Reverse Buyer Seller Meet </a></li>
						<li><a href="javascript:;" class="fadeAnim active">Awards </a></li>
					</ul>
				</ul>
			</div>
		</div>
	</div>
</div>
