<?php $__env->startSection('title'); ?>
    BETLOADED | Load Leagues
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    Leagues
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="col" style="min-height: 323px;;">
        <br>
        <?php
        $date = new dateTime();
        $d = $date->format('j F, Y');
        ?>

        <div class="row">
            <div class="col-xs-12" id="existingleagues">
                <table class="table table-striped" id="datatable">
                    <thead>
                    <tr>
                        <th>S/N</th>
                        <th>LEAGUE</th>
                        <th>SHORT CODE</th>
                        <th>DELETE</th>
                    </tr>
                    </thead>
                    <tbody>

                    <?php foreach($allleagues->all() as $league): ?>
                        <tr id="<?php echo e($league->id); ?>">
                            <td><?php echo e($league->id); ?></td>
                            <td><?php echo e($league->league); ?></td>
                            <td><?php echo e($league->code); ?></td>
                            <td><a href="<?php echo e($league->id); ?>" class="trashleague">Delete</a> </td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>