    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-3 mt-3">
                <div class="col-sm-6">
                    <h1 class="m-0 text-dark">Sports
                    </h1>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
                                        <a class="btn btn-success" class="float:right;" href="<?php echo base_url().'dashboard/addsport' ?>">Add Sports</a>
                                        <br><br>
            <table class="table table-bordered" cellspacing="0">
                <thead class="thead-dark">
                    <tr>
                        <th>No</th>
                        <th>Title</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                        
                        if (!empty($sports)) {



                            $count = 0;
                            foreach ($sports as $id => $sport) {
                            
                        ?>
                    <tr>


                        <td style="width: 10%"> <?php echo ++$count; ?></td>
                        <td style="width: 60%"><?php echo output($sport['title']); ?></td>

                        <td style="width: 30%">
                          <a class="btn btn-info btn-block mt-2" href="<?php echo base_url().'dashboard/editsports/'.$id ;?>">Edit</a>
                            <a class="btn btn-danger btn-block mt-2" href="<?php echo base_url().'dashboard/deletesports/'.$id ;?>">Delete</a>
                            <a class="btn btn-info btn-block mt-2" href="<?php echo base_url().'dashboard/sportsdetails/'.$id.'/'.$sport['title'] ;?>">Details</a>

                            <a class="btn btn-secondary btn-block mt-2 d-none" href="<?php echo base_url().'dashboard/addteam/'.$id.'/'.$sport['title'] ;?>">Add Team</a>
                        </td>
                    </tr>
                    <?php }
                        }


                         ?>
                </tbody>
            </table>
        </div>

    </section>
    <!-- /.content -->