<?php
/**
 * Created by PhpStorm.
 * User: Pablo García Sanz
 * Date: 19/12/2017
 * Time: 13:55
 */

?>
<main>
    <div class="container">
        <div class="row">
            <table class=" bordered striped">
                <thead>
                <th><?php echo $timekeeper_text['timekeeper_init_competition_date']?></th>
                <th><?php echo $timekeeper_text['timekeeper_init_competition_name']?></th>
                <th><?php echo $timekeeper_text['timekeeper_init_competition_mat']?></th>
                <th> <?php echo $timekeeper_text['timekeeper_init_competition_show']?></th>
                </thead>
                <tbody>
                <?php foreach ($mats as $mat){?>
                    <tr>
                        <td><?php echo $mat -> fecha?></td>
                        <td><?php echo $mat -> nombre?></td>
                        <td><?php echo $mat -> numero?></td>
                        <td><form method="post" action="<?php echo base_url()?>timekeeper/mat/<?php echo $mat ->idTatami?>">
                                <button class="btn indigo"><?php echo $timekeeper_text['timekeeper_init_competition_btn']?></button>
                            </form>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
</main>
<body>




<?php

?>

</body>
