<div class="container-fluid">


    <div class="row column_title">
        <div class="col-md-12">
            <div class="page_title">
                <h2><?=$category?>, Add Team</h2>
            </div>
        </div>
    </div>
    <div class="card">

        <form id="addnewservice" role="form" action="<?=base_url()?>dashboard/saveteam" method="post" class="basicvalidation col-md-6">
            <div class="card-body">
                <input type="hidden" name="category" value="<?=$category?>" />
                <input type="hidden" name="sportsId" value="<?=$id?>" />
                <div class="form-group">
                    <label>Team Name</label>
                    <input type="text" class="form-control" required="true" id="team" name="team" placeholder="Enter Team Name">
                </div>

                <div id="password_submit" class="btn-block text-right mt-3">
                    <button type="submit" class="btn btn-primary">Add Team</button>
                </div>
            </div>
        </form>
    </div>

</div>
<section class="content mt-5">
    <div class="container-fluid">
        <div class="card-body">
            <h5 class="mb-3">TailGate Teams</h5>

            <table class="table table-bordered" cellspacing="0">
                <thead class="thead-dark">
                    <tr>
                        <th>No.</th>
                        <th>Team Name</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $count = 1;
                        foreach ($tailGateTeams as $tailGateTeam) {
                    ?>
                    <tr>
                        <td style="width: 10%"><?=$count?></td>
                        <td style="width: 90%"><?=$tailGateTeam['team']?></td>
                    </tr>
                    <?php $count++; } ?>
                </tbody>
            </table>
        </div>
</section>
<!-- /.container-fluid -->