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

$exp = explode('/',$_SERVER['REQUEST_URI']);
$page_url = end($exp);
if($page_url=='')
{
  header('location:'.$baseurl);
}

$class_details = $manage_website->self_query("select * from tbl_service where  url='".$page_url."' && status=1");

?>

        <!-- Page Header End -->
        <div class="container-xxl py-5 page-header position-relative mb-5">
            <div class="container py-5">
                <h1 class="display-2 text-white animated slideInDown mb-4"> <?=$class_details[0]['title']?></h1>
                <nav aria-label="breadcrumb animated slideInDown">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?=$baseurl?>">Home</a></li>
                        <li class="breadcrumb-item"><a href="#">Pages</a></li>
                        <li class="breadcrumb-item text-white active" aria-current="page">Classes</li>
                    </ol>
                </nav>
            </div>
        </div>
        <!-- Page Header End -->
        
        <div class="container">
            
            <div class="row">
                <div class="col-md-4">
                   <img src="<?=$baseurl?>/images/main_img/<?=$class_details[0]['image']?>" style="width:350px;height:350px;">
                </div>
                
                <div class="col-md-8">
                  <?php 
                if($class_details[0]['age']!=='')  
                  {
                  ?>
                    <table class="table">
                      <tr>
                            <th>Class</th>
                         <th>Age</th>
                          <th>Time</th>
                          <th>Capacity</th>
                      </tr>
                      <tr>
                          <td><?=$class_details[0]['title']?></td>
                           <td><?=$class_details[0]['age']?></td>
                            <td><?=$class_details[0]['time']?></td>
                            <td><?=$class_details[0]['capacity']?></td>
                      </tr>
                    </table>
                    <?php 
                  }
                  
                  else {
                      
                      ?>
                      <h3><?=$class_details[0]['title']?></h3>
                      
                      <?php
                  }
                    ?>
                   <?=$class_details[0]['description']?>
                </div>
            </div>
            
            
        </div>
        
 
    
    
<?php 
include 'inc/footer.php';
?>