<!-- bradcam_area_start  -->
<div class="bradcam_area breadcam_bg_2 bradcam_overlay">
	<div class="container">
		<div class="row">
			<div class="col-xl-12">
				<div class="bradcam_text">
					<h3>Portfolio</h3>
					<p><a href="<?=base_url()?>">Home /</a> Portfolio / <?php echo $portfolio->portfolio_title?></p>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- bradcam_area_end  -->
<?php
$data = $portfolio->content; //string

if (strlen($data) % 2 == 0) //if lenhth is odd number
	$length = strlen($data) / 2;
else
	$length = (strlen($data) + 1) / 2; //adjust length

for ($i = $length, $j = $length; $i > 0; $i--, $j++) //check towards forward and backward for non-alphabet
{
	if (!ctype_alpha($data[$i - 1])) //forward
	{
		$point = $i; //break point
		break;
	} else if (!ctype_alpha($data[$j - 1])) //backward
	{
		$point = $j; //break point
		break;
	}
}
$string1 = substr($data, 0, $point);
$string2 = substr($data, $point);
?>
<!--================Portfolio Area =================-->
<section class="blog_area single-post-area section-padding">
	<div class="container">
		<div class="row">
			<div class="col-lg-8 posts-list">
				<div class="single-post">
					<div class="feature-img">
						<img class="img-fluid" src="<?php echo base_url('assets/img/portfolio/'.$portfolio->picture)?>" alt="">
					</div>
					<div class="blog_details">
						<h2><?php echo $portfolio->portfolio_title?>
						</h2>
						<ul class="blog-info-link mt-3 mb-4">
							<li><a href="#"><i class="fa fa-clock-o"></i> <?php echo date('d F, Y',strtotime($portfolio->date))?></a></li>
							<li><a href="#"><i class="fa fa-building-o"></i> <?php echo $portfolio->company_name?></a></li>
							<li><a href="#"><i class="fa fa-map-marker"></i> <?php echo $portfolio->company_address?></a></li>
						</ul>
						<?=$string1?>
						<?=$string2?>

					</div>
				</div>
			</div>
			<div class="col-lg-4">
				<div class="blog_right_sidebar">
					<aside class="single_sidebar_widget popular_post_widget">
						<h3 class="widget_title">Other Portfolio</h3>
						<?php
						foreach ($other_portfolio as $data){
							?>
							<div class="media post_item">
								<img src="<?php echo base_url('assets/img/portfolio/'.$data['picture'])?>" class="img-fluid" alt="post">
								<div class="media-body">
									<a href="<?php echo base_url('portfolio/'.$data['url'])?>">
										<h3><?php echo $data['portfolio_title']?></h3>
									</a>
									<p><?php echo date('d F, Y',strtotime($data['date']))?></p>
								</div>
							</div>
							<?php
						}
						?>
					</aside>
				</div>
			</div>
		</div>
	</div>
</section>
<!--================ Portfolio Area end =================-->



