<div class="schedule_special_day_nav">
    
    <a href="<?php echo url('activities/' . $activity_slug . '/meet-schedules?date=' . $information['date_navigation']->previous_date); ?>" class="date_navigation_button" data-icon-primary="ui-icon-seek-first" <?php if(Helpers::strIsEmpty($information['date_navigation']->previous_date)): ?> data-disabled="disabled"<?php endif; ?>>Prev. Date</a>

    <a href="<?php echo url('activities/' . $activity_slug . '/meet-schedules?date=' . $information['date_navigation']->yesterday); ?>" class="date_navigation_button" data-icon-primary="ui-icon-seek-prev" <?php if(Helpers::strEqual($information['date_navigation']->yesterday, $information['date_navigation']->view_date)): ?> data-disabled="disabled"<?php endif; ?>>Yesterday</a>

    <a href="<?php echo url('activities/' . $activity_slug . '/meet-schedules?date=' . $information['date_navigation']->today); ?>" class="date_navigation_button" <?php if(Helpers::strEqual($information['date_navigation']->today, $information['date_navigation']->view_date)): ?> data-disabled="disabled"<?php endif; ?>>Today</a>

    <a href="<?php echo url('activities/' . $activity_slug . '/meet-schedules?date=' . $information['date_navigation']->tomorrow); ?>" class="date_navigation_button" data-icon-secondary="ui-icon-seek-next" <?php if(Helpers::strEqual($information['date_navigation']->tomorrow, $information['date_navigation']->view_date)): ?> data-disabled="disabled"<?php endif; ?>>Tomorrow</a>

    <a href="<?php echo url('activities/' . $activity_slug . '/meet-schedules?date=' . $information['date_navigation']->next_date); ?>" class="date_navigation_button" data-icon-secondary="ui-icon-seek-end" <?php if(Helpers::strIsEmpty($information['date_navigation']->next_date)): ?> data-disabled="disabled"<?php endif; ?>>Next Date</a>
</div>


<div class="tabs" style="width:100%; min-height:620px;">

    <ul style="padding-left:5px; font-size:10pt;">
        <?php foreach ($information['divisions'] as $div): ?>
            <?php
                if(count($information['schedules'][$div]) == 0) {
                    $myclass = "empty";
                } else {
                    $myclass = "";
                }
            ?>
            <li class="<?php echo $myclass; ?>"><a href="#tabs-<?php echo $div; ?>"><?php echo $div; ?></a></li>
        <?php endforeach; ?>   
    </ul>    

    <?php foreach ($information['schedules'] as $div => $schedule): ?>
        
        <div id="tabs-<?php echo $div; ?>" class="schedule_display" style="padding-left:.25em; padding-right:.25em; /*overflow-x: hidden; overflow-y:auto; height:552px;*/">            
            
            <?php if (count($schedule) > 0): ?>

                <?php foreach ($schedule as $meet): ?>

                    <div class="meet ui-menu ui-widget ui-widget-content ui-corner-all" data-meet="<?php echo $meet['id']; ?>">
                        <div class="time ui-widget-header ui-corner-left">
                            <?php if ($meet['event']['start_at'] && Helpers::strEqual(date('g:i A', strtotime($meet['event']['start_at'])), '12:00 AM')): ?>
                                <br />
                                TBD
                            <?php else: ?>
                                <?php

                                    $time = Helpers::formatDateTime('%SCHEDULE%',
                                                                    strtotime($meet['event']['start_at']),
                                                                    $meet['event']['time_zone']);
                                ?>

                                <?php if (strlen($time) > 6): ?>
                                    <span style="font-size: 0.75em;">
                                <?php elseif (strlen($time) > 5): ?>
                                    <span style="font-size: 0.85em;">
                                <?php endif; ?>

                                <?php echo Helpers::formatDateTime('%SCHEDULE%',
                                                            strtotime($meet['event']['start_at']),
                                                            $meet['event']['time_zone']); ?>

                                <?php if (strlen($time) > 5): ?>
                                    </span>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                        <?php if ($meet['event']['event_status'] == 'DONE'): ?>
                            <div class="done">
                                D<br />O<br />N<br />E
                            </div>
                        <?php elseif ($meet['event']['event_status'] == 'LIVE'): ?>
                            <div class="live">
                                L<br />I<br />V<br />E
                            </div>
                        <?php elseif ($meet['event']['event_status'] == 'CXL'): ?>
                            <div class="cancelled">
                                C<br />X<br />L
                            </div>
                        <?php elseif ($meet['event']['event_status'] == 'PPD'): ?>
                            <div class="postponed">
                                P<br />P<br />D
                            </div>                                
                        <?php endif; ?>
                        <div class="info">
                            <div class="name">
                                <?php echo $meet['event']['name']; ?>
                            </div>

                            <div class="away">
                                <?php if(count($meet['teams'] > 0)): ?>
                                    <?php echo $meet['team_names']; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        <div class="details">
                            <?php /*  <?php if ($meet['event']['event_status'] == 'PPD'): ?>
                                <div class="neutral">
                                    Postponed to <?php echo Helpers::formatDateTime('n/j g:i a', strtotime($meet['event']['postpone_at']), $meet['event']['time_zone']); ?>
                                </div>
                            <?php endif; ?>  */ ?>

                            <?php if (!is_null ($meet['event']['location_name'])): ?>
                                <div class="location"><?php echo $meet['event']['location_name']; ?></div>
                            <?php endif; ?>
                        </div>                       
                    </div>

                <?php endforeach; ?>

            <?php else: ?>
                
                <div style="width: 100%; text-align: center;">
                    <br />

                    <h2 style="color: #990000;">
                        There are no <?php echo $div; ?> meets scheduled for <?php echo date('l, M j, Y', strtotime($information['date_navigation']->view_date)); ?>.
                    </h3>

                    <br /><br />

                    Use the date navigation features above to select another date,<br />skip to the previous or next play date, or jump to another day.
                </div>
            
            <?php endif; ?>            

        </div>

    <?php endforeach; ?>      
    

</div> 

<div class="meet_viewer" style="display:none;">
    <div class="ajax_loader" style="width:16px; height:11px; margin:0 auto; margin-top:6em; background-image: url('<?php echo asset('/images/icons/ajax_loader2.gif'); ?>'); background-repeat:no-repeat;"></div>
</div>

<div class="ap_list_viewer" style="display:none;">
    <div class="ajax_loader" style="width:16px; height:11px; margin:0 auto; margin-top:6em; background-image: url('<?php echo asset('/images/icons/ajax_loader2.gif'); ?>'); background-repeat:no-repeat;"></div>
</div>