<?php
/**
 *Template Name: PTA Template
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.

 */
get_header();?>
				<div class="big-title">
					<div class="container">
						<h1 class="entry-title">PTA</h1>
						<div class="breadcrumb">
							<div class="container">
								<ul class="tm_bread_crumb">
									<li class="top"><a href="<?php echo home_url();?>">Home</a></li>
									<li class="sub tail current">PTA</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<div class="main">
					<div class="container">
						<div class="row">
							<!-- <div class="col-md-4 col-sm-12">
								<div class="sidebar">
									<div class="widget better-menu-widget">
										<div class="menu-our-services-container">
											<ul class="menu">
												<li class="current-menu-item"><a href="#management">Management</a></li>
												<li><a href="#pta">PTA</a></li>
												<li><a href="#staffs">Staffs</a></li>
												<li><a href="#incharge">Incharge</a></li>
												
											</ul>
										</div>
									</div>
								</div>
							</div> -->
							<div class="col-md-12 col-sm-12">
								
								<div class="wow slideInLeft animated" data-wow-delay="400ms">
								<div class="mb-3 projects_btn" style="text-align: center;margin-top: 50px;">
									
									<p><?php echo the_field('title'); ?></p>
								</div>
								<div class="row mb-3">
								<div class="col-md-6">
									<p>
									<?php echo the_field('content'); ?>					</p>
									</div>
								
									
										<div class="col-md-6">
									<img src="<?php echo the_field('image'); ?>" style="border-radius: 5px;">
								</div>

								
								</div>
								<div class="row">
								<div class="col-md-6 wow slideInLeft animated" data-wow-delay="400ms" >
		<div class="mb-3" style="font-size: 18px;font-weight: 500;background-color: #003164;color: #fff;text-align: center;border-radius: 5px;">
		

    <table style="width: 100%;" >

        <!-- Table head content -->
        <thead >
            <tr >
              <?php echo the_field('table_title'); ?>
            </tr>
        </thead>

        <!-- Table body content -->
        <tbody>
			<?php if( have_rows('table_left') ): ?>
                    <?php while( have_rows('table_left') ): the_row(); 
                    $name1 = get_sub_field('name1');
                   $date1 = get_sub_field('date1');
				   $name2 = get_sub_field('name2');
				   $date2 = get_sub_field('date2');
				   
                    ?>
            <tr>
    <td><b><b ><?php echo $name1;?></b></b> </td>
    <td ><?php echo $date1;?></td>
  </tr>
  <tr>
    <td><b><?php echo $name2;?></b> </td>
    <td><?php echo $date2;?></td>
  </tr>
  <?php endwhile;?>
                    <?php endif;?>
   
   
        </tbody>
    </table>

									
								</div>
	</div>
								
									
									<div class="col-md-6 wow slideInLeft animated" data-wow-delay="400ms">
		<div class="mb-3" style="font-size: 18px;font-weight: 500;background-color: #003164;color: #fff;text-align: center;border-radius: 5px;">
		

    <table style="width: 100%;">

        <!-- Table head content -->
        <thead >
            <tr >
               <?php echo the_field('table_title'); ?>
            </tr>
        </thead>

        <!-- Table body content -->
        <tbody >
           
  <?php if( have_rows('table_right') ): ?>
                    <?php while( have_rows('table_right') ): the_row(); 
                    $name1 = get_sub_field('name1');
                   $date1 = get_sub_field('date1');
				   $name2 = get_sub_field('name2');
				   $date2 = get_sub_field('date2');
				   
                    ?>
            <tr>
    <td><b><b ><?php echo $name1;?></b></b> </td>
    <td ><?php echo $date1;?></td>
  </tr>
  <tr>
    <td><b><?php echo $name2;?></b> </td>
    <td><?php echo $date2;?></td>
  </tr>
  <?php endwhile;?>
                    <?php endif;?>
        </tbody>
    </table>

									
								</div>
	</div>

								
								</div>
								</div>
								</div>
								</div>
								
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<?php get_footer();?>