<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<main>
    <div class="row">
        <div class="col s6">
            <a data-activates="slide-out"
               class="button-collapse btn-floating btn waves-effect waves-light indigo "><i
                        class="material-icons">more_horiz</i></a>
        </div>

    </div>
</main>
<body>


<div class="row">
    <ul id="slide-out" class="side-nav">


        <div class="row">
            <div class="col s12">
                <div class="collection">
                    <a href="<?php echo base_url() ?>referee_inscription/<?php echo $competition->idCompeticion ?>"
                       class="collection-item indigo-text"><?php echo $text_lateral_nav['nav_lateral_competition_referee_inscription']; ?><i class="material-icons right">visibility</i></a>
                    <a href="<?php echo base_url() ?>competitor_inscription/<?php echo $competition->idCompeticion ?>"
                       class="collection-item  indigo-text"><?php echo $text_lateral_nav['nav_lateral_competition_competitor_inscription']; ?><i class="material-icons right">visibility</i></a>
                    <a href="<?php echo base_url() ?>viewcompetition/<?php echo $competition->idCompeticion ?>"
                       class="active collection-item indigo"> <?php echo $text_lateral_nav['nav_lateral_competition_combats']; ?></a>

                </div>
            </div>


        </div>
    </ul>
</div>

<div class="container">
    <div class="row">
        <table class="responsive-table">
            <thead>
                <th><?php echo $combat_text['combat_competition_name']?></th>
                <th><?php echo $combat_text['combat_date']?></th>
                <th><?php echo $combat_text['combat_community']?></th>
                <th><?php echo $combat_text['combat_province']?></th>
                <th><?php echo $combat_text['combat_sport_center']?></th>

            </thead>
            <tbody>
                <tr>
                    <td><?php echo $competition -> nombre?></td>
                    <td><?php echo $competition -> fecha?></td>
                    <td><?php echo $competition -> autonomia?></td>
                    <td><?php echo $competition -> provincia?></td>
                    <td><?php echo $competition -> pabellon?></td>

                </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="container ">
    <div class="row z-depth-1 center">
<!--        <span style="font-weight: bold"> --><?php //echo $combat_text['combat_list_female_combats']?><!--</span>-->
        <table class="responsive-table center">
            <tr>
                <?php

                foreach ($f_weights as $f_weight) { ?>
                <td class="center">
                    <a class=" btn-large btn-floating brown lighten-3 center tooltipped"
                       data-tooltip="<?php echo $combat_text['combat_view_combats'] .$f_weight -> descripcion. ' kg'?>"
                       href="<?php echo base_url() ?>competition/viewcombats/<?php echo $competition -> idCompeticion?>?idWeight=<?php echo $f_weight->idPeso?>">
                      <?php echo $f_weight->descripcion ?>
                    </a>
                </td>
                    <?php
                } ?>
            </tr>
            <tr>
                <?php

                foreach ($m_weights as $m_weight) { ?>
                    <td class="center">
                        <a class=" btn-large btn-floating indigo  center tooltipped"
                           data-tooltip="<?php echo $combat_text['combat_view_combats'] .$m_weight -> descripcion. ' kg'?>"
                           href="<?php echo base_url() ?>competition/viewcombats/<?php echo $competition -> idCompeticion?>?idWeight=<?php echo $m_weight->idPeso?>">
                            <?php echo $m_weight->descripcion ?>
                        </a>
                    </td>
                    <?php
                } ?>
            </tr>

        </table>
    </div>
</div>
<!--<div class="container">-->
<!--    <div class="row z-depth-1 center">-->
<!--        <span style="font-weight: bold"> --><?php //echo $combat_text['combat_list_male_combats']?><!--</span>-->
<!--        <table class="responsive-table center">-->
<!--            <tr>-->
<!--                --><?php
//
//                foreach ($m_weights as $m_weight) { ?>
<!--                    <td class="center">-->
<!--                        <a class=" btn-large btn-floating indigo  center tooltipped"-->
<!--                           data-tooltip="--><?php //echo $combat_text['combat_view_combats'] .$m_weight -> descripcion. ' kg'?><!--"-->
<!--                           href="--><?php //echo base_url() ?><!--competition/viewcombats/--><?php //echo $competition -> idCompeticion?><!--?idWeight=--><?php //echo $m_weight->idPeso?><!--">-->
<!--                           --><?php //echo $m_weight->descripcion ?>
<!--                        </a>-->
<!--                    </td>-->
<!--                    --><?php
//                } ?>
<!--            </tr>-->
<!---->
<!--        </table>-->
<!--    </div>-->
<!--</div>-->

