HOME


sh-3ll 1.0
DIR:/home/medisavehealth/public_html/application/views/pages/
Upload File :
Current File : /home/medisavehealth/public_html/application/views/pages/single_product.php
<!-- 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><?=$br_title?></h3>
					<p><a href="<?=base_url()?>">Home /</a> <?=$br_sub_title?></p>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- bradcam_area_end  -->
<!--product-->
<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/products/$product->picture") ?>"  alt="">
					</div>
					<div class="blog_details">
						<h2><?=$product->product_name?>
						</h2>
						<div class="">
							<div class="quotation d-flex justify-content-center">
								<button class="button button-contactForm boxed-btn" data-toggle="modal" data-target="#quotation_modal">Get Price Quotation</button>
							</div>
							<div class="text-center">
								<span><strong>OR</strong></span>
							</div>
							<div class="quotation d-flex justify-content-center">
								<h5 class="modal-title">Call: (+880)255-123494</h5>
							</div>
						</div>
						<!-- Modal -->
						<div class="modal fade" id="quotation_modal" tabindex="-1" role="dialog" aria-labelledby="modelTitleId" aria-hidden="true">
							<div class="modal-dialog" role="document">
								<div class="modal-content modal-xl">
									<div class="modal-header">
										<h5 class="modal-title">Send Quotation Inquiry</h5>
										<button type="button" class="close" data-dismiss="modal" aria-label="Close">
											<span aria-hidden="true">&times;</span>
										</button>
									</div>
									<div class="modal-body">
										<div class="quotatin-form">
											<form id="product_quotation">
												<input type="hidden" name="product_id" id="product_id" class="form-control" value="<?= $product->product_id ?>" readonly>
												<input type="hidden" name="sub_cat_id" id="sub_cat_id" class="form-control" value="<?= $product->sub_category_id ?>" readonly>

												<div class="form-group">
													<label for="product_name">Product Name</label>
													<input type="text" name="product_name" id="product_name" class="form-control" value="<?= $product->product_name ?>" readonly>
												</div>
												<div class="form-group">
													<label for="product_quantity">Product Quantity</label>
													<input type="text" name="product_quantity" id="product_quantity" class="form-control" placeholder="Please input  product quntity">
												</div>
												<div class="form-group">
													<label for="user_name">Your Name</label>
													<input type="text" name="user_name" id="user_name" class="form-control" placeholder="Please input your name" required>
												</div>
												<div class="form-group">
													<label for="user_phone_number">Your Contact Number</label>
													<input type="text" name="user_phone_number" id="user_phone_number" class="form-control" placeholder="Please input your phone number: 01----" required>
												</div>
												<div class="form-group">
													<label for="user_email">Your Contact Email</label>
													<input type="email" name="user_email" id="user_email" class="form-control" placeholder="Please input your email-">
												</div>
												<div class="form-group">
													<label for="user_address">Your Contact Address</label>
													<input type="text" name="user_address" id="user_address" class="form-control" placeholder="Please input your address-">
												</div>
												<div class="form-group">
													<label for="quotation_message">Message</label>
													<textarea class="form-control" name="quotation_message" id="quotation_message" rows="3"></textarea>
												</div>
												<?php
												$csrf = array(
														'name' => $this->security->get_csrf_token_name(),
														'hash' => $this->security->get_csrf_hash()
												);
												?>
												<input type="hidden" name="<?= $csrf['name']; ?>" id="token_key" value="<?= $csrf['hash']; ?>" class="form-control login_style" readonly>
												<div class="text-center">
													<button type="submit" class="btn btn-danger btn-md submit_button">Send Inquiry</button>
													<button type="button" class="btn btn-secondary btn-md" data-dismiss="modal">Cancel</button>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>
						</div>
						<ul class="blog-info-link mt-3 mb-4">
							<li><a href="#"><i class="fa fa-table"></i> Model: <?php echo $product->product_model ?></a></li>
							<li><a href="#"><i class="fa fa-briefcase"></i> Brand: <?php echo $product->brand_name ?></a></li>
						</ul>
						<?=$product->description?>

					</div>
				</div>
			</div>
			<div class="col-lg-4">
				<div class="blog_right_sidebar">
					<aside class="single_sidebar_widget search_widget">
						<form action="<?=base_url('product')?>" method="post">
							<div class="form-group">
								<div class="input-group mb-3">
									<input type="text" class="form-control" name="search_keyword" placeholder='Search Keyword'
										   onfocus="this.placeholder = ''" onblur="this.placeholder = 'Search Keyword'" value="<?php if(!empty($_POST)){echo $_POST['search_keyword'];}?>">
									<div class="input-group-append">
										<button class="btn" type="button"><i class="ti-search"></i></button>
									</div>
								</div>
							</div>
							<?php
							$csrf = array(
									'name' => $this->security->get_csrf_token_name(),
									'hash' => $this->security->get_csrf_hash()
							);
							?>
							<input type="hidden" name="<?= $csrf['name']; ?>" id="token_key" value="<?= $csrf['hash']; ?>" class="form-control login_style" readonly>

							<button class="button rounded-0 primary-bg text-white w-100 btn_1 boxed-btn"
									type="submit">Search</button>
						</form>
					</aside>
					<aside class="single_sidebar_widget popular_post_widget">
						<h3 class="widget_title">Related Product</h3>
						<?php
							foreach ($related_product as $data){
								?>
								<div class="media post_item">
									<img src="<?=base_url()?>assets/img/products/<?=$data['picture']?>" alt="post">
									<div class="media-body">
										<a href="<?=base_url('product/'.$data['sub_url'].'/'.$data['url'])?>">
											<h3><?=$data['product_name']?></h3>
										</a>
										<p><?=$data['product_model']?></p>
									</div>
								</div>
						<?php
							}
						?>
					</aside>
					<aside class="single_sidebar_widget tag_cloud_widget">
						<h4 class="widget_title">Product Tag</h4>
						<ul class="list">
							<?php
							$tag=explode(',',$product->tag);
							if(sizeof($tag)>0){
								foreach ($tag as $data){
									?>
									<li>
										<a href="javascript:void(0)"><?=$data?></a>
									</li>
									<?php
								}
							}else{
								?>
								<li>
									<a href="javascript:void(0)">No Tag Found</a>
								</li>
								<?php
							}

							?>
						</ul>
					</aside>
					<aside class="single_sidebar_widget post_category_widget">
						<h4 class="widget_title">Category</h4>
						<ul class="list cat-list">
							<?php
							$i=1;
							foreach ($p_category as $data){
								?>
								<li>
									<form id="form<?=$i;?>" action="<?=base_url('product')?>" method="post">
										<a href="javascript:" onclick="document.getElementById('form<?=$i;?>').submit();"><p><?=$data['category_name']?> (<?=$data['total']?>)</p></a>
										<input type="hidden" name="search_keyword" value="<?=$data['category_name']?>"/>
										<?php
										$csrf = array(
												'name' => $this->security->get_csrf_token_name(),
												'hash' => $this->security->get_csrf_hash()
										);
										?>
										<input type="hidden" name="<?= $csrf['name']; ?>" id="token_key" value="<?= $csrf['hash']; ?>" class="form-control login_style" readonly>

									</form>
								</li>
								<?php
								$i++;
							}
							?>
						</ul>
					</aside>

				</div>
			</div>
		</div>
	</div>
</section>
<!--================ Product Area end =================-->