<?php include 'include/header.php';

      
      $id = $this->uri->segment(4);
     
        $fetch = $this->admin_common_model->get_where('attractions',['id'=>$id]);
        
         if($fetch[0]['image']){
          $path = base_url("uploads/images/".$fetch[0]['image']);
        }else{

          $path = base_url("assets/images/banner/user_b.png");

           }
        $row = $fetch[0];
               
       
      
     
 ?>

    <body class="fixed-left">
        
        <!-- Begin page -->
        <div id="wrapper">
        
        <?php include 'include/side_menu.php';?>

      
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container">

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="pull-left page-title">Welcome</h4>
                                <ol class="breadcrumb pull-right">
  <li><a href="<?=base_url('admin/view_page/dashboard');?>"><?php $fetch_app_name = $this->admin_common_model->get_where('admin',['id'=>'1']);
                                echo $fetch_app_name[0]['app_name']; ?></a></li>     
                                <li><a href="<?=base_url('admin/view_page/attractions_list');?>">Attractions List</a></li>
                                    <li class="active">View Attractions</li>
                                </ol>
                            </div>
                        </div>

                        <!-- Start Widget -->
                
<div class="row">
                            <!-- Basic example -->
                            <div class="col-md-10">
                                <div class="panel panel-default">
                                    <div class="panel-heading"><h3 class="panel-title">VIEW Attractions</h3></div>
                                    <div class="panel-body">
                                        
       <?php    if($row['image1']){
          $path1 = base_url("uploads/images/".$row['image1']);
        }else{

          $path1 = base_url("assets/images/banner/user_b.png");

           } ?>
                                        
              <div class="row">
                <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path1;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image1'];?>" href="<?=$path1;?>" download="<?php echo $row['image1'];?>">Download</a>

                 </div>
                 
                  <?php    if($row['image2']){
          $path2 = base_url("uploads/images/".$row['image2']);
        }else{

          $path2 = base_url("assets/images/banner/user_b.png");

           } ?>
                     
                 
                     <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path2;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image2'];?>" href="<?=$path2;?>" download="<?php echo $row['image2'];?>">Download</a>

                 </div>
                 
                    <?php    if($row['image3']){
          $path3 = base_url("uploads/images/".$row['image3']);
        }else{

          $path3 = base_url("assets/images/banner/user_b.png");

           } ?>
                     
                 
                     <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path3;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image3'];?>" href="<?=$path3;?>" download="<?php echo $row['image3'];?>">Download</a>

                 </div>
                 
                 
                   <?php    if($row['image4']){
          $path4 = base_url("uploads/images/".$row['image4']);
        }else{

          $path4 = base_url("assets/images/banner/user_b.png");

           } ?>
                     
                     <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path4;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image4'];?>" href="<?=$path4;?>" download="<?php echo $row['image4'];?>">Download</a>

                 </div>
                 
                   <?php    if($row['image5']){
          $path5 = base_url("uploads/images/".$row['image5']);
        }else{

          $path5 = base_url("assets/images/banner/user_b.png");

           } ?>
           
                     <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path5;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image5'];?>" href="<?=$path5;?>" download="<?php echo $row['image5'];?>">Download</a>

                 </div>
                 
                 
                    <?php    if($row['image6']){
          $path6 = base_url("uploads/images/".$row['image6']);
        }else{

          $path6 = base_url("assets/images/banner/user_b.png");

           } ?>
           
                 
                     <div class="col-md-3 col-lg-3 " align="center"> 
                <img alt="User Pic" src="<?=$path6;?>" class="img-circle img-responsive">
                <a id="<?php echo $row['image6'];?>" href="<?=$path6;?>" download="<?php echo $row['image6'];?>">Download</a>

                 </div>
                 
           
                <div class=" col-md-9 col-lg-9 "> 
                  <table class="table table-user-information paddingt">
                    <tbody>

                      <tr>
                        <td><strong>Attraction Name:</strong></td>
                        <td><?=$row['name'];?></td>
                      </tr>
                      
                        <tr>
                        <td><strong>Title:</strong></td>
                        <td><?=$row['title'];?></td>
                      </tr>

                       <tr>
                        <td><strong> Address:</strong></td>
                        <td><?=$row['address'];?></td>
                      </tr>

                       <tr>
                        <td><strong>City:</strong></td>
                        <td><?=$row['City'];?></td>
                      </tr>


                       <tr>
                        <td><strong>Country:</strong></td>
                        <td><?=$row['country'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Timing:</strong></td>
                        <td><?=$row['timing'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Attraction Description:</strong></td>
                        <td><?=$row['description'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Additional Information:</strong></td>
                        <td><?=$row['additional_information'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Whats is included:</strong></td>
                        <td><?=$row['whats_included'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Whats is Not included:</strong></td>
                        <td><?=$row['whats_not_included'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Accessibility:</strong></td>
                        <td><?=$row['accessibility'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Health Safety:</strong></td>
                        <td><?=$row['health_safety'];?></td>
                      </tr>



                       <tr>
                        <td><strong>Restrictions:</strong></td>
                        <td><?=$row['restrictions'];?></td>
                      </tr>



                      
                     
                     <tr>
                        <td><strong>added Date:</strong></td>
                        <td><?=$row['date_time'];?></td>
                      </tr>
                     
                     
                    </tbody>
                  </table>
                  
                </div>
              </div>
        


                                    </div><!-- panel-body -->
                                </div> <!-- panel -->
                            </div> <!-- col-->
                            
                        
                           

                        </div> <!-- End row -->

                    </div> <!-- container -->
                               
                </div> <!-- content -->

             
            </div>
          
        </div>
        <!-- END wrapper -->


 <?php include 'include/footer.php';?>
