<?php  $this->load->view('master/common/header.php',$data);
$base_name = $data['base_name'];
?>

    <div class="content">
        
        <!-- Start Content-->
        <div class="container-fluid">
            
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $base_name;?></a></li>
                                <li class="breadcrumb-item active text-capitalize"><?= $page;?></li>
                            </ol>
                        </div>
                        <h4 class="page-title text-uppercase"><?= $page;?></h4>
                    </div>
                </div>
            </div>     
            <!-- end page title --> 

            <div class="row">
                <div class="col-md-10 col-sm-12 col-xl-6">
                    <div class="card-box">
                        <div class="row">
                            <div class="col-sm-4 col-8 mx-auto text-center">
                                <?php
                                if(file_exists('./uploads/website/customer/'.$customer['cust_image'])  && !empty($customer['cust_image'])){
                                ?>
                                <img src="<?=base_url('./uploads/website/customer/'.$customer['cust_image']);?>" class="img-fluid w-75" alt="<?=$customer['cust_name'];?>" title="<?=$customer['cust_name'];?>" />
                                <?php
                                } else{
                                ?>
                                <img src="<?=base_url('./uploads/website/customer/customer.png');?>" class="img-fluid w-75" alt="<?=$customer['cust_name'];?>" title="<?=$customer['cust_name'];?>" />
                                <?php
                                }
                                ?>
				            </div>
                            <div class="col-sm-8 pt-3">
                                <p class="mb-2">
                                    <b>Name: </b>
                                    <span><?=$customer['cust_name'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>Email Id: </b>
                                    <span><?=$customer['cust_email'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>Mobile No.: </b>
                                    <span><?=$customer['cust_phone'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>State: </b>
                                    <span><?=$customer['cust_state'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>City: </b>
                                    <span><?=$customer['cust_city'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>Address: </b>
                                    <span><?=$customer['cust_address'];?></span>
                                </p>
                                <p class="mb-2">
                                    <b>Registration Date: </b>
                                    <span><?=date('d-M-Y h:i:s A',strtotime($customer['cust_datetime']));?></span>
                                </p>
				            </div>
				            <div class="col-sm-12 text-center">
				                <a href="<?=base_url('master/customer');?>" class="btn btn-dark">Back</a>
				            </div>
					    </div>
					</div>
				</div>
				<!-- /.col-md-6 -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.container-fluid -->
	</div>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('master/common/footer.php'); ?>
