<?php if(get_user_pricing_by_id($id,'portfolio')==1 && is_active($id,'portfolio')==1): ?>
	<?php if(!empty($portfolio)): ?>
		<?php $u_setting = get_user_settings($id); ?>
		<div class="row line " id="portfolio">
			<div class="col-md-9 left_line pt-50">
				<div class="heading ">
					<h4 class="mi-heading"><?= get_features_name('portfolio');?></h4>
				</div>
				<div class="row">
					<div class="gallery_area style_4 mb-80">
						<div class="gallery_top_menu">
							<ul class="gallery_sort portfolio_btn">
								<li><button  data-filter='*' class="active default-button"><?= !empty(lang('all'))?lang('all'):"all" ;?></button></li>
								<?php foreach ($portfolio_type as $key => $type): ?>
									<li><button  data-filter='.<?= html_escape($type['id']);?>' class="default-button"><?= html_escape($type['name']);?></button></li>
								<?php endforeach ?>
							</ul>
						</div>
						<div class="grid">
							<?php foreach ($portfolio as $key => $row): ?>
								<div class ="grid-item-2 <?= $row['type_id']?> portfolio_single_img">
									<div class="portfolio_img">
										<div class="port_img">
											<a data-fancybox="images" href="<?php echo base_url($row['image']); ?>">
												<img src="<?php echo base_url($row['thumb']); ?>" alt="" />
											</a>
										</div>
										<div class="portfolio_hover_area">
											<div class="portfolio_top_text">
												<?php if(!empty(html_escape($row['title']))): ?>
													<h5><?= html_escape($row['title']);?> 
													<?php if($u_setting['is_download']==1): ?>
														<a download href="<?= $row['image'];?>" class="fz-12"><i class="fa fa-download"></i></a>
													<?php endif ?>
												</h5> 
												<?php endif ?>
												<h6><?= get_portfolio_type_name(html_escape($row['type_id']));?></h6>
											</div>
											
											<a href="<?=!empty($row['link'])?html_escape($row['link']):'javascript:;'?>" class="portfolio_link"><i class="fa fa-plus-square-o"></i></a>
										</div>
									</div>
								</div>
							<?php endforeach; ?>
						</div>
					</div>
				</div>
			</div>	
		</div>
	<?php endif; ?>
<?php endif; ?>

<?php if(get_user_pricing_by_id($id,'teams')==1 && is_active($id,'teams')==1): ?>
	<?php if(!empty($team)): ?>
		<div class="row line " id="team">
			<div class="col-md-9 left_line pt-50">
				<div class="heading ">
					<h4 class="mi-heading"><?= get_features_name('teams'); ?></h4>
				</div>
				<div class="service_slider">
					<?php foreach ($team as $key=> $row): ?>
						<div class="single_team style_2">
							<div class="team_header">
								<img src="<?= base_url($row['images']);?>" alt="">
								<div class="team_details">
									<h5><?= html_escape($row['name']);?></h5>
									<p><?= html_escape($row['designation']);?></p>
								</div>
							</div>
						</div>
					<?php endforeach ?>
				</div>
			</div>	
		</div>
	<?php endif; ?>
<?php endif; ?>